gen
gen <creature>
The remort generation of a creature.
Generation counts how many times a player has remorted — a separate axis of
advancement from level. A character who has never remorted is
generation 0.
Arguments
<creature>— the creature to inspect.
Returns
An int — the remort generation (0 for an un-remorted creature).
Examples
after command (say) {
do "say You are remort generation [gen $actor]."
}
When the actor is the mob Puff (an un-remorted creature),
[gen $actor] evaluates to 0, and the mob says
"You are remort generation 0."
Because the result is an int, compare it with the operators:
before command (enter) {
require [ge [gen $actor] 1]
}
This guard lets the handler run only for creatures who have remorted at
least once; otherwise the script advances to the next matching handler (see
require).