To create dynamic variables you have two options.
First (best):
PHP Code:
object.(@ "something")
(@ "object.something")
(@ this.damagebase)
Second (don't use, please):
PHP Code:
makevar("object.var")
So if you were calculating a damage multiplier you would do
PHP Code:
function getPlayerDamageMultiplier() {
return (@ this.damagebase);
}