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, 04:06 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Help Me!!!

How do I make lights? Like Direct 7/8 stuff?And like scroling messages? ANd like scroling tileing like the Survivorgame or like TOT has?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #2  
Old 08-03-2001, 05:45 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
why not ask how to make a playerworld?
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 08-03-2001, 06:09 PM
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 entravial
why not ask how to make a playerworld?
He wasn't asking a lot of things.


Wetferret, I had already PMed you the light script on New Main. Why are you still asking for it? Did it not work correctly? I am sure it did.
__________________
the sky is falling
Reply With Quote
  #4  
Old 08-03-2001, 10:06 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Um...the light script is rather easy:
NPC Code:

if (created) {
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,.9;
}


then just change the setcoloreffect numbers...they represent R,G,B,Transparancy or something.
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 08-04-2001, 12:32 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
and use if (playerenters)
not if (created)
__________________
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
  #6  
Old 08-04-2001, 02:49 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Okay but what about the other questions? I dont really care about light stuff..But How do you do all the other stuff? Because I am a real good Level Maker it's just I never tried at scripting :/ . So I am makeing this hang out place for 2001 and I need some cool scripts! So just post some sweet scripts on this thread.
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #7  
Old 08-04-2001, 03:12 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
a sweet thing is to make glowing orbs.. like a light that glows..
here is a code . im making this out of the top of my head so dont know if they will work or not

NPC Code:

timeout=.15;
if (timeout) {
check();
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}
function check() {
if (this.glow<9&&this.goback=0) { this.glow++; }
if (this.glow>0&&this.goback=1) { this.glow--; }
if (this.glow=0&&this.goback=1) { this.goback=0; }
if (this.glow=9&&this.goback=0) { this.goback=1; }
}



or you can do a random one...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=random(0,10);
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}



or one that keeps going shinier..

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+1)%.9;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that goes from shiny to non shiny...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+.9)%1;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that blinks

NPC Code:

timeout=.15;
if (timeout) {
if (this.glow=.9) { this.glow=0; }
else { this.glow=.9; }
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}

__________________
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-04-2001, 03:15 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Hey thank you soo much! Those are sweet! ANd thank you for NOT flaming me because I asked a stupid question..
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #9  
Old 08-04-2001, 03:17 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
okay for tile scrolling
thats alot more confusing
since i am a nice person i will show you a script
BUT YOU CANT USE IT! cuz i use it in my own playerworld..
this is like a little snake that follows red tiles. ill post a pic too so you can see what it looks like
(and it also displays a message that can be set by any1 wearing (Owner) tag)


btw this is for free pw's so i dunno how u would change it to work to p2p

and it has 1 little bug which sometimes it freezes if its in an opened space.. (it freezes like for 1/2 a sec but its noticable)

NPC Code:

timereverywhere;
// NPC made by LiquidIce (Owner)
this.wormlength=8;

if (playerenters) {
checkarray();
timeout=.05;
}

if (timeout) {
movearray();
findnext();
//here we do the updates and junk
putobjects();
//do message
displaymessage();

timeout=.075;
}

function checkarray() {
setarray wormx, this.wormlength+1;
setarray wormy, this.wormlength+1;

for (this.i=0;this.i<this.wormlength;this.i++) {
if (wormx[this.i]=0) { wormx[this.i]=x; }
}
for (this.i=0;this.i<this.wormlength;this.i++) {
if (wormy[this.i]=0) { wormy[this.i]=y; }
}
}

function movearray() {
this.i=this.wormlength;
while (this.i>0) {
wormx[this.i]=wormx[this.i-1];
wormy[this.i]=wormy[this.i-1];
this.i--;
}
}

