Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mudlet:gmcp [2023/01/18 16:07] mathmudlet:gmcp [2023/01/18 18:14] (current) math
Line 1: Line 1:
 ====== GMCP in Mudlet ====== ====== GMCP in Mudlet ======
 +
 +===== Enabling GMCP =====
 +
  
 If you are using Mudlet then (if it is not enabled already) you will need to enable GMCP data. If you are using Mudlet then (if it is not enabled already) you will need to enable GMCP data.
  
 {{ :mudlet:screen_shot_2023-01-18_at_10.17.38_am.png?400 |}} {{ :mudlet:screen_shot_2023-01-18_at_10.17.38_am.png?400 |}}
 +
 +===== Accessing GMCP =====
  
 Once enabled, Mudlet will automatically share with DuneMUD that it can receive GMCP data. You can check that you are receiving data by entering  ''lua gmcp'' in your command line. Once enabled, Mudlet will automatically share with DuneMUD that it can receive GMCP data. You can check that you are receiving data by entering  ''lua gmcp'' in your command line.
Line 23: Line 28:
         * ''Room.num'' is a unique identifier code.         * ''Room.num'' is a unique identifier code.
         * ''Room.Info'' contains area (planet) info, indoor/outdoor info, and (visible) exit info.         * ''Room.Info'' contains area (planet) info, indoor/outdoor info, and (visible) exit info.
 +
 +  * ''External'' which is Discord information that you could have Mudlet use.
 +
 +===== Using GMCP =====
 +
 +You can use the raw GMCP data table in your scripts/triggers/aliases just like you would variables you defined yourself. 
 +
 +You can also use "event handlers" to execute scripts when new GMCP data is received. See the "Triggering on GMCP" section (page 5) of [[https://www.mudlet.org/wp-content/uploads/2013/02/GMCPtutorial.pdf|https://www.mudlet.org/wp-content/uploads/2013/02/GMCPtutorial.pdf]]