From 580f2d9a1db9bc5a999de556d1c4ece0be9b0fad Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Tue, 16 Jan 2018 21:24:09 -0600 Subject: [PATCH] Updated Perl EVENT_WAYPOINT_DEPART (markdown) --- Perl-EVENT_WAYPOINT_DEPART.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Perl-EVENT_WAYPOINT_DEPART.md b/Perl-EVENT_WAYPOINT_DEPART.md index f9a975f..d8bf2f8 100755 --- a/Perl-EVENT_WAYPOINT_DEPART.md +++ b/Perl-EVENT_WAYPOINT_DEPART.md @@ -1,3 +1,4 @@ + EVENT_WAYPOINT_DEPART ### Exports **Name**|**Type**|**Description** @@ -10,19 +11,18 @@ sub EVENT_WAYPOINT_DEPART { } ``` -### Functionality Explained +### Triggered -EVENT_WAYPOINT_DEPART is triggered when an NPC leaves its current grid waypoint entry. +* When an NPC leaves its current grid waypoint entry -### EVENT_WAYPOINT_DEPART in use +### Example + +* This example would cause your NPC to speak as it departs a particular waypoint. +* Don't forget to count waypoint 0 (the spawn point) when using waypoint events. ```perl -# This example would cause your NPC to speak as it departs a particular waypoint. -# Don't forget to count waypoint 0 (the spawn point) when using waypoint events. - sub EVENT_WAYPOINT_DEPART { - - # Use == for numeric comparison to match grid waypoint entry "0" + # If we departed waypoint 0 if ($wp == 0) { quest::say("And we're off!"); }