
08-27-2002, 10:48 PM
|
|
Registered User
|
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
|
|
|
LOL, I am looking @ it now... I was actually working on my own new version of commands.rtf that has like if commands sorted, better explanations and such, but if it's good then there isn't a point in me finishing =P Here is PART of the code you're looking for, I made it a few weeks ago when someone asked me how to have it detect when a gold rupee is dropped. I won't give you the full script (I'm not THAT nice!) but you should be able to find some way to modify it:
[code]
if (created)
{ this.money=playerrupees;
timeout=0.25;
}
if (timeout)
{ if (playerrupees=this.money+100)
{ actions; //this is where you put in what you want to happen
}
timeout=0.25;
}
---Shifter |
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
|
|
|
|
|