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 06-23-2012, 03:21 AM
Stowen Stowen is offline
Graalian since '01
Join Date: Sep 2005
Location: Massachusets, USA
Posts: 156
Stowen will become famous soon enough
Send a message via AIM to Stowen Send a message via MSN to Stowen
Random Selection question

Hey guys, I have another question. Along with the timer question I had earlier, I added a function when the timer runs out for a random selection. It's for a Chance-type event I'm trying to make. I get it to select randomly, but the trouble I am having, is getting the TimeOut loop to stop. How would I go about this?

Here is what I have so far:
PHP Code:
function onTimeOut() {
this.randombox int(random(1,8));
this.chat this.randombox;
setTimer(0.5);

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 08:28 PM.


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