Hello, I have a problem with using inventory items in LW Bass 2.0 template
for example:
Code: ags
works fine, but if I use any other item from inventory on "cPubowner" (not iflowers) nothing happens, game don`t keep unheld events for those items, player dont say "I don't think I should give that away" (like before - without script for iflowers)
what is more interesting if I move "{" before "if" in a script , using any other item from inventory gives me the same effect like using flowers, except for walking. Player just say stuff, i loose flowers (even if i give him something entirely diffrent) i get money, no walking at all...weird. Ccould somoene explain me a problem and show how script should look like?
for example:
if(cMe.ActiveInventory == iFlowers) {
player.Walk(112, 568, eBlock, eWalkableAreas);
cMe.Say("Would you like to buy some flowers?");
cPubowner.Say("Yes, Here`s your money");
cMe.AddInventory(iMoney);
cMe.LoseInventory(iFlowers);
}
works fine, but if I use any other item from inventory on "cPubowner" (not iflowers) nothing happens, game don`t keep unheld events for those items, player dont say "I don't think I should give that away" (like before - without script for iflowers)
what is more interesting if I move "{" before "if" in a script , using any other item from inventory gives me the same effect like using flowers, except for walking. Player just say stuff, i loose flowers (even if i give him something entirely diffrent) i get money, no walking at all...weird. Ccould somoene explain me a problem and show how script should look like?