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 09-15-2001, 09:19 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
Unhappy Why Dos'e't This Work?

Why Dose'nt This Work?
NPC Code:
if (playerenters) {this.weaponammo=100;
}
if (playertouchsme) {toweapons Atom Bomb
}
if(weapoonfired && this.weaponammo>0||timeout && this.weaponammo>0){
putexplosion random(0,101),random(0,63),random(0,63);
sleep 0.1;
this.weaponammo--;
timeout=.1;
}



:grrr:
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #2  
Old 09-16-2001, 05:12 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~

if(weapoonfired && this.weaponammo>0||timeout && this.weaponammo>0){

Ok... first of all: Weapoonfired? I think you mean weaponfired.

Second of all, don't put your weaponfired and timeout together. That means you'd hafta keep firing it for the timeout to work pretty much.

Third... Why in the hell are you using putexplosion? :grrr: Can't you people come up with an attack weapon that doesn't use putexplosion or lay or putbomb?! ARGGGGHHHH!!! *twitches violently. Duck falls from ceiling*

Ahhh quap... *BOOM!!!*
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 09-16-2001, 06:49 AM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
the "||" stands for OR so putting both of them there is ok
Reply With Quote
  #4  
Old 09-17-2001, 04:29 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~

*didn't see the ||*

But still, weapoonfired is bad bad :-P

Wait... dragoon fired? OH NOOO!!

*duck falls down and explodes*
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #5  
Old 09-17-2001, 04:31 AM
TrueHeaT TrueHeaT is offline
Zatoichi
Join Date: Jun 2001
Posts: 7,277
TrueHeaT is an unknown quantity at this point
try "if (playerenters) play stef5.mid" that usually works.
__________________

If anyone has any of my tilesets and graphics, please PM me as I would really love to have them.
Reply With Quote
  #6  
Old 09-18-2001, 06:48 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
now how do i make this go curved?
NPC Code:

// NPC made by Darkoshi1
if(playerenters){
dontblock;
drawoverplayer;
timeout=.5;
}
if(timeout){
if(x>playerx){x--};
if(y<playery){y++};
if(x<playerx){x++};
if(y>playery){y--};
timeout=.05;
dontblock;
drawoverplayer;
}


:grrr: :grrr: :grrr:
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #7  
Old 09-18-2001, 08:29 AM
Brady2 Brady2 is offline
Registered User
Brady2's Avatar
Join Date: Mar 2001
Location: Phoenix, AZ and Wichita Falls, TX
Posts: 924
Brady2 is on a distinguished road
Re: Why Dos'e't This Work?

Quote:
Originally posted by Vinvect
Why Dose'nt This Work?
NPC Code:
if (playerenters) {this.weaponammo=100;
}
if (playertouchsme) {toweapons Atom Bomb
}
if(weapoonfired && this.weaponammo>0||timeout && this.weaponammo>0){
putexplosion random(0,101),random(0,63),random(0,63);
sleep 0.1;
this.weaponammo--;
timeout=.1;
}



:grrr:
NPC Code:

if (playerenters) this.weaponammo=100;
if (playertouchsme) toweapons Atom Bomb;
if((weaponfired || timeout) && this.weaponammo>0){
putexplosion random(0,101),random(0,63),random(0,63);
sleep 0.1;
this.weaponammo--;
timeout=.1;
}

Reply With Quote
  #8  
Old 09-18-2001, 08:40 AM
Faheria_Admin5 Faheria_Admin5 is offline
Registered User
Join Date: Sep 2001
Posts: 70
Faheria_Admin5 is on a distinguished road
Send a message via AIM to Faheria_Admin5
That would be nice if a player never logged off. I think if im not mistaken variables reset apon logg off.
__________________

Reply With Quote
  #9  
Old 09-18-2001, 09:47 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
Quote:
Originally posted by Vinvect
now how do i make this go curved?
NPC Code:

// NPC made by Darkoshi1
if(playerenters){
dontblock;
drawoverplayer;
timeout=.5;
}
if(timeout){
if(x>playerx){x--};
if(y<playery){y++};
if(x<playerx){x++};
if(y>playery){y--};
timeout=.05;
dontblock;
drawoverplayer;
}


:grrr: :grrr: :grrr:
DUH PLEZSE ANYONE@!!!!!!!!!!!!!!!!!!!!!@@@!!!!!!?!?!?!!?!?!?? !?!?!:grrr: :grrr: :grrr:
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #10  
Old 09-18-2001, 07:36 PM
Lycia Lycia is offline
Banned
Lycia's Avatar
Join Date: Mar 2001
Location: Over there. --->
Posts: 3,240
Lycia is on a distinguished road
Send a message via ICQ to Lycia Send a message via AIM to Lycia
Quote:
Originally posted by TrueHeaT
try "if (playerenters) play stef5.mid" that usually works.
Hah.
Reply With Quote
  #11  
Old 09-19-2001, 04:51 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
...wow, trueheat can script! oh wait, he stole that from the levels pack...

PS: "the invincible man sent me" - lol, you can all sorts of crap in the levels pack
Reply With Quote
  #12  
Old 09-19-2001, 07:00 AM
Vinvect Vinvect is offline
Registered User
Join Date: Aug 2001
Location: U.S.A,California,Milpitas,In A House,In Room,On A Seat,On a Computer
Posts: 157
Vinvect is on a distinguished road
Send a message via ICQ to Vinvect Send a message via Yahoo to Vinvect
Quote:
Originally posted by Vinvect
now how do i make this go curved?
NPC Code:

// NPC made by Darkoshi1
if(playerenters){
dontblock;
drawoverplayer;
timeout=.5;
}
if(timeout){
if(x>playerx){x--};
if(y<playery){y++};
if(x<playerx){x++};
if(y>playery){y--};
timeout=.05;
dontblock;
drawoverplayer;
}


:grrr: :grrr: :grrr:
PPL READ!!!!!!!!!!!!!!!!!!!:grrr: :grrr:
__________________
==========================
I Script Really Good
&
Looking For A NAT Job
==========================
Quote:
That's like a big lugee!
-Evolution The Movie
Quote:
Ha Ha Ha Give It Up!
-Cyrus From Bomberman
I'm not a Bomy anymore.
I'm a MUTATED BROCLI MONSTER!
(or SIGN MONSTER)
If you make me angry,
I'LL EAT YOU WHOLE!
ME, MUTATED BROCLI MONSTER MASTER
(or SIGN MONSTER)
WILL EAT YOU ALL UP!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quest Valley Owner
Looking For Staff
Pm Me
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
O.o Still Have My Braen Damaegd o.O


Thanks To Esiah, He Made This For Me!
Thanks Esiah!
Reply With Quote
  #13  
Old 09-20-2001, 08:47 AM
Faheria_Admin5 Faheria_Admin5 is offline
Registered User
Join Date: Sep 2001
Posts: 70
Faheria_Admin5 is on a distinguished road
Send a message via AIM to Faheria_Admin5
Quote:
Originally posted by Kaimetsu


STEP ONE: LEARN TO SCRIPT
STEP TWO: SCRIPT IT YOURSELF AND LEAVE US ALONE
Go Kai!
__________________

Reply With Quote
  #14  
Old 09-20-2001, 09:32 AM
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
to curve ...

to curve an NPC its best to use radius and if your still in 6th grade like some of the Graalians i know you mihgt as well try your best at moving it with x and y (++,--)

y=mx+B
Reply With Quote
  #15  
Old 09-21-2001, 08:06 AM
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
Re: Re: to curve ...

Quote:
Originally posted by Kaimetsu


Please take care when using the word "best" when simply describing something from your limited knowledge.
are you making fun of me or just talking about my horrible math skills ?
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 07:33 PM.


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