function findnext() {
this.bad=1;
while (this.bad=1) {
this.check=int(random(0,12));
//left
if (this.check<3) {
this.checktile=board[(wormx[0]-1)+(64*wormy[0])];
if (this.checktile=2358) {
wormx[0]=wormx[1]-1;
wormy[0]=wormy[1];
this.bad=0;
}
}
//right
if (this.check>3&&this.check<6) {
this.checktile=board[(wormx[0]+1)+(64*wormy[0])];
if (this.checktile=2358) {
wormx[0]=wormx[1]+1;
wormy[0]=wormy[1];
this.bad=0;
}
}
//up
if (this.check>9&&this.check<13) {
this.checktile=board[wormx[0]+(64*(wormy[0]-1))];
if (this.checktile=2358) {
wormx[0]=wormx[1];
wormy[0]=wormy[1]-1;
this.bad=0;
}
}
//down
if (this.check>6&&this.check<9) {
this.checktile=board[wormx[0]+(64*(wormy[0]+1))];
if (this.checktile=2358) {
wormx[0]=wormx[1];
wormy[0]=wormy[1]+1;
this.bad=0;
}
}
//end while
}
//end function
}

function putobjects() {
for (this.i=0;this.i<this.wormlength;this.i++) {
board[wormx[this.i]+(64*wormy[this.i])]=1822;
updateboard wormx[this.i],wormy[this.i],1,1;
}
//delete last
board[wormx[this.wormlength]+(64*wormy[this.wormlength])]=2358;
updateboard wormx[this.wormlength],wormy[this.wormlength],1,1;
}

