Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-16-2010, 09:40 AM
Jman9912 Jman9912 is offline
Registered User
Join Date: Jun 2001
Location: North Carolina
Posts: 114
Jman9912 is on a distinguished road
Send a message via AIM to Jman9912
Exclamation Need some quick help

Hey guys. Hoping to get a bit of help here. I'm working on a fishing system that initializes and brings up a button you have to press. if the correct button is pressed within x amount of seconds (we'll use 3 seconds), another button pops up with about 5 rounds of this. If the button is not pressed or the incorrect button is pressed, you lose.

I'm initializing the weapon and calling a timeout. The timeout runs through functions ShowButton(),CheckKeys().

showbutton determines a random number 0-3 and show the corresponding button. How can I make the button stay there for x seconds without having to call the timeout again. If that makes sense.

I'm running the timeout on a .05 timer which is constantly running the show arrow script and checking for a keydown.

I'm really sorry if this sounds confusing. If I need to elaborate more, i'll try.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.