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 05-28-2002, 06:10 PM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Question Yet another 3D Terrain question

Are there any commands that "detect" so to speak the nearest verticie height? Or are there commands that can change them?
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #2  
Old 05-28-2002, 06:19 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
There's getz(x,y) and setz x,y,width,height,a,b,c,d;
They both only work on 3d terrain, though I guess that's sort of obvious.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #3  
Old 05-28-2002, 06:20 PM
Despo1 Despo1 is offline
Registered User
Join Date: May 2002
Location: G3rM4nY
Posts: 38
Despo1 is on a distinguished road
Send a message via AIM to Despo1
do u mea to set a terrain field?
also u must use "setz" but i have never use this also i cant help more as to call u the comment
__________________
Bl4h Si6n4tur3s sUx3n
Reply With Quote
  #4  
Old 05-28-2002, 06:24 PM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Spanko
There's getz(x,y) and setz x,y,width,height,a,b,c,d;
They both only work on 3d terrain, though I guess that's sort of obvious.
Well, I know how setz is supposed to work, but it doesn't work for some reason (yes, I do have the gmap set and everything, my 3D terrain works). How does getz work when it asks for x and y?
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #5  
Old 05-28-2002, 06:52 PM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by GregoryYoshi


Well, I know how setz is supposed to work, but it doesn't work for some reason (yes, I do have the gmap set and everything, my 3D terrain works). How does getz work when it asks for x and y?
It's quite simple, getz gives the z of the terrain at x,y.
And it's strange that setz doesn't work, have you done updaterrain; after doing the setz?
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #6  
Old 05-28-2002, 09:59 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
NPC Code:

if (playerenters) {
setz 10, 10, 5, 5, 50, 50, 50, 50;
updateterrain;
}



Should work fine on a loaded 3D terrain.
__________________

!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
  #7  
Old 05-29-2002, 05:43 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
remember, npcs wont work on a loaded terrain without the gold server (unless they changed that) since they don't send the z to the g-server
Reply With Quote
  #8  
Old 05-29-2002, 07:14 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Saga2001
NPC Code:

if (playerenters) {
setz 10, 10, 5, 5, 50, 50, 50, 50;
updateterrain;
}



Should work fine on a loaded 3D terrain.
I copied and pasted directly to an NPC, and still no dice.
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #9  
Old 05-29-2002, 07:52 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Quote:
Originally posted by GregoryYoshi

I copied and pasted directly to an NPC, and still no dice.
Well getz works fine, example:
NPC Code:
message #v(getz(x,y));



Set Z doesnt work how he said.. and u dont need to update de terrain to do it, example(setting 0):

NPC Code:

timeout=.05;
if(timeout){
setz playerx,playery,5,5,,,,;
}

Reply With Quote
  #10  
Old 05-29-2002, 09:12 PM
Projectshifter Projectshifter is offline
The David
Projectshifter's Avatar
Join Date: Apr 2002
Location: USA
Posts: 912
Projectshifter is an unknown quantity at this point
Send a message via ICQ to Projectshifter Send a message via AIM to Projectshifter Send a message via MSN to Projectshifter Send a message via Yahoo to Projectshifter
*****! Like Stefan would reply to his e-mail? he he.
---Shifter
__________________
Who has time for life these days?
Reply With Quote
  #11  
Old 05-30-2002, 05:11 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Kaimetsu


Maybe you should ask God to fix it for you.
Ok, Kaimetsu, this little quip doesn't seem to have any sarcasm in it, so I think is WAY out of place. I didn't come here looking to pick a fight with you, nor do I intend to now. I was just looking for a little advice on some script, not some "let's see if I can make Zayjee mad so I can argue with him again" or whatever. I would only expect that comment during a heated argument between us. I respect you, and for that reason I will not engage in any conflict at this time. And Kaimetsu, please keep your posts NPC scripting related.

To amonrabr: Thanks, I'll have to try that.
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #12  
Old 05-30-2002, 08:15 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Kaimetsu


