@RegionLeave Example for Bugtracker Request - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Submissions (/Forum-Script-Submissions) +--- Thread: @RegionLeave Example for Bugtracker Request (/Thread-RegionLeave-Example-for-Bugtracker-Request) |
@RegionLeave Example for Bugtracker Request - Khaos - 12-06-2013 08:02 AM Now this is more a tutorial/display for something I saw in BugTracker for a new trigger implementation. Basically, the user wanted control over regions and stopping players from leaving while on a quest. What is shown below is one way of doing this. You can also check for character <src.p> as well and stop someone from leaving. I have XuN test this code using a <src.p> check. During the tests we concluded that the player couldn't leave the area by gate, recall, walking, teleporting, or any custom items (telepads), etc. What does this mean? Simple. Regions are checked before anything happens with a character moving from one. Same with entering one. So really the @WorldTeleport control is not needed. Example code block: Code: [events e_region_block] RE: @RegionLeave Example for Bugtracker Request - Anarch Cassius - 12-06-2013 08:44 AM Holy crap, that's a useful little concept. So many event and quest ideas RE: @RegionLeave Example for Bugtracker Request - Extreme - 12-06-2013 09:12 AM No need of ON= before @RegionLeave ? Cool RE: @RegionLeave Example for Bugtracker Request - Khaos - 12-06-2013 09:23 AM Sorry guys. Forgot to add in <ARGO.DEFNAME> Updated now. RE: @RegionLeave Example for Bugtracker Request - Khaos - 12-06-2013 12:15 PM Fixed the on= extreme. Didn't even think about it since it was supposed to be an example. |