Okay i know this is a problem of my own lack of ability but at this point i am just going to take a break from trying to get this to work and leave this here
at least like this it no longer CTDs but the items still don’t get removed.
– ■AMTS Installation kit (Read the notes on the outer box) (“kawaii_amts_box”)
function amts_kit(item, active)
game.popup(gText(“boxmemo”))
cmsg(“light_green”, “You open the fancy box.”)
player:i_add(item(“kawaii_amts_box2”, 1))
player:i_add(item(“kawaii_amts_manual”, 1))
player:i_at(int)
player:i_rem(item)
end
– ■AMTS Installation kit (treatment) (“kawaii_amts_box2”)
function amts_kit2(item, active)
cmsg(“light_green”, “You implant the AMTS device.”)
player:set_value(“Kawaii_AMTS_Active”, “true”)
player:i_add(item(“kawaii_amts_reciver”, 1))
player:i_add(item(“kawaii_amts_transmitter”, 1))
player:i_add(item(“kawaii_amts_point_viewer”, 1))
EditRP(0)
EditPoint(0)
player:i_at(int)
player:i_rem(item)
end
And even if i get that working i have no idea about the removeing of 1 item out of a list of them for another part of the code… kawaiimaidmod preload.lua
If anyone wants to tell my bakaself what i am doing wrong please tell me.