Don't take everything so seriously, dude
I wouldn't have if you had put something like "jk" at the end. If you had, it would have been tolerable. Is it just me, or did anyone else notice no obvious signs of sarcasm?
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #13  
Old 05-30-2002, 08:18 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


Don't take everything so seriously, dude
That's an awefully low blow...even for you :/ I thought you were better than that...or at least you seemed to proclaim it
__________________
Reply With Quote
  #14  
Old 05-30-2002, 08:25 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


I'm not sure if you know what sarcasm is :-/
Hmm, if he or I could read minds (and I'm sure glad I can't) maybe would could tell?

Actions speak louder than words...but when on the net, that's completely opposite :/ To interpret one's words is very rough since there are many possibilities...and given that you don't care for either of our choices it makes logical sense that it wasn't sarcastic...and that is despite whether or not you claim it to be.

We didn't ask for your "holier than thou" attitude that you carry with you...please take it else where...maybe someone else might appreciate it
__________________
Reply With Quote
  #15  
Old 05-30-2002, 08:25 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Kaimetsu


I'm not sure if you know what sarcasm is :-/
Sarcasm may MEAN a comment intended to harm, but as with all words, their meanings *evolve* (examples: ***, ***,) and become known to the masses as something different. In this case, sarcasm meaning a phrase said in a way to harm, but not really meant. Surely you cannot deny this.
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #16  
Old 05-30-2002, 08:53 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


I can, for this is not in any way the definition.
Is this like defining "is" ?
__________________
Reply With Quote
  #17  
Old 05-30-2002, 08:58 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Kaimetsu


I can, for this is not in any way the definition.
Please then, by all means...tell me your definition, because I looked it up at webster.com before making that reply. Here:

Quote:
Directly from our friends at www.webster.com

1: a sharp and often satirical or ironic utterance designed to cut or give pain <tired of continual sarcasms>
2 a : a mode of satirical wit depending for its effect on bitter, caustic, and often ironic language that is usually directed against an individual b : the use or language of sarcasm <this is no time to indulge in sarcasm>
Seems pretty close to me...
__________________
Zayjee uses this account now. OK?
Reply With Quote
  #18  
Old 05-30-2002, 08:59 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


No, this is like defining "sarcasm".
My brother just defined it for you...

Trying to say his definition is wrong is wrong since it's one of the many definitions
__________________
Reply With Quote
  #19  
Old 05-30-2002, 09:27 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


It's nothing like what you said. You said sarcasm was a hurtful comment that wasn't meant sincerely. The definition mentions nothing about sincerity. You earlier proposed that I wasn't being sarcastic in my post, yet this would mean that I was seriously suggesting asking God for help. Given my religious position, this is obviously unlikely.
Again, is that like trying to define "is"?

He just posted the definition of sarcasm...it clearly fulfills what you've posted...Oh well, you made the choice to post that...please accept the consequences that are likely to follow
__________________
Reply With Quote
  #20  
Old 05-30-2002, 09:29 AM
GregoryYoshi GregoryYoshi is offline
Registered User
Join Date: Jan 2002
Location: Wherever I am right now
Posts: 227
GregoryYoshi is on a distinguished road
Send a message via AIM to GregoryYoshi Send a message via Yahoo to GregoryYoshi
Quote:
Originally posted by Kaimetsu


It's nothing like what you said. You said sarcasm was a hurtful comment that wasn't meant sincerely. The definition mentions nothing about sincerity. You earlier proposed that I wasn't being sarcastic in my post, yet this would mean that I was seriously suggesting asking God for help. Given my religious position, this is obviously unlikely.
A little "selective reading" there my friend? What I meant was that if you didn't really mean what you said about me asking God to fix it, you could have just put "jk" or something. But that was not the case. I also said that today's unofficial definiton of sarcasm is saying something and not exactly meaning it. Also, I'm not listening to my own words when I said I wanted no part of any conflict with you. So I'm ending this here and now. Anyone got any other ideas on my scripting troubles?
__________________
Zayjee uses this account now. OK?
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 03:40 PM.


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