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 05-08-2002, 05:36 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
Unhappy Gravity

i was playing graal a lil bit till i saw Sanstrata.
I saw a gravity room where baddys cant walk up...
all the gravity rooms i had seen was that the baddies
can walk up and down to...
how do i create that (i dont got the link anymore fot baddyscripting to)

thx
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #2  
Old 05-08-2002, 07:00 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
can you change baddies direction with baddies[i].dir??
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 05-09-2002, 07:46 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
that would be easy to do.... id make a script for ya but i dont like doing that stuff for people.....
Reply With Quote
  #4  
Old 05-09-2002, 08:29 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

you'd use
baddy[i].mode
baddy[i].y
baddy[i].dir

I think...put those all in a timeout and configure them properly..then you have it
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #5  
Old 05-09-2002, 02:16 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
but 1 thing

if i use
baddy[i].mode
baddy[i].y
baddy[i].dir

must i change the variable [i] ???
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #6  
Old 05-09-2002, 09:26 PM
Neonight Neonight is offline
where da wmdz at
Neonight's Avatar
Join Date: Jun 2001
Location: Windsor, Illinois
Posts: 3,665
Neonight is on a distinguished road
Send a message via AIM to Neonight

it's compus[i].var

You'd probably do something like:

NPC Code:

if(playerenters && timeout){
for(i=0;i<compuscount;i++){
compus[i].y+=.1;
}
timeout=.1;
}




That'd make the baddies fall downward...i think.
Reply With Quote
  #7  
Old 05-09-2002, 09:29 PM
Dragona2002 Dragona2002 is offline
Registered User
Join Date: May 2002
Location: The Netherlands
Posts: 105
Dragona2002 is on a distinguished road
Send a message via AIM to Dragona2002 Send a message via Yahoo to Dragona2002
k i will check it


( how do u know that)

gees i want to learn that scripting 2 !!!
__________________

Quote:
The Dark Nemesis begins.......
Reply With Quote
  #8  
Old 05-09-2002, 11:02 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Well yeah. There is so much to do with scripting.
Like this:
NPC Code:

//#CLIENTSIDE
if (playerenters || timeout) {
if (mousebuttons == 1)
findPlayer();
if (strlen(#a(this.player))>0 && this.b<=100)
showAttribs();
else
hideimg 600;
timeout=.05;
}
function findPlayer() {
for (i=0; i<playerscount; i++; ) {
if (mousex in |players[i].x, players[i].x+3| && mousey in |players[i].y, players[i].y+4|) {this.player = i; i=playerscount;}
}
if (strlen(#a(this.player))<=0) this.player=-2;
this.b = 0;
}
function showAttribs() {
showimg 600, @#a(this.player), 5, 100;
changeimgzoom 600, .75;
changeimgvis 600, 5;
this.b++;
}


Isn't it beautiful, only 2 minutes of scripting...*breathtaking*. Unfortunatly you cannot edit players[i].x and y and etc from clientside, so you have to go serverside to make a player drag...:-/. Oh well. Learn how to script.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #9  
Old 05-11-2002, 04:30 AM
Jinx Jinx is offline
Radioactive Cow
Jinx's Avatar
Join Date: Sep 2001
Location: I duno...
Posts: 1,217
Jinx is on a distinguished road
Send a message via AIM to Jinx
Quote:
Originally posted by Kaimetsu
Perhaps the baddies were rescripted.
I'm Pretty sure we didn't do that....althought I know squat about scripting...

-Jinx
Reply With Quote
  #10  
Old 05-12-2002, 04:39 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

Quote:
Originally posted by Saga2001
Well yeah. There is so much to do with scripting.
Like this:
NPC Code:

//#CLIENTSIDE
if (playerenters || timeout) {
if (mousebuttons == 1)
findPlayer();
if (strlen(#a(this.player))>0 && this.b<=100)
showAttribs();
else
hideimg 600;
timeout=.05;
}
function findPlayer() {
for (i=0; i<playerscount; i++; ) {
if (mousex in |players[i].x, players[i].x+3| && mousey in |players[i].y, players[i].y+4|) {this.player = i; i=playerscount;}
}
if (strlen(#a(this.player))<=0) this.player=-2;
this.b = 0;
}
function showAttribs() {
showimg 600, @#a(this.player), 5, 100;
changeimgzoom 600, .75;
changeimgvis 600, 5;
this.b++;
}


Isn't it beautiful, only 2 minutes of scripting...*breathtaking*. Unfortunatly you cannot edit players[i].x and y and etc from clientside, so you have to go serverside to make a player drag...:-/. Oh well. Learn how to script.
are you sure you posted in the right topic dude? He was asking about baddies, not moving the player with your mouse, lol.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #11  
Old 05-12-2002, 07:07 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Re: umm

Quote:
Originally posted by mikepg


are you sure you posted in the right topic dude? He was asking about baddies, not moving the player with your mouse, lol.
Sounds good to me... Now we just need a good gravity script for mice. You put your mouse on the screen, and it accelerates downward at a rate of 9.8 Graal meters/second squared. Then again, we are talking about Graal gravity, aren't we? That rather complicates things.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #12  
Old 05-18-2002, 11:32 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
yep

neoknight almose guesed the baddy grav script ...
here it is

NPC Code:

// NPC made by Prozac
if (playerenters) {timeout=.05;}
if (timeout)
{
for (this.i=0; this.i<compuscount; this.i++
{
if (!onwall(compus[this.i].x+1,compus[this.i].y+2.5))
{compus[this.i].y++;}
}
timeout=.05;
}



wow people are still talkign about scripts i made 18 months ago .. heh cool!!!
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
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 11:58 PM.


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