sekan Posted April 10, 2008 Share Posted April 10, 2008 Hi, I need a script that checks how much credits the PC have. If the PC has 500 credits or higher it returns true and if not it returns false. This shall be used in a dialog. Thanks and Take care Link to comment Share on other sites More sharing options...
JCarter426 Posted April 10, 2008 Share Posted April 10, 2008 c_chkcredits A very useful script indeed. Just set parameter 1 to the number of credits the player must have, and put it as a conditional. Link to comment Share on other sites More sharing options...
stoffe Posted April 10, 2008 Share Posted April 10, 2008 ^^^ That one's a K2:TSL script if I'm not mistaken. K1 doesn't support script parameters from dialogs. I need a script that checks how much credits the PC have. If the PC has 500 credits or higher it returns true and if not it returns false. This shall be used in a dialog. Something like this should work: int StartingConditional() { return (GetGold(GetFirstPC()) >= 500); } Link to comment Share on other sites More sharing options...
JCarter426 Posted April 10, 2008 Share Posted April 10, 2008 ^^^ That one's a K2:TSL script if I'm not mistaken. K1 doesn't support script parameters from dialogs. Oh, right. Didn't see the little [K1] in the title... Link to comment Share on other sites More sharing options...
sekan Posted April 11, 2008 Author Share Posted April 11, 2008 Thanks it works Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.