In my game, I want to make the player give several items to a NPC, and then get something else in exchange.
I require the player makes a transformation to one of those items, and then give the item an other alias.
This code doesn't work. But if I remove the
if property <branch; alias = torch>
it will work... (of course I don't want the player only give the branch, he must turn it to a torch before...)
give <branch> {
if property <branch; alias = torch> then {
say <Thank you.>
flag on <torch_given>
lose <branch>
if flag <sack_given> and flag <torch_given> then do <peasant2; give_saw>
}
}