NPC AI, interesting events, functions... - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Requests (/Forum-Script-Requests) +--- Thread: NPC AI, interesting events, functions... (/Thread-NPC-AI-interesting-events-functions) |
NPC AI, interesting events, functions... - WRWR - 07-26-2012 11:36 AM Need NPC AI, interesting events, functions... RE: NPC AI, interesting events, functions... - Anarch Cassius - 07-26-2012 11:39 AM http://forum.spherecommunity.net/sshare.php?srt=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. RE: NPC AI, interesting events, functions... - UltimaAku - 02-22-2013 09:50 AM 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 |