HTML Code:
function onCreated()
{
this.showcharacter();
this.updategani();
}
if (updategani)
{
this.updategani();
}
function updategani()
{
temp.gType = 1;
temp.rupeeAmounts = {{5, 2}, {30, 3}, {100, 4}};
for (temp.curAmount: temp.rupeeAmounts)
{
if (rupees >= temp.curAmount[0])
{
temp.gType = temp.curAmount[1];
}
}
this.setcharani("gralats", temp.gType);
}
function onPlayerTouchsMe()
{
player.rupees += rupees;
this.destroy();
}
//#CLIENTSIDE
function onCreated()
{
this.blockAgain();
}
Some fun