Jump to content

Scripting Issue


Recommended Posts

Use GetItemCount in a condition.

 

scn BSHammerStrikeBombSalesScript

begin onactivate

 if player.GetItemCount Caps001 >= 500
   player.additem HammerstrikeBomb 1
   player.removeitem Caps001 500
; else
;   ShowMessage YourNotEnoughCashMsg ; <-- You could create a 'Message' object to popup to inform the player why nothing happens on clicking
 endif

end


Edited by tunaisafish
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...