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 02-03-2002, 03:51 AM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
Dodgeball Script

This is what i've come up with so far...
I wanna make it so that you throw the ball AT THE OTHER TEAM and if it hits them, they get warped to the "out box". I want to have guilds like Red Tem & Blue Team. If it hits nobody, then the ball just stops. Also, i want the ball to go farther then regular...

if (created) {
canbecarried;
}
if (playertouchsme) {
}
if (thrown) {
setstring thrown,#g;
sleep2;
setstring thrown,;
}
if (playertouchsme&&!strequals(thrown,#g)) {
setlevel2 2,2,2;
}
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote
  #2  
Old 02-03-2002, 04:02 AM
Link188 Link188 is offline
Registered User
Link188's Avatar
Join Date: Jul 2001
Location: Monroeville, PA
Posts: 548
Link188 is on a distinguished road
Send a message via AIM to Link188
Quote:
Originally posted by Kaimetsu
Hey you, you shot me in laser tag. NO HELP FOR YOU.
Grrr, thats not fair! Its just a game!:grrr:
__________________
~Jeice Lighthawk~
"And you will shed tears of scarlet..."

~Edited by me. ^_^
Reply With Quote
  #3  
Old 02-03-2002, 04:04 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
umm i think u wll have to use vectors almost like making a bow type thing
__________________
And Yes I work For.... Renegade
Reply With Quote
  #4  
Old 02-03-2002, 05:22 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
I like grudges!
__________________
Reply With Quote
  #5  
Old 02-03-2002, 05:28 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: Dodgeball Script

Quote:
Originally posted by Link188
This is what i've come up with so far...
I wanna make it so that you throw the ball AT THE OTHER TEAM and if it hits them, they get warped to the "out box". I want to have guilds like Red Tem & Blue Team. If it hits nobody, then the ball just stops. Also, i want the ball to go farther then regular...

if (created) {
canbecarried;
}
if (playertouchsme) {
}
if (thrown) {
setstring thrown,#g;
sleep2;
setstring thrown,;
}
if (playertouchsme&&!strequals(thrown,#g)) {
setlevel2 2,2,2;
}
Well you've got a good but to go.

I suggest using testing playerx's and playery's to check
it and have it go the direction you throw, also make sure
you have it where when thrown it has to stay with 64
(x and y).
Reply With Quote
  #6  
Old 02-03-2002, 08:14 AM
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
Quote:
Originally posted by Kaimetsu
Hey you, you shot me in laser tag. NO HELP FOR YOU.
lol, :P

you could use triggeraction to 'hit' the player in front of it, depending on which way it was thrown, and check if they are part of your team or not, then hit them
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-03-2002, 10:20 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Quote:
Originally posted by Kaimetsu
Hey you, you shot me in laser tag. NO HELP FOR YOU.
LOL
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #8  
Old 02-04-2002, 01:43 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
Re: Dodgeball Script

Quote:
Originally posted by Link188

if (thrown) {
setstring thrown,#g;
sleep2;
setstring thrown,;
}
if (playertouchsme&&!strequals(thrown,#g)) {
setlevel2 2,2,2;
}
Instead of strings (which are attached to players, i suppose(corret if wrong)), maybe this.-vars would work...
NPC Code:

if (thrown) {
this.thrown = 1; // 1 = red, 2 = blue, etc...
timeout = 2;
}
if (timeout) this.thrown = 0; //thrown off
if (playertouchsme) {
if (strequals(#g,Red)) this.thrownat=1;
if (strequals(#g,Blue)) this.thrownat=2;
if (this.thrown!= this.thrownat) { setlevel2 blah.graal,2,2; }
}


Dunno...but it would depend on if strings are with players not the whole level...

Gohan
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:59 AM.


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