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.

Scripting Question

Page: 1 of 1
 LordVader1
10-05-2011, 6:55 PM
#1
Does anybody know the script to use to spend money? Like Example theres a dialog and you want to buy something like a Weapon, I already know the script to get the weapon but what I dont know what the script is to Give Credits for the weapon. Can Someone please tell me the script to do this.
 DarthStoney
10-05-2011, 10:06 PM
#2
In TSL the script is in there "a_takecredits" don't know if one exists in K1 but this should still work.
void main()
{

int nCredits = GetScriptParameter( 1 );

TakeGoldFromCreature ( nCredits, GetFirstPC () );

}
 Fastmaniac
10-06-2011, 3:23 PM
#3
It's like that in K1, too.
Page: 1 of 1