Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-27-2002, 04:16 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Shorten

Anyone wanna help me shorten this?

// NPC made by Lord Helmut
//255x144 width=63 height=48

if(created){
this.hearts=5;
this.speed=.5;
this.x=x;
this.y=y;
setimgpart #f,0,0,63,48;
}
if(playerenters){
timeout=.05;
}
if(timeout){
i=random(0,20);
if(i<5){
swimleft();
}
if(i<10||>=5){
swimright();
}
if(i<15||>=10){
swimdown();
}
if(i=<20||>=15){
swimup();
}
timeout=3;
}
function swimleft() {
setgifpart b_piranah.png,63*2,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*2,48*2,63,48;
sleep .3;
}

function swimright() {
setgifpart b_piranah.png,63*3,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*3,48*2,63,48;
sleep .3;
}

function swimup() {
setgifpart b_piranah.png,63*0,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*0,48*2,63,48;
sleep .3;
}

function swimdown() {
setgifpart b_piranah.png,63*1,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*2,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*1,48*2,63,48;
sleep .3;
}

its my first try at anything bigger than a door script =(
Reply With Quote
  #2  
Old 01-27-2002, 04:31 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
all i could think of was like a timeout to put the animation part in but i already use a timeout and I cant use 2. Maybe a while loop but i would need 4. 1 for each animation part =/
Reply With Quote
  #3  
Old 01-27-2002, 04:56 PM
kittygirl765 kittygirl765 is offline
tapatapatapa
kittygirl765's Avatar
Join Date: Dec 2001
Location: Caught in a tree
Posts: 70
kittygirl765 is on a distinguished road
Send a message via ICQ to kittygirl765
Re: Shorten

try this, i just made it up right now, so mite be wrong in some places =D
NPC Code:
// NPC made by Lord Helmut
//255x144 width=63 height=48

if(created){
this.hearts=5;
this.speed=.5;
this.x=x;
this.y=y;
setimgpart #f,0,0,63,48;
}
if(playerenters){
timeout=.05;
}
if(timeout){
i=int(random(0,4));
for(a=0;a!=3;a++) {
setgifpart b_piranah.png,63*i,48*1,63,48;
sleep .3;
setgifpart b_piranah.png,63*i,48*0,63,48;
sleep .3;
setgifpart b_piranah.png,63*i,48*2,63,48;
sleep .3;
}
timeout=3;
}

__________________
I <3 UN
I <3 Shadow Strip Entertainment City Shangri-La
I <3 gscript2
Reply With Quote
  #4  
Old 01-27-2002, 05:01 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
wtf ahhhhhh!
Reply With Quote
  #5  
Old 01-27-2002, 05:10 PM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
wait that only works for 1 dir though... =/ damn how would i do all 4 dirs
Reply With Quote
  #6  
Old 01-27-2002, 07:08 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
u can save some bits if u use

for(a=0;a<4;a++)
__________________
No Webhost at the moment
Reply With Quote
  #7  
Old 01-27-2002, 10:55 PM
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
its funny
u always asking for help on the forums and you have ur own PW ..
I used to help you out but then your PW came out and I saw Dark Warlock's outside building (u use it outside of onlinestartlocal) and I asked about 30 times to take that down b/c Dark Warlock does not want his stolen building there. So dont expect any help towards your PW from me. and I do help other PW's .. im friends w/ Maximus (Delteria) , Brandon (Andor), and more ..
so if u want help dont be an ass when we ask of something from u
__________________
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 01-27-2002, 11:37 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Quote:
Originally posted by LiquidIce00
its funny
u always asking for help on the forums and you have ur own PW ..
I used to help you out but then your PW came out and I saw Dark Warlock's outside building (u use it outside of onlinestartlocal) and I asked about 30 times to take that down b/c Dark Warlock does not want his stolen building there. So dont expect any help towards your PW from me. and I do help other PW's .. im friends w/ Maximus (Delteria) , Brandon (Andor), and more ..
so if u want help dont be an ass when we ask of something from u
Friends with me?
Reply With Quote
  #9  
Old 01-27-2002, 11:43 PM
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 royce


Friends with me?
u ?
i dont even know you?
__________________
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 01-27-2002, 11:51 PM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Yes You do. Why in the hell where you just abusing your powers on andor to screw around with my life there? You would keep jailing me then you would not stop puttin my hearts to 0.
Reply With Quote
  #11  
Old 01-27-2002, 11:52 PM
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 royce
Yes You do. Why in the hell where you just abusing your powers on andor to screw around with my life there? You would keep jailing me then you would not stop puttin my hearts to 0.
LOLOL I have not been to andor for a month..
since the last "incident" of the staff's stupidity I havent been there and I just talk to Brandon thru AIM ..
__________________
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 01-28-2002, 12:16 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut


i was just asking for help to shorten my script...
Reply With Quote
  #13  
Old 01-28-2002, 12:29 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by LiquidIce00
its funny
u always asking for help on the forums and you have ur own PW ..
I used to help you out but then your PW came out and I saw Dark Warlock's outside building (u use it outside of onlinestartlocal) and I asked about 30 times to take that down b/c Dark Warlock does not want his stolen building there. So dont expect any help towards your PW from me. and I do help other PW's .. im friends w/ Maximus (Delteria) , Brandon (Andor), and more ..
so if u want help dont be an ass when we ask of something from u
sorry bout that. I remember you saying that and I was really busy and forgot to take it down. I have changed it somewhat now. Its the same basic shape but not the same thing. If you would rather me change it more please say so.
Reply With Quote
  #14  
Old 01-28-2002, 12:33 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 lordhelmut


sorry bout that. I remember you saying that and I was really busy and forgot to take it down. I have changed it somewhat now. Its the same basic shape but not the same thing. If you would rather me change it more please say so.
thats fine thnk u..
ur staff was giving me beef and being smart asses when I was talking to them a while ago .. so thats not cool
__________________
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
  #15  
Old 01-28-2002, 12:37 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
NPC Code:

// NPC made by Lord Helmut
// Shortened by Kyle0654
// 255x144 width=63 height=48

if (created) {
this.dirgo = {0,2,1,3};
this.hearts = 5;
this.speed = .5;
this.x = x;
this.y = y;
setimgpart #f,0,0,63,48;
}

if (playerenters||timeout) {
i = int(random(0,3.9));
swim();
timeout = 3;
}

function swim() {
for (this.z = 0; this.z < 9; this.z++) {
setimgpart b_piranah.png,63*(this.dirgo[i]),48*((10-this.z)%3),63,48;
sleep .3;
}
}


You'll of course need some code for actually moving it...and I'd suggest rearranging your sprite set to eliminate the need for the dirgo modifier.
Reply With Quote
  #16  
Old 01-28-2002, 06:00 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
i completely started over.

// NPC made by Lord Helmut
//255x144 width=63 height=48

if(created){
this.hearts=5;
this.speed=.1;
this.fdir=0;
this.fsprite=0;
this.fswimsprite=0;
setimgpart #f,0,0,63,48;
}
if(playerenters){
timeout=.05;
}

if(timeout){
if (random(1,40)<3) this.fdir=int(random(0,4));
if (this.fdir==0 && !onwall(x+2,y-.1)) y-=this.speed;

if (this.fdir==1 && !onwall(x-.5,y+1.5)) x-=this.speed;

if (this.fdir==2 && !onwall(x+2,y+3.1)) y+=this.speed;

if (this.fdir==3 && !onwall(x+4.1,y+1.5)) x+=this.speed;
if (this.fswimsprite==0) this.fsprite=0;
if (this.fswimsprite==1) this.fsprite=0;
if (this.fswimsprite==2) this.fsprite=1;
if (this.fswimsprite==3) this.fsprite=1;
if (this.fswimsprite==4) this.fsprite=0;
if (this.fswimsprite==5) this.fsprite=0;
if (this.fswimsprite==6) this.fsprite=2;
if (this.fswimsprite==7) this.fsprite=2;
this.fswimsprite++;
if (this.fswimsprite>=8) this.fswimsprite=0;
timeout=.05;
}

if (onwater(x+2,y+1.3)) {
if (this.fdir==2) {setgifpart b_piranah.png,63*1,48*0,63,48;}
if (this.fdir==0) {setgifpart b_piranah.png,63*0,48*0,63,48;}
if (this.fdir==1) {setgifpart b_piranah.png,63*3,48*0,63,48;}
if (this.fdir==3) {setgifpart b_piranah.png,63*2,48*0,63,48;}
}

it works fine accept...the fish sometimes swims onto land and for some reason it doesnt display fish sprites =( it should the fish swimming around really fast but it wont show the sprites of the tail moving
Reply With Quote
  #17  
Old 01-28-2002, 06:02 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by LiquidIce00


thats fine thnk u..
ur staff was giving me beef and being smart asses when I was talking to them a while ago .. so thats not cool
same for your PW =/
We all got inmature asses for staff but I gotta deal with it because everyone willing to be GP or FAQ (97% of population) are *****s
Reply With Quote
  #18  
Old 01-28-2002, 12:33 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
*laughs hysterically* You had a script from kyle0654 and you out of the blue decided to start over. !@# you freak.

Kyle! don't bother helping anybody! they are ungrateful and Your better off working on NW scripts!.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #19  
Old 01-28-2002, 03:00 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Kyle's shortened version was nice and compact but won't work when turning that script into a baddy or whatever it will be because it has sleep in the for loop.
Reply With Quote
  #20  
Old 01-28-2002, 05:42 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Quote:
Originally posted by lordhelmut


same for your PW =/
We all got inmature asses for staff but I gotta deal with it because everyone willing to be GP or FAQ (97% of population) are *****s
Most player worlds do have immature staff (maybe even all). The owner's of the player world's should not only chose their staff because of their ability but, also their characteristics. Not just go on player worlds and mass out "I'm making a player world and if you're a good scripter or level designer/maker pm me to try out." That's just my opinion though...
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #21  
Old 01-29-2002, 03:36 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
At least try to learn something from the techneques that you can plainly see in most good scripts.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #22  
Old 01-31-2002, 06:02 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
how do you make NPCs work with multiple players in a level?
Reply With Quote
  #23  
Old 01-31-2002, 06:08 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
players[index].variable

for some of my baddies, I do a for-loop to find the closest player, and set him to "this.chase"...then I have the baddie chase after players[this.chase].x and players[this.chase].y
Reply With Quote
  #24  
Old 01-31-2002, 07:39 AM
Gohan43331 Gohan43331 is offline
Registered User
Join Date: Jan 2002
Posts: 87
Gohan43331 is on a distinguished road
Send a message via AIM to Gohan43331
Quote:
Originally posted by lordhelmut
if(timeout){
if (random(1,40)<3) this.fdir=int(random(0,4));
if (this.fdir==0 && !onwall(x+2,y-.1)) y-=this.speed;

if (this.fdir==1 && !onwall(x-.5,y+1.5)) x-=this.speed;

if (this.fdir==2 && !onwall(x+2,y+3.1)) y+=this.speed;

if (this.fdir==3 && !onwall(x+4.1,y+1.5)) x+=this.speed;
for this, instead of !onwall(x,y), why not use onwater(x,y) ?

Not sure if this will work, since i havn't tested it... :P

Gohan

*edit*
I didn't see that last part, but you can also add:
NPC Code:
if(!onwater(x,y)) { x=this.startx; y=this.starty; }


or better yet, make it go to the closest place where there is water. Ex: water is to the south:
NPC Code:

for(this.wc=0;!onwater(x+2,y+.1);this.wc++) {y+=this.speed}


Not sure...but just trying...
Reply With Quote
  #25  
Old 01-31-2002, 09:50 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
because im testing to see if its on a wall? I want it to be in water. Thanks Soul. That helped =D
Reply With Quote
  #26  
Old 01-31-2002, 12:07 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by LiquidIce00
its funny
u always asking for help on the forums and you have ur own PW ..
I used to help you out but then your PW came out and I saw Dark Warlock's outside building (u use it outside of onlinestartlocal) and I asked about 30 times to take that down b/c Dark Warlock does not want his stolen building there. So dont expect any help towards your PW from me. and I do help other PW's .. im friends w/ Maximus (Delteria) , Brandon (Andor), and more ..
so if u want help dont be an ass when we ask of something from u
*would have Co Owned Delteria if he was not dumb*
Reply With Quote
  #27  
Old 01-31-2002, 12:08 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by lordhelmut


sorry bout that. I remember you saying that and I was really busy and forgot to take it down. I have changed it somewhat now. Its the same basic shape but not the same thing. If you would rather me change it more please say so.
Want me to make a house outside for you,
i've been in a rather good mood for level
making ...
Reply With Quote
  #28  
Old 01-31-2002, 09:07 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by Slaktmaster
Kyle's shortened version was nice and compact but won't work when turning that script into a baddy or whatever it will be because it has sleep in the for loop.
Well, you could keep a variable for the animation step and increment and set it every 10 timeouts (.3 * 10 = 3, which is the sleep). I'd have done that if I'd have known you wanted to eliminate the use of sleep in your script...but sometimes the sleep command can be useful, so I left it.
Reply With Quote
  #29  
Old 01-31-2002, 09:08 PM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
er...redo your timeout setup and set the animation every timeout (.3) and do the rest every 10 timeouts.
Reply With Quote
  #30  
Old 01-31-2002, 09:19 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
will somoeone shorten this please


if (created) {
destroy; }
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #31  
Old 02-01-2002, 02:47 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by TDK_RC6
will somoeone shorten this please


if (created) {
destroy; }

NPC Code:

if (created) destroy;



bah doesn't anyone know how to shorten a script besides kyle...
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #32  
Old 02-01-2002, 04:18 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
~AlphaFlame~

Yea, I know how you can shorten it. Use a gun... oh!! You mean the script? Uhhh I know I know!! Learn to script you newbie!!
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #33  
Old 02-01-2002, 06:51 AM
kyle0654 kyle0654 is offline
-. .`
kyle0654's Avatar
Join Date: Mar 2001
Posts: 1,000
kyle0654 will become famous soon enough
Quote:
Originally posted by TDK_RC6
will somoeone shorten this please


if (created) {
destroy; }
NPC Code:

destroy;


Created will be the first flag called on the npc, and it will run past destroy;, which needs no flags to run, just something to trigger the npc, and it will destroy it.
Reply With Quote
  #34  
Old 02-01-2002, 08:15 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
This is why Kyle ownz.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:20 AM.


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