change thread var () by ()

From PenguinMod Wiki (Official)
Change thread var () by ()
Jump to navigation Jump to search

The change thread var () by () block is a stack block in the TurboWarp Temporary Variables extension that changes the thread variable with the entered-in name by the inputted value. The default value is "variable", like the other blocks relating to variables in this extension with that input (with the exception of for () in ()), while the default value is 1, like with the change [ v] by () variables block, and the change runtime var () by ()::#ff791a block.

Workaround

This block can be worked around using the set thread var () to () block to change the thread variable:

define change thread var (name) by (value)
set thread var (name) to ((thread var (name)::#ff791a) + (value))::#ff791a


ve TurboWarp Temporary Variables Blocks Navigation
TurboWarp Blocks set thread var () to ()  · change thread var () by ()  · thread var ()  · thread var () exists?  · for () in ()  · active thread variables  · set runtime var () to ()  · change runtime var () by ()  · runtime var ()  · runtime var () exists?  · delete runtime var ()  · delete all runtime variables  · active runtime variables