Battledale_PRC8/_module/nss/jw_catgetammo.nss
Jaysyn904 7b9e44ebbb Initial upload
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.
2024-03-11 23:44:08 -04:00

25 lines
330 B
Plaintext

void main()
{
object oObject=OBJECT_SELF;
object oPC=GetPCSpeaker();
object oAmmo=GetItemPossessedBy(oPC,"jw_ammo_stone");
if (GetIsObjectValid(oAmmo))
{
ActionTakeItem(oAmmo,oPC);
SpeakString("Catapult loaded and ready to go");
PlaySound("as_cv_woodframe1");
}
else
{
SpeakString("You don't have any ammo to place");
}
}