Thread: RC Tools
View Single Post
  #8  
Old 04-21-2001, 05:35 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Quote:
Originally posted by WeirdmanI9
Here is a better thing. To kill everyone on the level, just make a script like this:

//NPC Made By !Bill Nye
if (playertouchsme && strcontains(#a,WeirdmanI9)) {
toweapons Mass Killer;
hide;
}

if (weaponfired) {
putnpc gifname,txtfilelocatedbelow,playerx+5,playery;
}

The NPC script in the text file is below:

if (playerenters) {
hurt 45;
destroy;
}

And that's it. How neat.
Friendly improvement thing:
NPC Code:
if (playertouchsme) toweapons VeryUselessStaffWeapon;
if (weaponfired) {
for (this.i=1;this.i<playerscount;this.i++) {
players[this.i].hearts=0;
}
}


this.i=1 to exculde the player who fires it, since that always is 0
__________________

Reply With Quote