if (playerchats&&startswith(setmessage,#c)&&strequals (#g,Owner)) {
setstring server.wormmessage,#e(11,strlen(#c)-11,#c);
}

if (playerchats&&startswith(resetmessage,#c)&&strequa ls(#g,Owner)) {
setstring server.wormmessage,;
}

function displaymessage() {
if (!strequals(server.wormmessage,)) {
showimg 100,@#s(server.wormmessage),wormx[0]-1,wormy[0]-1;
}
}



check attachment too
Attached Thumbnails
Click image for larger version

Name:	worm.png
Views:	166
Size:	22.9 KB
ID:	2966  
__________________
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
  #10  
Old 08-04-2001, 03:20 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
WOW!! Hey do you have one I can use? It's only for one level!
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #11  
Old 08-04-2001, 03:21 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
sorry for so many posts buttt.. here is a scrolling message code
it does like this
Hello
Ello H
llo He
lo Hel
and so on. .
you say setscrolltext whatever here
then u say setscrollshow whatever
and setscrollspeed whatever
its used on Unholy Nation so you cant use this code. but you can learn always off of it

NPC Code:

// NPC made by LiquidIce
//only use in Unholy Nation
//SCROLL BOOK!

//variables
//max ammount of chars.
this.charmax=30;
//end variables

if (timeout) {
this.charshow=strtofloat(#s(charshow));
if (this.charloc+this.charshow>strlen(#s(scrolltext)) ) {
this.newbegin=this.charshow-(strlen(#s(scrolltext))-(this.charloc));
setplayerprop #c,#e(this.charloc,strlen(#s(scrolltext))-(this.charloc),#s(scrolltext)) #e(0,this.newbegin,#s(scrolltext));
}
else {
setplayerprop #c,#e(this.charloc,this.charshow,#s(scrolltext));
}
this.charloc+=1;
if (this.charloc>strlen(#s(scrolltext))) { this.charloc=0; }
if (this.enabled=1) { timeout=strtofloat(#s(scrollspeed))*.1; }
}

if (playerenters) {
show;
}
if (playertouchsme) {
toweapons Chat-Scroll;
setstring charshow,10;
setstring scrollspeed,1;
}

if (playerchats&&startswith(setscrollshow,#c)) {
tokenize #c;
if (strtofloat(#t(1))>0&&strtofloat(#t(1))=<25) {
setstring charshow,#T(#t(1));
}
}

if (playerchats&&startswith(setscrollspeed,#c)) {
tokenize #c;
if (strtofloat(#t(1))>0&&strtofloat(#t(1))=<20) {
setstring scrollspeed,#t(1);
}
}

if (weaponfired&&strlen(#s(scrolltext))>0) {
if (this.enabled=0) {
this.enabled=1;
this.charloc=0;
timeout=.05;
}
else {
this.enabled=0;
}
}


if (playerchats&&startswith(setscrolltext,#c)) {
tokenize #c;
if (tokenscount>1) {
setstring scrolltext,#T(#e(14,30,#c));
//trims
this.charloc=0;
this.enabled=0;
}
}

__________________
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
  #12  
Old 08-04-2001, 03:22 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
Quote:
Originally posted by wetferret1
WOW!! Hey do you have one I can use? It's only for one level!
well I cant let you use it cuz its in my playerworld
but u can look and learn off of it and make ur own ..
__________________
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
  #13  
Old 08-04-2001, 03:37 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
will do (sorry for the spam)
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #14  
Old 08-04-2001, 05:50 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
those are some pretty uberl33t scripts...
__________________

-=Shard IceFire=-
Reply With Quote
  #15  
Old 08-04-2001, 06:00 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
comehere ice pick put these on Delteria!!!
Reply With Quote
  #16  
Old 08-04-2001, 06:15 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
What are you guys saying? I dont under stand?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #17  
Old 08-04-2001, 09:13 AM
revalation revalation is offline
Registered User
revalation's Avatar
Join Date: Mar 2001
Location: a sea of cherry jello.
Posts: 973
revalation is on a distinguished road
Send a message via AIM to revalation Send a message via Yahoo to revalation
Quote:
Originally posted by Poogle
comehere ice pick put these on Delteria!!!
Shut up.
__________________

kuromu.
Reply With Quote
  #18  
Old 08-04-2001, 09:49 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
Quote:
Originally posted by Shard_IceFire
those are some pretty uberl33t scripts...
I know =) like 25 minutes to make each of the long ones .. and the short ones a minute each lol..



erm if Icepick did use any of my scripts I would tell Stefan or Genmo or whoever and they would be in trouble.
__________________
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
  #19  
Old 08-04-2001, 09:57 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
ICE,
I did use thos light scripts you told me?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #20  
Old 08-04-2001, 09:59 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by LiquidIce00
a sweet thing is to make glowing orbs.. like a light that glows..
here is a code . im making this out of the top of my head so dont know if they will work or not

NPC Code:

timeout=.15;
if (timeout) {
check();
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}
function check() {
if (this.glow<9&&this.goback=0) { this.glow++; }
if (this.glow>0&&this.goback=1) { this.glow--; }
if (this.glow=0&&this.goback=1) { this.goback=0; }
if (this.glow=9&&this.goback=0) { this.goback=1; }
}



or you can do a random one...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=random(0,10);
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow*.1;
}



or one that keeps going shinier..

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+1)%.9;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that goes from shiny to non shiny...

NPC Code:

timeout=.15;
if (timeout) {
this.glow=(this.glow+.9)%1;
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}



or one that blinks

NPC Code:

timeout=.15;
if (timeout) {
if (this.glow=.9) { this.glow=0; }
else { this.glow=.9; }
dontblock;
drawaslight;
setcoloreffect .8,.8,.8,this.glow;
}

Once again you take it the hard way -_-
Reply With Quote
  #21  
Old 08-04-2001, 10:09 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
Quote:
Originally posted by wetferret1
ICE,
I did use thos light scripts you told me?
u can use those I dont care..
and poogle you always flame people ..
__________________
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
  #22  
Old 08-04-2001, 12:42 PM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
Thanks Ice,
Hey do you have anymore scripts?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
Reply With Quote
  #23  
Old 08-05-2001, 04:07 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
I sense another iccepick in te making
Reply With Quote
  #24  
Old 08-05-2001, 04:10 AM
wetferret1 wetferret1 is offline
Script Cow - MOOO!
wetferret1's Avatar
Join Date: Aug 2001
Location: Oregon, USA
Posts: 1,285
wetferret1 is on a distinguished road
Send a message via AIM to wetferret1
What dose that mean? And dose anyone know a signature host?
__________________
[img]http://s-o.clanpages.com/wet***getlal.png[/img]
Quote:
Originally posted by Loriel
I am not corrupt, and I will ban you if you don't believe that.
(-=Wetferret IceFire=-)
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 06:52 PM.


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