View Full Version : n00b script question

07-31-2007, 01:02 AM
I haven't seen this listed anywhere else, so I'll just ask. Is there a way to test to see how much gold the PC has?

Thanks for all your help.

07-31-2007, 01:09 AM
The GetGold function will return the amount of Gold (aka Credits) that a creature has.

Example conditional script that returns TRUE if the player has more than 5000 gold:
int StartingConditional() {
return GetGold(GetFirstPC())>5000;

08-01-2007, 10:14 AM
Perfect, thank you.