For NAT: Create a weapon. The weapon must store ammuniton in the flag list. There must be a way to purchase more ammuniton. The weapon should put an explosion onto every player & npc on the level, except the player who fired it.
It took me a week to do this.
// NPC made by Criminal
Here's the weapon
if(created){
setimg crossbow.gif;
}
if(playertouchsme){
toweapons Weapon;
setstring ammo,10;
}
if(weaponfired){
if(strtofloat(#s(ammo))>0){
freezeplayer .1;
shootarrow playerdir;
setstring ammo, #v(strtofloat(#s(ammo)) -1);
sleep .1;
}
}
Harhar I didn't follow directions!
and for the guy who sells the bacon!
if(playerchats&&strcontains(#c,Buy Ammo)){
setstring ammo, #v(strtofloat(#s(ammo)) +1);
playerrupees-=i_keel_joo_if_joo_read_dis;
}