TimeMod/ja

From M.U.G.E.N Wiki

Jump to: navigation, search


This page is in progress of being translated to ja. You can help translating it or go to another language version that follows:



Trigger: TimeMod(*,**,***)

Returns the remainder when the state-time of the player is divided by the specified value.

The % operator subsumes the functionality of TimeMod, so it is recommended that you use % instead.

Format:
TimeMod [oper] divisor, value1
Arguments:
[oper]
=, !=, <, >, <=, >=
divisor (int)
Positive number to use as a divisor.
value1 (int)
Value to compare remainder against.
Return type:
boolean int (1 or 0)
Error conditions:
Returns SFalse if the divisor is 0.

Example:

trigger1 = TimeMod = 4, 3
  Triggers when the state-time is 3, 7, 11, 15, ...


Personal tools