Thread: help please
View Single Post
  #6  
Old 05-14-2003, 12:43 AM
Darlene159 Darlene159 is offline
Administrator
Darlene159's Avatar
Join Date: Aug 2001
Location: Florida
Posts: 12,470
Darlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud ofDarlene159 has much to be proud of
Quote:
Originally posted by Chicken_l33t
You could set a this.var to 0
then a timeout = 0.05;

then basicly if (timeout)
{
this.var++;
if (playertouchsme)
{
if (this.var <= 30){//Give prize stuff here;}
else {say2 Haha, you lucked out;}
}
timeout = 1;
}

So basicly all that would do is set a timeout to increase and the variable will increase with the timeout (timeout is gonna go up every 1 second) then if the player touchs the NPC while it's bellow 30seconds they get the prize (Obviously I didn't add the prize in becasue I dunno what it is) and if that didn't reach it in the 30seconds it says "Haha, you lucked out".

I dunno if that's posting a full script cause it probally doesnt work I just skimmed through it to show you an outline.
Well, it gives me a starting point anyway, if it isnt all there...thnaks a bunch
__________________
FORUM RULES
GRAAL BIBLE (Lots of useful info)
INFO ABOUT REPUTATIONS.
INFO ABOUT INFRACTIONS.
HOW TO APPLY FOR THE NON-GRAAL RELATED FORUM (<<READ THOROUGHLY!)

SUPPORT: http://support.toonslab.com

NOTE: YOU ARE RESPONSIBLE FOR YOUR OWN POSTS.
READ>THINK>POST
Reply With Quote