McclaudEagle Posted May 23, 2011 Share Posted May 23, 2011 (edited) EDIT: Solved Edited May 23, 2011 by McclaudEagle Link to comment Share on other sites More sharing options...
tunaisafish Posted May 23, 2011 Share Posted May 23, 2011 (edited) 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 May 23, 2011 by tunaisafish Link to comment Share on other sites More sharing options...
McclaudEagle Posted May 23, 2011 Author Share Posted May 23, 2011 I've tried that to the letter, but my message just doesn't want to work. Link to comment Share on other sites More sharing options...
tunaisafish Posted May 23, 2011 Share Posted May 23, 2011 The two semi-colon's at the start of the line need deleting once you have made your Message object.The semi-colon's mark the start of a comment - anything after them on the same line gets ignored. Link to comment Share on other sites More sharing options...
McclaudEagle Posted May 23, 2011 Author Share Posted May 23, 2011 (edited) Ah right, I didn't delete them. Let's hope it works now. Yep, it worked perfectly. Thanks :D Edited May 23, 2011 by McclaudEagle Link to comment Share on other sites More sharing options...
Recommended Posts