Beat NPC into Submission? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: Beat NPC into Submission? (/Thread-Beat-NPC-into-Submission) |
Beat NPC into Submission? - Reflex - 05-21-2012 06:00 AM How would you go about scripting a system to beat the animal into submission? put some type of event on the creature and have the event check its hitpoints or something then toggle a tag on the creature? RE: Beat NPC into Submission? - darksun84 - 05-21-2012 08:31 AM Event and tag should be fine RE: Beat NPC into Submission? - darksun84 - 05-22-2012 12:33 AM I have a question about events,and now, i cannot try it in local I want to add three events(event_b,event_a,event_d) with the same trigger(@gethit) to a npc, in what order the triggers will be fired ? By "installation order"
or by alphabetical/numeric order
? RE: Beat NPC into Submission? - Reflex - 05-22-2012 12:58 AM thats something you're going to have to test I would assume all at once. RE: Beat NPC into Submission? - Gil Amarth - 05-22-2012 09:25 PM No. There is a order you have to follow with multiple Triggers: From the wiki: Quote:The order of event handling RE: Beat NPC into Submission? - darksun84 - 05-22-2012 10:24 PM wait wait , i mean all that events i wrote, are installed with EVENTS +e_a EVENTS e_d EVENTS +e_b etc RE: Beat NPC into Submission? - dagger4k - 05-22-2012 11:52 PM Have a look at the misc monster abilities. I think that it might give you some clues. For example getting to a certain amount of HP and going invis, or healing. I think you would just ahve to set it to HP brackets RE: Beat NPC into Submission? - Gil Amarth - 05-23-2012 06:54 AM It would be better to have only one trigger who checks events on the player to have 3 triggers apart. My suggestion, make one trigger who check event e_a, e_b, e_d,... (with ISEVENT of course), and return the desired value or effect at the end. The other way is simply too troublesome for me. RE: Beat NPC into Submission? - jeem - 05-24-2012 07:10 AM I think it was with the order that's shown when you type ".show events". And what is the order of that? I suppose installation order. All of the above might be wrong though. RE: Beat NPC into Submission? - darksun84 - 05-24-2012 07:50 AM I tested it , it's installation order . Plus triggers of the same type in differents events share both locals and arguments ! Interesting Instead, events inserted in the sphere.ini in the fields EventsPlayers etc trigger after the events installed by script/game |