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.
22 lines
489 B
Plaintext
22 lines
489 B
Plaintext
|
|
int StartingConditional()
|
|
{
|
|
|
|
object oPC=GetPCSpeaker();
|
|
int nArmed=GetLocalInt(OBJECT_SELF,"armed");
|
|
object oPowder=GetItemPossessedBy(oPC,"jw_smoke_powder");
|
|
if (GetIsObjectValid(oPowder))
|
|
{
|
|
SetPlotFlag(OBJECT_SELF,0);
|
|
AssignCommand(GetPCSpeaker(),ActionPlayAnimation( ANIMATION_LOOPING_GET_LOW,1.0f,3.0f));
|
|
nArmed=nArmed+1;
|
|
SetLocalInt(OBJECT_SELF,"armed",nArmed);
|
|
DestroyObject(oPowder);
|
|
return 1;
|
|
}
|
|
else
|
|
{
|
|
return 0;
|
|
}
|
|
}
|