Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
33 lines
766 B
Plaintext
33 lines
766 B
Plaintext
int StartingConditional()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oContainer=OBJECT_INVALID;
|
|
string sString;
|
|
string sText;
|
|
|
|
oContainer=GetItemPossessedBy(oPC,"ah_miscbottle");
|
|
sString="jw_clear_water";
|
|
sText="bottle";
|
|
if (!GetIsObjectValid(oContainer))
|
|
{
|
|
oContainer=GetItemPossessedBy(oPC,"ah_misccanteen");
|
|
sString="jw_clear_cant";
|
|
sText="canteen";
|
|
}
|
|
|
|
if (!GetIsObjectValid(oContainer))
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
AssignCommand(oPC,ActionPlayAnimation(ANIMATION_LOOPING_GET_LOW));
|
|
FloatingTextStringOnCreature(GetName(oPC)+" scoops up some water from the pool into a "+sText,oPC);
|
|
AssignCommand(oPC,PlaySound("as_na_splash1"));
|
|
DestroyObject(oContainer);
|
|
CreateItemOnObject(sString,oPC,1);
|
|
return TRUE;
|
|
|
|
|
|
|
|
}
|