Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Old Scripting Engine (GS1)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-30-2007, 11:12 PM
colin012 colin012 is offline
That never happened...
colin012's Avatar
Join Date: Feb 2006
Location: Under your bed.....
Posts: 321
colin012 is on a distinguished road
Quote:
Originally Posted by Chompy View Post
PHP Code:
while() 
Or use timeout

Timeout? Never saw that one and while you sure it's gs1
__________________
Dude! It's a skirt...
Quote:
Originally Posted by Elizabeth View Post
Good lord it looks potent...
Reply With Quote
  #2  
Old 03-30-2007, 11:15 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Quote:
Originally Posted by colin012 View Post
Timeout? Never saw that one and while you sure it's gs1
while (you_use_gs1) suck++;

Anyway, timeout in GS1:

PHP Code:
if (timeout) {
  
blahblahblah;
  
  
timeout=0.05;

GS2:

PHP Code:
function onTimeout() {
  
blahblahblah();

  
setTimer(0.05);

The above scripts loops every 0.05 seconds.
Reply With Quote
  #3  
Old 03-30-2007, 11:19 PM
colin012 colin012 is offline
That never happened...
colin012's Avatar
Join Date: Feb 2006
Location: Under your bed.....
Posts: 321
colin012 is on a distinguished road
Quote:
Originally Posted by Bl0nkt View Post
while (you_use_gs1) suck++;

Anyway, timeout in GS1:

PHP Code:
if (timeout) {
  
blahblahblah;
  
  
timeout=0.05;

GS2:

PHP Code:
function onTimeout() {
  
blahblahblah();

  
setTimer(0.05);

The above scripts loops every 0.05 seconds.
Whats the blah blah part
__________________
Dude! It's a skirt...
Quote:
Originally Posted by Elizabeth View Post
Good lord it looks potent...
Reply With Quote
  #4  
Old 03-30-2007, 11:21 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by colin012 View Post
Whats the blah blah part
It makes the player say "blah blah blah".
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 03-30-2007, 11:21 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by colin012 View Post
Whats the blah blah part
The script you want to execute in your loop.

Edit: You are evil Ziro ;o
Reply With Quote
  #6  
Old 03-30-2007, 11:43 PM
colin012 colin012 is offline
That never happened...
colin012's Avatar
Join Date: Feb 2006
Location: Under your bed.....
Posts: 321
colin012 is on a distinguished road
Quote:
Originally Posted by Crow View Post
The script you want to execute in your loop.

Edit: You are evil Ziro ;o
It doesn't work
__________________
Dude! It's a skirt...
Quote:
Originally Posted by Elizabeth View Post
Good lord it looks potent...
Reply With Quote
  #7  
Old 03-31-2007, 04:09 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Bl0nkt View Post
while (you_use_gs1) suck++;

Anyway, timeout in GS1:

PHP Code:
if (timeout) {
  
blahblahblah;
  
  
timeout=0.05;

GS2:

PHP Code:
function onTimeout() {
  
blahblahblah();

  
setTimer(0.05);

The above scripts loops every 0.05 seconds.
Don't you have to call the timeout for that to even begin? Like stated above ^
Reply With Quote
  #8  
Old 03-31-2007, 06:37 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Quote:
Originally Posted by DustyPorViva View Post
Don't you have to call the timeout for that to even begin? Like stated above ^
I knew I was forgetting something.
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 03:41 PM.


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