Scripts > Creature Scripts
Scripts
![]()
Here you can find scripts, to make your life easier. ;) You can learn a lot and even use them as templates for your own custom scripts. :)
![]()
-

advanced mind dueler (by Walker M. White)
(20K)The minddueler script with much more advanced AI. -

advanced npc (by Walker White)
(28K)An extremely complicated character AI script. This script is about as complex of targeting AI as I would ever want to get. It has some very sophisticated techniques for evaluating targets. I do not consider this script to be something that you would legitimately want to use in a scenario. It is simply an educational example on just how complicated you can make AvernumScripts, and the level of control that you can get. -

beam shooter v1.1 (by Terror's Martyr)
(6K)This script causes the monster to be inert- it won't, for example, attack, nor will it cast spells. If you give a monster this script, don't expect it to do much of anything that its stats tell you. Instead, the boss will shoot out two "beams" at all visible enemies each turn. Dangerous. The beams are described below: (...) -

body guard npc (by Walker White)
(6K)A basicnpc that responds to targetting requests. Pair it with the guarded npc script. -

commoner v1.0 (by Terror's Martyr)
(5K)A very simple, naive text. Creature attacks anything it hates nearby. Once it has won, it returns to its home. Talks to the party only using default responses based on his/her role. (A warning for designers- don't overuse or abuse this. You can make your scenario far less interesting if you use this to slice out your dialogue entirely.) -

garzhad (by Walker M. White)
(15K)An Exile II style Garzhad that can be mind dueled to death (dies when it reaches 0 EP). -

goblin punch (by Terror's Martyr)
(2K)This script causes the creature to be immobile, but the creature will seek out and hit a few enemies per turn with a "punch" that does random damage of a random type, with a random boom type and a random zap type. Can cause "interesting" combat if used. -

group guard (by Keep)
(6K)A more advanced guard script. Retains all the functionality of the original while giving it the ability to work together with other guards. When attacking, the guard will issue a call out to all the other characters in its group, which will hopefully respond by coming to its aid. When the guard receives a message, he will attempt to approach the calling character while noting the distressed character's latest location. If that character should die, the guard still tries to go to the deceased's position. For no real reason except to make the guards more lively, I made them fidget and patrol much more often. These guards will drop treasure unless you un-comment the summon level line in the INIT_STATE. -

group guard 1.02 (by Keep)
(9K)An improved group guard script, from the same author. -

guarded npc (by Walker White)
(4K)A basicnpc that can send targetting requests to other characters. Pair it with body guard npc script. -

healing potion (by Terror's Martyr)
(3K)This script uses the combat behavior of basicnpc.txt. What differentiates this script from basicnpc.txt, however, is that the monster will drink a certain number of potions which heal a certain amount of its HP when it is damaged enough. -

idlechatter (by Arenax)
(11K)Creature attacks anything it hates nearby. Once it has won, it returns to its home. Talks to the party only using default responses based on his/her role. All but Generic characters have speech bubbles that appear, using one of five different responses. You may wish to customize these for your scenario. -

mage killer 3 (by Walker White)
(6K)A basicnpc that favors mages and priests. -

merchant (by Terror's Martyr)
(5K)A very simple, naive text. Merchant attacks anything it hates nearby. Once it has won, it returns to its home. When talked to, Merchant skips talking and moves directly onto shopping with a generic, terse description of his/her goods. -

messenger [auto] (by Isaac and Spiderbytes)
(4K)NPC automatically start dialogue with the party when he gets to them. -

mind dueler (by Walker M. White)
(13K)A creature that can attack with mind duel; simple AI. -

phase spider (by Walker M. White)
(10K)Combat AI and attack abilities for the Phase Spider. [A must see!] -

respawn v.1.0 (by Stareye)
(4K)Like basicnpc.txt, but is part of a group and respawns a group member when killed once too many of that group have been killed. -

sniper (by Terror's Martyr)
(3K)This script is best used with monsters with an archer graphic. It has the creature select a target randomly, checks if it dislikes the target, and fires an arrow accordingly. It will never run out of ammo (although perhaps you can code that in), and has no intelligent method of selecting its targets. It doesn't even vaguely behave like basicnpc. -

talkparty.txt (by Terror's Martyr)
(2K)A very simple, naive text. Creature attacks anything it hates nearby. Once it has won, it returns to its home. If the party approaches this creature, the creature speaks with the party. -

teleportboss (by Terror's Martyr)
(4K)Uses the combat behavior of hunter.txt, the monster will hunt party actively. When slain, monster will "teleport away" to another location, revealing another "phase" of the boss. Allows objects to be cleared, assuring that boss will not land on an already-existing character.


