Skip to main content

TRIGGER_GIVE

Keywords: TRIGGER_GIVE
Syntax: GIVE <string> GIVE <object vnum> The argument is either a string containing words to be matched against the keywords of the object name, or the word 'all'. The argument can be the virtual number (VNUM) of a single object too. This is triggered whenever something is given to the mobile. Since the first trigger is the only one of the type which is processed, the 'all' argument in the script at the end of the MOBprogram list is essentially a default response. To set a trigger using two words don't forget the enclose it between quotes (''). Take care when you use the keywords of the name of the object to trigger the mobile program, if the name has two words, the program will be triggered if at least one word match the name of the object, see the example bellow: Examples: GIVE 'long sword' This trigger will be activated if someone gives an object which has as name's keyword long sword, or a long bow, or a small sword, etc. to the mobile. Note that at least one word need match the keyword. GIVE 250 This trigger will be activated if someone gives the object which virtual number (VNUM) 250 to the mobile. GIVE all This trigger will be activated if someone gives any object to the mobile, except money, which has a proper trigger.