Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

[K1] Get credits.

Page: 1 of 1
 sekan
04-10-2008, 6:25 PM
#1
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
04-10-2008, 6:36 PM
#2
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
04-10-2008, 6:41 PM
#3
^^^ 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
04-10-2008, 6:50 PM
#4
^^^ 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:
 sekan
04-11-2008, 5:29 AM
#5
Thanks it works :D
Page: 1 of 1