Main.Carries History

Hide minor edits - Show changes to markup

December 31, 2008, at 01:09 AM EST by admin
Added lines 1-11:
     carries - syntax: carries(CH,"item") 

Tests whether or not the character is carrying an item. The "item" variable can be either keywords or an object key. Usually it is better to use the object key so you can be sure the correct item is targeted. Using the keyword 'red sword' would mean any item with keywords 'red sword' would pass the test.

    --- Insult anyone not carrying item aylor-12
    if not(carries(ch,"aylor-12")) then
       say("You suck!")