Play Now! (tgmud.net port 9010) Vote (MudVerse)
Vote (TMC) Discord
Facebook
Reddit Downloads
Events
Rules
Staff List Character Creation
Character Pictures
History
Races
Classes
Empires
The Gathering... | GMOTE Snippet

TG's GMOTE Code Snippet

Notes: Code by Trellan. Taken from an Archival copy of Dawn of Time's Forum. Date unknown.

I call it godmote, or gmote for short. It basically replaces every other mote type, including the ones I've created in the past for moting with objects. With this mote type, you can emote with up to 10 target people/mobs at once, along with unlimited objects, all in one mote command. Ok, I might be exagerating about unlimited objects, you're limited by he MSL limit in the processing variables, but 8192 characters should be enough for a number of people and objects I think. To use it, simply include the people/objects inline with the command, preceding people with @ and objects with #. For instance.... gmote slaps @timbo with #glove, then turns to @frieda and offers her #tea. People will be shoved through the PERS function so that they will display properly to people in the room, and objects will be replaced with their short descriptions. It also supports usage of * to replace your name somewhere other than the beginning if you like, as smote and amote do. On to the code...

Code:

And that's it. Don't forget to add godmote, gmote, or both, however you want to call it, to your interp.cpp and interp.h files as you do with all new commands.