sekan Posted April 10, 2008 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
JCarter426 Posted April 10, 2008 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.
stoffe Posted April 10, 2008 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); }
JCarter426 Posted April 10, 2008 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...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.