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
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.
^^^ 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);
}
^^^ 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... :doh: