From d2e2a3fbc4e5e43b3dd862870280c37c96421ac5 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Tue, 16 Jan 2018 21:26:49 -0600 Subject: [PATCH] Updated Perl EVENT_WAYPOINT_ARRIVE (markdown) --- Perl-EVENT_WAYPOINT_ARRIVE.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Perl-EVENT_WAYPOINT_ARRIVE.md b/Perl-EVENT_WAYPOINT_ARRIVE.md index 8ea8961..4af7eec 100755 --- a/Perl-EVENT_WAYPOINT_ARRIVE.md +++ b/Perl-EVENT_WAYPOINT_ARRIVE.md @@ -1,3 +1,4 @@ + EVENT_WAYPOINT_ARRIVE ### Exports **Name**|**Type**|**Description** @@ -10,19 +11,18 @@ sub EVENT_WAYPOINT_ARRIVE { } ``` -### Functionality Explained +### Triggered -EVENT_WAYPOINT_ARRIVE is triggered when an NPC reaches a grid waypoint entry. +* When an NPC reaches a grid waypoint entry ### EVENT_WAYPOINT_ARRIVE in use +* This example would cause your NPC to speak once it reaches a particular waypoint. +* Don't forget to count waypoint 0 (the spawn point) + ```perl -# This example would cause your NPC to speak once it reaches a particular waypoint. -# Don't forget to count waypoint 0 (the spawn point) - sub EVENT_WAYPOINT_ARRIVE { - - # Use == for numeric comparison to match grid waypoint entry "11" + #::: When NPC arrives at waypoint 11 if ($wp == 11) { quest::say("Wow, that was a long walk!"); }