in the GUI~Editor, the 'object counter' refers to this stuff below:
in the GUI~Editor, you can choose these scripts:
run as script -> add a script -> variables -> 'increase~decrease object counter' Script
which will ONLY increase or decrease (addition~subtraction only) by 1
in code, it looks like this:
Object_name.Attribute_name = Object_name.Attribute_name + 1
~OR~
Object_name.Attribute_name = Object_name.Attribute_name - 1
example:
player.strength = player.strength + 1
~OR~
player.strength = player.strength - 1
if you want to increase~decrease by more than 1 and~or want to use multiplication~division, then you got to choose this script in the GUI~Editor:
(I don't know the GUI~Editor's drop down choices very well, so I just use the [expression] and type in the code directly, lol. So this is the way I'm going to show you to do it, if you don't want to use the [expression] drop down choice to type in the code directly, than you got to figure out what drop down choices you use, as I'm just not familiar with them, sorry)
run as script -> add a script -> variables -> 'set a variable or attribute' Script -> (see below, an example)
Multiplication Operator: *
Division Operator: /
Modulus (same as division, but it returns the remainder instead) Operator: %
set variable player.strength = [expression] player.strength * 7
~OR~
set variable player.strength = [expression] player.strength / 3
~OR~
set variable game.minutes = [expression] game.turns % 60
in code:
player.strength = player.strength * 7
~OR~
player.strength = player.strength / 3
~OR~
game.minutes = game.turns % 60
how math computational expressions work CONCEPTUALLY ONLY:
(this is not actual code syntax!)
(using addition as the example)
initial Value: player.strength = 0
addition expression: player.strength = player.strength + 5
old Value: player.strength = 0
player.strength(new) = player.strength(old:0) + 5
player.strength(new) = 0+5=5
new Value: player.strength = 5
old Value: player.strength = 5
player.strength(new) = player.strength(old:5) + 5
player.strength(new) = 5+5=10
new Value: player.strength = 10
old Value: player.strength = 10
player.strength(new) = player.strength(old:10) + 5
player.strength(new) = 10+5=15
new Value: player.strength = 15