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 11-01-2001, 06:59 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Basket Ball Goal

Why doesnt this work?

dontblock;
drawoverplayer;
if (peltwithnpc) {
message SCORE FOR BLUE TEAM!;
sleep 3;
message ;
}
Reply With Quote
  #2  
Old 11-01-2001, 08:14 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
it only works if the ball is an NPC using
canbecarried
and then it's trown at the goal
else you'll have to check the x and y positions of the ball
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 11-01-2001, 08:27 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 TDO2000
it only works if the ball is an NPC using
canbecarried
and then it's trown at the goal
else you'll have to check the x and y positions of the ball
I hit it with the ball npc and nothing happens
Reply With Quote
  #4  
Old 11-01-2001, 08:34 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Okay I made it work now I need help with the ball:canbecarried;
canbepulled;
canbepushed;
if (strequals(#l,libasketball_2.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) {
x = -1;
y = 31;
}
if (strequals(#l,libasketball_1.nw)&&strequals(#c,new ball)&&strequals(#g,Events Team)) {
x = 62;
y = 31;
}

it dont warp the ball
Reply With Quote
  #5  
Old 11-01-2001, 08:49 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
have u ever thought about playerchats in this script?
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 11-01-2001, 08:52 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 TDO2000
have u ever thought about playerchats in this script?
Hrmm no im used to it working anyway but ill try that
Reply With Quote
  #7  
Old 11-01-2001, 08:53 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 Poogle
Hrmm no im used to it working anyway but ill try that
Doesnt work
Reply With Quote
  #8  
Old 11-01-2001, 08:59 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
yay and it needs to be #L not #l =)
so the next thing if u would say new Ball it would always apear at
x=62

so i would add something like

&& x >31

or something =)
__________________
No Webhost at the moment
Reply With Quote
  #9  
Old 11-01-2001, 09:03 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 TDO2000
yay and it needs to be #L not #l =)
so the next thing if u would say new Ball it would always apear at
x=62

so i would add something like

&& x >31

or something =)
Thank you I got it! =)
Reply With Quote
  #10  
Old 11-01-2001, 09:55 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
this is where NATs come in handy, leave NPC-Scripting to the experts
Reply With Quote
  #11  
Old 11-01-2001, 04:31 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 Faheria_GP2
this is where NATs come in handy, leave NPC-Scripting to the experts
its not really that hard ... just sloppy scripting really ....
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 12:14 PM.


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