Quote:
Originally Posted by cbk1994
Where is onUpdateGani being triggered from?
|
It´s there by default
Default Gralats:
PHP Code:
function onCreated() {
showcharacter();
dontblock();
updategani();
}
function onUpdategani() {
updategani();
}
function updategani() {
temp.type = 1;
if (rupees>=100) temp.type = 4;
else if (rupees>=30) temp.type = 3;
else if (rupees>=5) temp.type = 2;
setcharani("gralats", temp.type);
}
function onPlayerTouchsMe() {
player.rupees += rupees;
rupees = 0;
destroy();
}