{LONGETECH has infected this file with his greatness} ExtraScripts Kit /plotscripting By: Longetech (longetech@swirvemail.com) Last Updated Febuary 3, 2003 (Version 2) Note: Use wordwrap when viewing _________________________________________________________________ To use, extract to your OHRRPGCE directory. Then type at the top of your .hss file: include, extrascripts.hsd Report any errors or script requests to me. My email is longetech@swirvemail.com Enjoy. _________________________________________________________________ AUTO WAIT SCRIPTS These scripts are the same as the originals except they also wait _________________________________________________________________ aTEXT(box,time)- Automatically advances textbox BOX in TIME ticks. It already has the suspend box advance and resumem box advance also. wTEXT(box)- Displays textbox BOX and waits for the textbox wNPC(who,direction,distance)- same as using WALKNPC but it also waits for the npc wHERO(who,direction,distance)- same as using WALKHERO but it also waits for the hero _________________________________________________________________ HERO and NPC SCRIPTS These scripts do special things with NPCs and HEROES _________________________________________________________________ destroyallnpc(who)- Destroys all copies of npc WHO walkallnpc(who,direction,distance)- Walks all copies the same as walknpc would do walkallnpctox(who,x)- Walks all copies of npc WHO to X walkallnpctoy(who,y)- Walks all copies of npc WHO to Y matchallnpcx(who,withwho)- Returns true if npc WHO's X is equal to [ANY] copy of npc WITHWHO's X matchnpcx(who,withwho)- Returns true if npc WHO's X is equal to npc WITHWHO's X. Use NPC reference matchallnpcy(who,withwho)- Returns true if npc WHO's Y is equal to [ANY] copy of npc WITHWHO's Y matchnpcy(who,withwho)- Returns true if npc WHO's Y is equal to npc WITHWHO's Y. Use NPC reference matchallnpcposition(who,withwho)- Returns true if matchallnpcx and matchallnpcy returns true matchanpcposition(who,withwho)- Returns true if matchanpcx and matchanpcy returns true hopnpc(who,distance)- Hops npc WHO hopallnpc(who,distance)- Hops all copies of npc WHO hophero(who,distance)- Hops hero WHO spinnpc(who,rotations)- Spins npc WHO spinallnpc(who,rotations)- Spins all copies of npc WHO spinhero(who,rotations)- Spins hero WHO setnpcz(who,z)- Sets npc's z alternpcpalette(who,npcpalette)- same as alternpc(who,npcstat:palette,npcpalette) alternpcmovespeed(who,npcmovespeed)- same as alternpc(who,npcstat:movespeed,npcmovespeed) alternpcpicture(who,npcpicture)- same as alternpc(who,npcstat:picture,npcpicture) _________________________________________________________________ MISC SCRIPTS Scripts that do not belong anywhere else _________________________________________________________________ tileblock(x,y)- Use with readmapblock and the if()then(). It starts from the top left corner of the tilemap set. You no longer have to count them by hand. Just enter the X and Y values of where the specific tileblock is on the tileset _________________________________________________________________ BATTLE SYSTEM SCRIPTS Scripts you can use for a battle system or just simply anywhere _________________________________________________________________ recoverhero(who,amount)- recovers hero damagehero(who,amount)- damages hero getpercent(percent)- Use for percentage probabilities. (ie. You have a 40% chance of hitting, therefore it is getpercent(40). Returns TRUE if hit. So use it as if(getpercent(40)) then(...) ) _________________________________________________________________ Also, if you need any help: HELP ON IRC: #HelpOhrrpgce Get an IRC program such as mIRC then type /server chocobo.esper.net Followed by /join #helpohrrpgce Game Design Tips on how to be a better game designer and programmer Located at http://www.hamsterrepublic.com/ohrrpgce Sound HTTP://NTVDM.CJB.NET VDMS Sound, download if you cannot hear any sound (only for WXP/WNT/W2000) And here are is my website containing my latest project HTTP://KOMEL.CJB.NET -Longetech 2003