Skip to main content

TRIGGER_ENTRY

Keywords: TRIGGER_ENTRY
Syntax: ENTRY <percent> The argument is a number between 0 and 100. This trigger is the opposite of the greet trigger, whenever the mobile itself enters a new room and the percentage roll is lower than the argument this trigger is activated. One important thing to remember is that in the entry program, the mobile can only refer to a random PC (the variable $r in If_checks), there is no way to know how many PCs exist in the room the mobile enters! Also, you must check the visibility of the target in your program, because even if the player is hiding/sneaking or invisible the mobile will be able to see them, even if the mobile doesn't have the affect flag detect_hide and/or detect_invis. Examples: ENTRY 30 This trigger will be activated when the mobile enters a new room and if the percentage rolls is lower than 30. ENTRY 100 This trigger will be activated when the mobile enters a new room.