Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-11-2002, 06:03 AM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
While

Stefan, you need to make while like this:
Instead of it being in a event to work, make it so it works indepentdantly. So lets say I have a variable on. A different NPC sets on to 1. Another NPC has it so while(on=1) {script}, the other NPC has no other script either. SO basicly it actively checks when on = true, and when on = false it stops.

I thought that was in there already, but I'm posting this, so learned otherwise.
__________________
This account is no longer is use.
Reply With Quote
  #2  
Old 01-11-2002, 10:55 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

I think it already works like that...try using timeouts and while statements


//NPC 1

if (flag) {on=1;
}
if (flag) {on=0;
}
(Keep in mind, some flags are not called like playerchats)

//NPC 2

if (timeout) {
while (on=1) {stuff;
}
timeout = .05;
}
since while is continuous (sp), it doesnt matter if it is called over and over. Your better off not using while anywayz
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #3  
Old 01-11-2002, 02:10 PM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
Re: umm

Quote:
Originally posted by mikepg
I think it already works like that...try using timeouts and while statements


//NPC 1

if (flag) {on=1;
}
if (flag) {on=0;
}
(Keep in mind, some flags are not called like playerchats)

//NPC 2

if (timeout) {
while (on=1) {stuff;
}
timeout = .05;
}
since while is continuous (sp), it doesnt matter if it is called over and over. Your better off not using while anywayz
You think, genius? Didn't I say "without timeouts"? Well I did now.
__________________
This account is no longer is use.
Reply With Quote
  #4  
Old 01-16-2002, 12:20 PM
Juron Pilo Juron Pilo is offline
Registered User
Juron Pilo's Avatar
Join Date: Apr 2001
Posts: 1,095
Juron Pilo is on a distinguished road
you totally missed the meaning behind the while statement...
Reply With Quote
  #5  
Old 01-16-2002, 02:12 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
great idea...lol
its so good, its already been done, lol.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
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 12:52 AM.


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