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 09-09-2001, 10:49 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Soccer script!

Does the offline soccer ball work online? The one in "level1.graal" if not can someone post a script thaat works online?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #2  
Old 09-09-2001, 11:04 PM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
I dunno, try this, it usually works as far as I know, I made this 3 months ago, someone else copied it, and will probably try to take credit for it.:
// NPC made by Rebel95
if (playerenters){timereverywhere;timeout=.05;
drawunderplayer;canbepushed}
if(playertouchsme){
if(playerdir=1){this.x-=1.5;this.y+=(y-playery-1)}
if(playerdir=3){this.x+=1.5;this.y+=(y-playery-1)}
if(playerdir=2){this.y+=1.5;this.x+=(x-playerx-1)}
if(playerdir=0){this.y-=1.5;this.x+=(x-playerx-1)}
this.subx=abs((this.x)/10);
this.suby=abs((this.y)/10);
}
if(timeout){timeout=.05;
if(this.x<>0)}{x+=this.x;
if(this.x>0)this.x-=this.subx;
if(this.x<0)this.x+=this.subx;
if(abs(this.x)<.1)this.x=0;
}
if(this.y<>0){y+=this.y;
if(this.y>0)this.y-=this.suby;
if(this.y<0)this.y+=this.suby;
if(abs(this.y)<.1)this.y=0;
}
if(onwall(x+.5,y-.5)&&this.y<0)this.y=(-this.y);
if(onwall(x+.5,y+1.5)&&this.y>0)this.y=(-this.y);
if(onwall(x+1.5,y+.5)&&this.x>0)this.x=(-this.x);
if(onwall(x-.5,y+.5)&&this.x<0)this.x=(-this.x);


-Rebel95
Reply With Quote
  #3  
Old 09-09-2001, 11:10 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Thanx alot =) u think i can use a gani to it? i mean to make it look like kicking
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #4  
Old 09-09-2001, 11:19 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
I made a football script that I sent to Sage Chazou so he is improving it to allow kicking and such, quite like that ball in level1.graal.
Reply With Quote
  #5  
Old 09-09-2001, 11:33 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
coolt


va det du som gjorde den?
__________________
Donate money for my trip to Germany

Adiarde Manager
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 10:04 PM.


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