BobRichter Posted August 27, 2004 Share Posted August 27, 2004 How do I award gold to the player? I have a dialog already, and it's set up to trigger a script but I wasn't able to write a script to award gold. It's probably something stupidly obvious that I'm missing yet again. Thank you all for your forbearance and helpful advice. Link to comment Share on other sites More sharing options...
tk102 Posted August 27, 2004 Share Posted August 27, 2004 void main() { object oPC=GetFirstPC(); //creature to give to int nGold=200; // amount to give GiveGoldToCreature (oPC, nGold); } Link to comment Share on other sites More sharing options...
BobRichter Posted August 27, 2004 Author Share Posted August 27, 2004 Ah. Thank you. Link to comment Share on other sites More sharing options...
shosey Posted August 28, 2004 Share Posted August 28, 2004 or as I like to say GiveGoldToCreature(GetFirstPC(), 2000); I like one liners ;-) Link to comment Share on other sites More sharing options...
BobRichter Posted August 29, 2004 Author Share Posted August 29, 2004 That's the version I ended up using, before you even posted it. I like one-liners too. Now if I could only figure out what the stuff coming out of the script decompiler means, I'd be set... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.