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 08-15-2008, 03:08 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
GS1 script will not run, why? (originally 'GS1 question')

Yay, first thread here in .. how long?

Anyway, I'm not quite sure why this script won't work.

if (playerenters){
timeout = 18.5;
}

if (timeout){
setcharani idle,;
sleep 4;
setcharani sit,;
}


I even tried


if (playerenters){
timeout = 18.5;

if (timeout){
setcharani idle,;
sleep 4;
setcharani sit,;
}
}


So I dunno. I tried a few different things, but none of them worked. What am I missing?

Btw, I know GS1 is outdated, but atm it's easier to learn (or at least experiment with) then GS2.
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #2  
Old 08-15-2008, 03:51 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Are you testing this in the offline editor?
Reply With Quote
  #3  
Old 08-15-2008, 04:05 PM
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
Why are you using a timeout, and then a sleep for doing basically the same thing?
PHP Code:
if (playerenters) {
  
sleep 18.5;
  
setcharani idle,;
  
sleep 4;
  
setcharani sit,;

Remember, this is not something you would do online. I assume this is for the offline editor.
Reply With Quote
  #4  
Old 08-15-2008, 04:07 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
yea


//#CLIENTSIDE.

// Graal2002 NPC by Stefan Knorr
if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head0.png;
setcharprop #C0,orange;
setcharprop #C1,red;
setcharprop #C2,black;
setcharprop #C3,blue;
setcharprop #C4,black;
setcharprop #n,wat
setcharprop #2,;
shieldpower = 1;
dir = 2;
}


if (playerenters){
ap = 100;
setcharani sit,;
}


if (playerenters){
timeout = 18.5;
}

if (timeout){
setcharani idle,;
sleep 4;
setcharani sit,;
}
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #5  
Old 08-15-2008, 04:08 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
hold on
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #6  
Old 08-15-2008, 04:09 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
You've got two event blocks for one event. Merge them, and hopefully that'll work. Like, put what's under both if (playerenters) into one if (playerenters)
Reply With Quote
  #7  
Old 08-15-2008, 04:11 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
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
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
PHP Code:
setcharprop #n,wat 
Error: missing semicolon.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #8  
Old 08-15-2008, 04:13 PM
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 xXziroXx View Post
PHP Code:
setcharprop #n,wat 
Error: missing semicolon.
Thar be the problem.
Reply With Quote
  #9  
Old 08-15-2008, 04:15 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
@Ziro: Yeah, I forgot to add the semicolon back when I changed the script before posting it..

@Dusty. I do a lot of dumb and random stuff while scripting, but I eventually took that out after that post when I found out that wasn't helping any. =o

@Codein. That worked ;o

Thanks for the help, guys and gals.
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #10  
Old 08-15-2008, 04:22 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
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
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by Exhausted View Post
Thanks for the help, guys and gals.
The only gal in this thread is my alter-ego, Zira, and she haven't come out to play for a while.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #11  
Old 08-15-2008, 04:33 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
I thought Dusty was female? Or was I misled?

Bleh. Is there a website or anything that displays the full list of GS1 commands?

How come there are GS1 commands that aren't on the list of them to the right of the Graal editor? - Me.

Stefan never updated it - sz.

I poked around and didn't see anything.. heh..
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #12  
Old 08-15-2008, 04:43 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Exhausted View Post
I thought Dusty was female? Or was I misled?

Bleh. Is there a website or anything that displays the full list of GS1 commands?

How come there are GS1 commands that aren't on the list of them to the right of the Graal editor? - Me.

Stefan never updated it - sz.

I poked around and didn't see anything.. heh..
Dusty is male.

Also: http://wiki.graal.net/index.php/Crea...ev/Old_GScript
Reply With Quote
  #13  
Old 08-15-2008, 06:16 PM
PrinceOfKenshin PrinceOfKenshin is offline
That guy with a beard
PrinceOfKenshin's Avatar
Join Date: May 2004
Location: Ontario, Canada
Posts: 818
PrinceOfKenshin has a spectacular aura about
Quote:
Originally Posted by Codein View Post
Dusty is male.
That is still up to debate

And try learning gs2 my friend it is a lot easier.
__________________


Quote:
Game Master (Server): Greetings PrinceOfKenshin, there are new posts on the forums that demand your urgent attention! God speed, the fate of the world is in your hands. If you fail, middle earth will forever be in the darkness and your children will be enslaved by McKain.
Reply With Quote
  #14  
Old 08-15-2008, 08:02 PM
Exhausted Exhausted is offline
Registered User
Exhausted's Avatar
Join Date: Mar 2008
Posts: 179
Exhausted is infamous around these parts
Thanks for the link.

I guess I'll look up GS2 sometime and try to learn it..
Learning GS2/GS1 off of guides usually confuses me, so I normally learn it by example and learning how this and that works ;o
__________________
Quote:
Originally Posted by grawlgamer View Post
And one thing that really pissed me off, I bought Assassin's Creed a week before they halved the price.
Quote:
Originally Posted by Nataxo View Post
you're so evil, graal doesnt need persons like you, you should get global ban
Reply With Quote
  #15  
Old 08-15-2008, 10:19 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by PrinceOfKenshin View Post
That is still up to debate
It failed to be a debate when he posted a picture of himself ;D Also, his name is Phillip :P
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 02:41 AM.


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