View Single Post
  #8  
Old 09-12-2011, 09:28 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
The default is probably a decade old now. Here's it in GS2 though:

PHP Code:
function onCreated() {
  
showcharacter();
  
updateGani();
}

function 
onPlayerEnters() {
  
updateGani();
}

function 
updateGani() {
  
temp.gralat 1;
  if (
this.rupees >= 100temp.gralat 4;
  else if (
this.rupees >= 30temp.gralat 3;
  else if (
this.rupees >= 5temp.gralat 2;
  
setcharani("gralats"temp.gralat);
}

function 
onPlayerTouchsMe() {
  
player.rupees += this.rupees;
  
this.rupees 0;
  
destroy();

__________________
Quote:
Reply With Quote