Increasing atribute value

CheshireTiger
05 Aug 2021, 12:49

Im not sure how to do this still...
I have onject.progres =1 at the start but i want an action(a verb on an object in other room) to print a msg then increase the atribute by 1 each time

Do i need to set the atribute as something other then expression?


mrangel
05 Aug 2021, 17:35

You mean like:

onject.progres = onject.progres + 1

That sets the value of onject.progres to the result of the expression onject.progres + 1; taking the current value of onject.progres and adding 1 to it.