Games-Object
view release on metacpan or search on metacpan
events associated with modifying the attribute will be triggered at this
time.
Be careful when using this feature with incremental modifiers. This means
that the target attribute will be modified now, and then again when the
process() is next called on the object.
=item Delayed-action modifiers
A persistent modifier, either one that is timed or not, can be set up such
that it does not take effect for a given number of iterations through the
C<process()> method. This is done via the I<-delay> option, as in this example:
$obj->mod_attr(-name => "health",
-modify => -5,
-incremental => 1,
-persist_as => "food_poisoning",
-time => 5,
-delay => 3);
This means: For the next 3 calls to C<process()>, do nothing. On the 4th,
( run in 0.797 second using v1.01-cache-2.11-cpan-71847e10f99 )