Hi,
I'm a newbe in Javascript and API, and simply want to begin with the bases.
So I tried a simple code to log a message when I change the value of an attribute.
The attribute is named "vie". In the html code : <input class="caracteristique-value" type="text" name="attr_vie"/>
I put this in API :
on("change:vie", function() {
log("change attribute !!!");
});
In another tab on Firefox, I have the game session opened. I change the value of the attribute "vie" but the log message "change attribute !!!" is never displayed. What I do wrong ?