Using Other do_functions

 

Say you want to add a command, like a glory purchase command, and you want to add a bit of rp to it.  You could make the mobile that does ‘enchanting of items’ do emotes, or do says, or you could use the act function to make it seem like he’s saying things.  Personally, I like to use other functions, to keep things consistent, IE if you decide to change the color of say someday, but your code uses what it used to be, then it would look weird.  so you could create a command like enchant <item>, first things first you would have to check if the proper mobile is in the room, you should be able to figure out a way to do that by now.  And you need to check if the item is in the character’s inventory.  So if it’s all good, then you could use the do_give and do_say functions to make it look more realistic.  And you could also check to see if the character can hold the item again, if he can’t you could just drop it and say something like you can’t hold it or whatever.  Anyhow the main point of this section is to point out you can use the other do functions, like in the glorytranfer command, if the player enters the wrong set of strings you could have do_help(ch, “glorytranfers”);