Character - theRAPTLab/gsgo GitHub Wiki
character
is used to refer to the blueprint instance in GEMSCRIPT.
See #762
[agent
was the original name for character
. You'll see references to this throughout the documentation and code base.]
For example:
exprPush {{ character.prop.colour.value }}
exprPush {{ character.getFeatProp('Graphing','text').value }}
featProp character.Costume.costumeName setTo 'AQ_algae.png'
featPropPush character.Graphing.text
featPropPop character.Graphing meter
ifExpr {{ character.getFeatProp('Graphing','text').value === 'Fish' }} [ ](/theRAPTLab/gsgo/wiki/-)
ifExpr {{ character.getProp('colour').value === 125 }} [ ](/theRAPTLab/gsgo/wiki/-)
ifFeatProp character.Graphing.text equal 'Fish' [ ](/theRAPTLab/gsgo/wiki/-)
ifProp character.colour equal 0 [ ](/theRAPTLab/gsgo/wiki/-)
prop character.colour setTo 255
propPush character.colour
propPop character.colour
See also Debugging for example test scripts that work through the use of character
in scripts.