Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Kaspharm

#1
Hello, I have a problem with using inventory items in LW Bass 2.0 template
for example:

Code: ags

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?
#2
Beginners' Technical Questions / Black gui
Sun 15/06/2014 22:57:10
Please kill me if that`s a stupid question but for god sake....how to make black gui if black color for guis is setup as transparent...
SMF spam blocked by CleanTalk