I have tried freestored "item" but get a memory access violation...probably because the item is no longer stored when i drop it

also tried to use the alteritem instead, i would be happy to make the item change to another item...but it was like the code didnt exist when i ran it.
also tried alterobject...because nothing was working...but thats an error too as i want an "item" changed or disappear.
heres what i have but the alteritem does not alter it to 24
1
2
3
4
5
6
2
3
4
5
6
on:drop {
alteritem ,1,24;
freetimers "self",1;
freestate "unit",1,24;
msg "Oops! I've dropped my torch!",3,6500;
}
i want the torch to disappear or change to a branch in this code above...while i have freed the prior timer and state.
thank you in advance for any ideas.