View Single Post
  #2  
Old 01-18-2009, 12:48 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
PHP Code:
function onActionGrabbed()
{
  if (
this.give == 0)
  {
    
this.give 1;
    
player.rupees += 5;
    
sleep3.6);
    
this.give 0;
  }

Just set up a test variable. =]

oh and for the function just put this in a weapon and add it to the player
What you could do so you keep pressing "A" is instead of onKeyPressed, you could use a timeout with keydown().

http://forums.graalonline.com/forums...ad.php?t=78114
http://forums.graalonline.com/forums...ad.php?t=76516
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 01-18-2009 at 01:31 AM..
Reply With Quote