increment by
Details
Kode wheel segment | Math |
Style | Math |
Modifiers | None |
Primarily WHEN/DO | DO |
Pre-made brains that use it | Unknown |
Math > increment by
Description
This tile is used to increment (add to) a variable. In the case of a number variable it would increment that variable by whatever number you place after it. You use this variable instead of the plus tile to permanently increase the value of a number variable. In the case of an object set it will add whatever object you place after it. Its opposite tile is [decrement by].
Example Code
WHEN [once] DO [numvar:score][increment by][10]
or
WHEN [once] DO [objset: village1][increment by][me]
Modifiers
None
Other Uses
None