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 07-15-2001, 06:12 AM
pkblu154 pkblu154 is offline
Registered User
Join Date: Mar 2001
Location: somewhere in the planet Earth =P
Posts: 28
pkblu154 is on a distinguished road
Send a message via AIM to pkblu154 Send a message via Yahoo to pkblu154
Party lights script

well i have a question in the following script how can i make it keep changing the backpal without stoping?
// NPC made by Draktha
if (playerenters) {
setbackpal afirebackpal.gif;
sleep.5;
setbackpal duskpal.png;
sleep.5;
setbackpal picsgold.gif;
sleep.5;
setbackpal picsgravity.gif;
sleep.5;
setbackpal picslightblue.gif;
sleep.5;
setbackpal picsyellowgreen.gif;
}
if (playersays(party lights off)) {
setbackpal pics1.png}
if (playersays(party lights on)){
setbackpal afirebackpal.gif;
sleep.5;
setbackpal duskpal.png;
sleep.5;
setbackpal picsgold.gif;
sleep.5;
setbackpal picsgravity.gif;
sleep.5;
setbackpal picslightblue.gif;
sleep.5;
setbackpal picsyellowgreen.gif;
}
oh and i dont care if u steal it.. it doesnt work right anyways
__________________

No RPGs is bad like Bowser because
RPGs are good like Gorons!
Reply With Quote
  #2  
Old 07-15-2001, 07:52 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
use a timeout
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 07-15-2001, 12:33 PM
pkblu154 pkblu154 is offline
Registered User
Join Date: Mar 2001
Location: somewhere in the planet Earth =P
Posts: 28
pkblu154 is on a distinguished road
Send a message via AIM to pkblu154 Send a message via Yahoo to pkblu154
Question ...?

Timeout? well i dont know how to use a timeout.. sry im kinda a N00b scripter. please explain....
__________________

No RPGs is bad like Bowser because
RPGs are good like Gorons!
Reply With Quote
  #4  
Old 07-15-2001, 01:36 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
ie:

if (playerenters) {timeout = 0.5;
}
if (timeout) {
setbackpal afirebackpal.gif;
sleep.5;
setbackpal duskpal.png;
sleep.5;
setbackpal picsgold.gif;
sleep.5;
setbackpal picsgravity.gif;
sleep.5;
setbackpal picslightblue.gif;
sleep.5;
setbackpal picsyellowgreen.gif; timeout = 0.5;
message Entravial rules you!;
}

You must leave entravial rules you in there for it to work
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #5  
Old 07-17-2001, 04:12 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Sleep script is the thing that stops it before it needs to be like:
sleep 0.5;
Reply With Quote
  #6  
Old 07-17-2001, 04:13 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Oh yeah if that script gets up it will be VERY VERY lagy and I use ADSL
Reply With Quote
  #7  
Old 07-17-2001, 04:26 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
it'd only be laggy client-side if you have a slow computer...

NPC Code:

if (created) {
this.speed = .5;
// don't edit below here;

setstring this.backpals,afirebackpal.gif duskpal.png picsgold.gif picsgravity.gif picslightblue.gif picsyellowgreen.gif;
this.pal = 0;
tokenize #s(this.backpals);
timeout = .05;
}
if (timeout) {
this.pal = (this.pal+1)%tokenscount;
setbackpal #t(this.pal);
timeout = this.speed;
}


hehe, for extra super fun change this.speed to .05
Reply With Quote
  #8  
Old 07-17-2001, 02:02 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
oh here comes kyle with his fancy scripting
hehe.
that's the hard way to do it, i just use the easy way, even if it is long.
unless the hard way is the better way
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #9  
Old 07-18-2001, 01:48 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
heh, it's actually better in the long run....cuz if you want to add stuff to the script later you don't have to mess with sleeps. I ALWAYS used to use a while loop with sleeps in it, for about 3 months when I started scripting. Then I finally learned timeout and have used it ever since.

Sleep freezes the script, so nothing else can run. So say you wanted to have one script that moved things at different speeds. You couldn't do it with sleep (well, you could, but it'd be longer), but with timeout it's a simple matter of adding a counter and checking the value of the counter.
Reply With Quote
  #10  
Old 07-18-2001, 01:56 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
Switching backpals that often is laggy. Try seteffect instead.
__________________
the sky is falling
Reply With Quote
  #11  
Old 07-18-2001, 02:38 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
he's right, seteffect will work better for this situation. (setbackpal would be better for like changing the tileset appearance (grass to snow))
Reply With Quote
  #12  
Old 07-18-2001, 08:39 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
mmm
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #13  
Old 07-18-2001, 02:12 PM
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
OMG, i never realized kyle was such a good scripter.
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #14  
Old 07-18-2001, 02:31 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
lol, and you have never stolen one of his scripts
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #15  
Old 07-18-2001, 02:57 PM
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
I dont think so, I have the bomy script but that was given to me
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #16  
Old 07-18-2001, 02:58 PM
Valder Valder is offline
Follower of Ultros
Valder's Avatar
Join Date: Mar 2001
Location: Ultros' Lair
Posts: 5,118
Valder is on a distinguished road
a lot of people have every script, it's just useless unless you have the NPC (Server)
__________________
Reply With Quote
  #17  
Old 07-18-2001, 04:08 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Only one person has MY final version of the bomy-boots script (other than Antago and Stefan)...
Reply With Quote
  #18  
Old 07-18-2001, 07:04 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by kyle0654
Only one person has MY final version of the bomy-boots script (other than Antago and Stefan)...
I'm just curious... but who?
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #19  
Old 07-18-2001, 07:49 PM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
I have the bomy level with the 5 different bomy's you can pick from, you can swim in the river, you can jump off the cliff, you can play hacky, you can eat bombs.. its pretty complete i would imagine =) I can't even remember who I got it from
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #20  
Old 07-18-2001, 11:13 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
lol, if it can play hacky it's not my final version

I'm not telling who has it, cuz I don't want them to be bombarded with "can I have the bomy script please!?!" It has kicking in it though
Reply With Quote
  #21  
Old 07-19-2001, 09:49 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
wow cool, I havent ever seen Antagano online. =\ hes a ghost
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #22  
Old 07-19-2001, 11:09 AM
konidias konidias is offline
Old Bee
konidias's Avatar
Join Date: Jul 2001
Location: Orlando, FL
Posts: 7,222
konidias will become famous soon enough
Send a message via AIM to konidias
The version I have seems complete.. it has everything, including kicking, ducking, using the health thing, eating bombs, kicking bushes.. etc Maybe it got passed around.. or someone made it into another level heh heh
__________________

Put this image in your sig if you support Bomy Island! (g2k1 revision)
play bomberman while you wait!


Reply With Quote
  #23  
Old 07-20-2001, 05:56 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
I'd give my version out...but it's too old to be very useful other than some of the onwall stuff, and it's pretty darn confusing...I'm also not sure if Stefan would approve me handing it out either though...cuz people could and would copy it.
Reply With Quote
  #24  
Old 07-20-2001, 01:30 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
Yeah but what will they do with it?

There will be like 3 people who actually understand it (i'm guessing you used alot of C,G and that stuff functions like you usually do) and they would be smart enough not to copy it. And the people who do copy it will just stick it on thier server, which won't even make it on!
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
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:13 AM.


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