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-01-2001, 02:16 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Post Script Help

I need help on how to make a water football game and how do u make an npc not walk on water!!!!
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #2  
Old 09-01-2001, 02:19 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
For where te walking commands the mainsituation add
&& !onwater

that should work ....
but i aint sure ...
Reply With Quote
  #3  
Old 09-01-2001, 02:29 AM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Water

Tell me this script but so you cant walk on water!

if (created) {
// Initialize the attributes
showcharacter;
setcharprop #3,head431.gif;
setcharprop #C0,orange;
setcharprop #C1,red;
setcharprop #C2,orange;
setcharprop #C3,orange;
setcharprop #C4,red;
setcharprop #2,no-shield.gif;
setcharprop #8,body4.png;
shieldpower = 1;
dir = 2;
}
if (playerenters || wasthrown) {
// Initialize the this. variables
dirgo = {0,-1,-1,0,0,1,1,0};
timeout = 0.05;
this.walkmode = 1;
if (wasthrown && this.walkmode>1) this.walkmode = 1;
this.x1 = 0;
this.x2 = 63;
this.y1 = 0;
this.y2 = 63;
this.speed = 0.3;
this.mode = 0;
setcharani idle,;
this.runcounter = int(random(10,40));
}

// Walking stuff
if (timeout && this.mode==0) { // WALKING
setcharani walk,;
newx = x + dirgo[dir*2] * this.speed;
newy = y + dirgo[dir*2+1] * this.speed;
this.runcounter--;
if (this.walkmode==1) { // RANDOM
if (this.runcounter>0) {
testx = newx + 1.5 + dirgo[dir*2];
testy = newy + 2+ dirgo[dir*2+1];
if (onwall(testx,testy)) {
dir = (dir+2)%4;
this.runcounter = int(random(0,60));
} else {
x = newx;
y = newy;
}
} else {
this.runcounter = int(random(10,40));
dir = (dir+1+int(random(0,2))*2)%4;
}
} else if (this.walkmode==2) { // LEFTRIGHT
if (dir!=1 && dir!=3) dir = 3;
else {
x = newx;
y = newy;
if ((dir==1 && x<=this.x1) || (dir==3 && x>=this.x2))
dir = (dir+2)%4;
}
} else if (this.walkmode==3) { // UPDOWN
if (dir!=0 && dir!=2) dir = 2;
else {
x = newx;
y = newy;
if ((dir==0 && y<=this.y1) || (dir==2 && y>=this.y2))
dir = (dir+2)%4;
}
} else if (this.walkmode==4) { // RECTANGLE
x = newx;
y = newy;
if ((dir==0 && y<=this.y1) || (dir==1 && x<=this.x1) ||
(dir==2 && y>=this.y2) || (dir==3 && x>=this.x2))
dir = (dir+3)%4;
}
if (this.walkmode>1 && this.runcounter<=0)
this.runcounter = 20;
message;
timeout = 0.05;
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #4  
Old 09-01-2001, 02:42 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
ok asking for some help once in a while is ok but you've asked for scripts 3 times in 2 days without even giving them a shot
Reply With Quote
  #5  
Old 09-01-2001, 03:04 AM
revalation revalation is offline
Registered User
revalation's Avatar
Join Date: Mar 2001
Location: a sea of cherry jello.
Posts: 973
revalation is on a distinguished road
Send a message via AIM to revalation Send a message via Yahoo to revalation
Go here.
http://www.users.qwest.net/~ace2896/commands.html
__________________

kuromu.
Reply With Quote
  #6  
Old 09-01-2001, 06:47 AM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
You should first learn to do really eas things like
NPC Code:
if (playertouchsme) {message I am a newbie scripter;}

__________________
Reply With Quote
  #7  
Old 09-01-2001, 12:40 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
or..

if (playerenters){set die;}
if (die){say2 jo0 be dead!; sleep 1; hurt 10000;}
o.0
0.o
=D
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #8  
Old 09-01-2001, 05:07 PM
Neoreno Neoreno is offline
Cerebrate
Neoreno's Avatar
Join Date: Aug 2001
Location: England
Posts: 1,663
Neoreno is on a distinguished road
Send a message via AIM to Neoreno
Tough script

my grandmother could of worked out those scripts and im sick of replys full of nothing!!!!
__________________

Quote:
Exitus Acta Probat: The Outcome Justifies the Deed.
Reply With Quote
  #9  
Old 09-01-2001, 05:38 PM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by Kaimetsu
Listen to me very carefully:

1) LEARN TO SCRIPT
2) SCRIPT IT YOURSELF

If you can't script, then don't get involved in scripting.
wise words Kaimetsu
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #10  
Old 09-03-2001, 10:33 AM
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
Well, i not the kind to be sarcastic, but I'll make an exception since I'm feeling really evil today.

//NPC Made by Rebel95
if (playerenters&&Created){
setcharprop #c,#c;
setcharprop #n,#n;
setcharprop #g,#g;
ap=0;
sprite=40;
timeout=5;
}
if (timeout){
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
sleep .5;
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
putexplosion2 3,2,random(1,64),random(1,64);
timeout =.5;
}
//End of Script
That should do it for today, goodnighhhh.....goodd.....goo....

-Rebel95
Reply With Quote
  #11  
Old 09-03-2001, 11:15 AM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
Talking good

Nice Scrpit Rebel95.
But yea try to make your own npcs Neoreno you ask for help alot.....
Or what you could try to do is make it then post how far you got on it then let some one try to help you.
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

Reply With Quote
  #12  
Old 09-04-2001, 03:18 AM
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
::Looks at Neoreno's code and starts shaking::
What the? ::grabs bottle of pills and swallows them all, then crawls into a small ball and whimpers:: I don't get that...


-Rebel001
Reply With Quote
  #13  
Old 09-04-2001, 04:02 AM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
Cool lol

lol
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

Reply With Quote
  #14  
Old 09-04-2001, 11:21 AM
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
He might not have wrote it, but he passes out really easily, I recommend that you show him some respect, he used to be in the souls of power, that is all I have to say.::wakes up and see bottle of pills:: Hmm...Again? Hey what 's this? ::starts shaking again, pulls out another bottle of pills, and takes the whole thing, curls ina ball, and sobs::
Okay.....
LIGHT SABER MATCH!!!!
::Zoo!::
::Zoo!::
Censored Material




:grrr:
Censored Material
-The Rebels
Reply With Quote
  #15  
Old 09-04-2001, 11:25 AM
RICEJERRRY4 RICEJERRRY4 is offline
Registered User
Join Date: Jul 2001
Location: VA
Posts: 133
RICEJERRRY4 is on a distinguished road
Send a message via AIM to RICEJERRRY4
Cool hahaha

LOL!!!!!!
jokers all around.
__________________
Graal Nick Name:Rice
E-Mail:Forgot
Aim:Nothing5001

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


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