SphereCommunity

Full Version: NPC AI, interesting events, functions...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Need NPC AI, interesting events, functions...
http://forum.spherecommunity.net/sshare....=1&uid=634

Check the abilities file for interesting events and functions. The system as a whole features better casting and item use, monster factions that fight each other and PCs, and monster groups that move and fighter together.
Here's a mean event you can add to one of your bosses.

add this to the ON=@CREATE

EVENTS=+e_evil_curse

And add this seperately as a new evet and item

[EVENTS e_evil_curse]

ON=@GETHIT
////Adjust 350 to set health bracket
IF <HITS> < 350
SRC.NEWITEM=i_curse_timer
SRC.ACT.BOUNCE
SRC,ACT.EQUIP
SOUND=496
EVENTS=-e_evil_curse
SAY In Jux Xen
Return 0
ENDIF

[ITEMDEF i_curse_timer]
NAME=Delay Teleport
ID=i_handr_1
TYPE=T_EQ_SCRIPT

ON=@Create
ATTR=attr_invis|attr_decay
///MORE1 is the timer
MORE1=5

ON=@Equip
TIMER=1

ON=@Timer
// Take the effect we would like.
if ( <CONT> )
if ( <MORE1> )
////remove the cont.say line to remove counter above head.
CONT.SAY <MORE1>
MORE1 -= 1
TIMER=1
return 1
else
///when timer runs out, This happens
CONT.EMOTE Get Horriably Cursed
SOUND=531
///Sets hits to 1
CONT.HITS=1
remove
endif
endif
// normal timer fall through is to delete the item
remove
return 1

That'll spice up an event or make a good champion Big Grin
Reference URL's