ADDING NPC ABILITIES
AUTHOR: HEKE7
DATE: 09/02/02
Note: Before using this tutorial you will need a fair understanding of creating and using scripts. I recommend reading the earlier tutorials on cameras before reading this tutorial. Many thanks to Heke7 for writing the tutorial and sending it here :) - Kengo
                                --------------------
Adding special abilities for npc’s is pretty easy. Here we are going to make sniper trooper and custom reborn.

Firstly, boot up radiant. Make a test map. Remember the info_player_start and some lights. Make
stormtrooper and select it. Press “n”. Put this to the key field: spawnscript and this to the value field: sniper
Now, make a
reborn and do same things except make the value field: custom reborn

That’s all we do in radiant (Remember compiling!) Boot up BehavED. I assume you have read the previous tutorials so you know how radiant works. Firstly, you may delete the REM. Now double click the upper
Set command at the left side of the screen. This adds it to the script flow area. Now, double click it at the script flow area. This brings up the event editor. Scroll down the set_parm window until you find set_weapon, click it (It’s under the “special tables” category. Click the re-evaluate button. Now, scroll down and select any weapon you like from the second window (In the window the word displayed first is “drop”). Save the script as sniper and hit the compile button.
That’s it! When you try your level, the trooper has the weapon you gave!

Now to the
reborn:
Do all the same expect that you select
SET_forcexxxx from the list where you selected the set_weapon (xxxx means any force you want. So select set_forceheal for heal, set_forcegrip for grip etc.). Hit re-evaluate and select the level of the force from the list. Save, compile by name of “reborn”. That’s it.
1