17 lines
545 B
Plaintext
17 lines
545 B
Plaintext
|
//Pay for the henchman. If PC tried to be smart and put his gold away before choosing this option in a conversation, stop the dialogue and inform him about it.
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
if ( GetGold(oPC) >= (GetLocalInt(oPC, "hench_pay")))
|
||
|
{
|
||
|
TakeGoldFromCreature(GetLocalInt(oPC, "hench_pay"), oPC, TRUE);
|
||
|
SetLocalInt(oPC, "hench_notaffordable", 0);
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
SpeakString("Sorry, no one is going to risk their life for free.");
|
||
|
SetLocalInt(oPC, "hench_notaffordable", 1);
|
||
|
}
|
||
|
}
|