Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-03-2001, 12:34 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
NPC Question

I want to know how to make a script repeat itself...

i never ever knew how.....lol
__________________
Reply With Quote
  #2  
Old 08-03-2001, 12:35 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
make it loop LOL

either use a for loop or a do loop or any other ones
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #3  
Old 08-03-2001, 12:36 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
what is the script for the loop... there isn't anything in the commands
__________________
Reply With Quote
  #4  
Old 08-03-2001, 12:39 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Exclamation

Quote:
Originally posted by zell12
what is the script for the loop... there isn't anything in the commands
OMFG!!!!
DUH!
its:
while () {
sleep 0.05;
}
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 08-03-2001, 12:40 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
actually do a timeout. it is the easiest. that way it does somthing everytime it times out ^_^

set the timeout to 1
then do the script and make it do the script everytime it timesout to 1. That would make it happen ever second.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 08-03-2001, 12:53 AM
zell12 zell12 is offline
Gone
zell12's Avatar
Join Date: Jun 2001
Location: Alberta, Canada
Posts: 8,541
zell12 has a spectacular aura about
Send a message via ICQ to zell12 Send a message via AIM to zell12 Send a message via MSN to zell12
ok, i used that before, i just didn't do it right, but before that, wouldn't you use

timerteverywhere;
__________________
Reply With Quote
  #7  
Old 08-03-2001, 01:00 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
depends..
if you are going to make something that keeps on acting while the player can do something else then make a timeout..
if it is just a code that needs to be runned once or when you fire the weapon or ''checks'' then do either a while or a for loop..
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 08-03-2001, 11:07 AM
Brent5000 Brent5000 is offline
Registered User
Join Date: Jul 2001
Location: Oregon USA
Posts: 97
Brent5000 is on a distinguished road
Send a message via AIM to Brent5000 Send a message via Yahoo to Brent5000
Errr the script for timeouts is just like

if (weaponfired) {timeout = 1;}
if (timeout) {blah blah....blah blah....;}
__________________
Reply With Quote
  #9  
Old 08-03-2001, 11:22 AM
SkooL SkooL is offline
somebody to love
Join Date: Jun 2001
Location: bat country.
Posts: 3,446
SkooL is on a distinguished road
Send a message via AIM to SkooL
Quote:
Originally posted by Brent5000
Errr the script for timeouts is just like

if (weaponfired) {timeout = 1;}
if (timeout) {blah blah....blah blah....;}
You'd have to add another timeout at the end of the "blah blah....blah balh....;".
__________________
the sky is falling
Reply With Quote
Reply


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 10:01 PM.


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