Skip to main content

TRIGGER_GREET

Keywords: TRIGGER_GREET, TRIGGER_GRALL
Syntax: GREET <percent> GRALL <percent> The argument is a number between 0 and 100. This trigger is checked whenever someone enters the room with the mobile, and the mobile saw the person enter, this means that the mobile will not see hiding, invisible or sneaking people, if the mobile has not the affect flag detect_hide and/or detect_invis. If the argument is lower than 100, the trigger will be activated if the percentage roll is lower than the argument. The greet trigger activates only when the mobile is not busy (fighting, sitting, sleeping, etc.). If you want be sure to catch all the players, no matter if they are hiding, sneaking or invisible use the trigger grall. The grall trigger will be activated even if the mobile didn't see the arrival or is busy. Remember that only some mobiles are able to see hiding/sneaking/ invisible players, so please don't abuse the grall trigger, a normal human citizen wouldn't be able to see those players, but a powerful mage would be able to see them. Examples: GREET 30 This trigger will be activated when someone enters the room with the mobile, the mobile saw the person enter, the mob is not busy and the percentage roll is lower than 30. GREET 100 This trigger will be activated when someone enters the room with the mobile, the mobile saw the person enter, and the mob is not busy. GRALL 30 This trigger will be activated when someone enters the room with the mobile, and the percentage roll is lower than 30, no matter if the mobile is busy or not able to see the person. GRALL 100 This trigger will be activated when someone enters the room with the mobile, no matter if the mobile is busy or not able to see the person.