Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Yet another 3D Terrain question (https://forums.graalonline.com/forums/showthread.php?t=30292)

GregoryYoshi 05-28-2002 06:10 PM

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?

Spanko 05-28-2002 06:19 PM

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.

Despo1 05-28-2002 06:20 PM

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 :(

GregoryYoshi 05-28-2002 06:24 PM

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? :confused:

Spanko 05-28-2002 06:52 PM

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? :confused:

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?

Saga2001 05-28-2002 09:59 PM

NPC Code:

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



Should work fine on a loaded 3D terrain.

Python523 05-29-2002 05:43 AM

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

GregoryYoshi 05-29-2002 07:14 AM

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. :confused:

amonrabr 05-29-2002 07:52 PM

Quote:

Originally posted by GregoryYoshi

I copied and pasted directly to an NPC, and still no dice. :confused:

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,,,,;
}


Projectshifter 05-29-2002 09:12 PM

*****! Like Stefan would reply to his e-mail? ;) he he.
---Shifter

GregoryYoshi 05-30-2002 05:11 AM

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.

GregoryYoshi 05-30-2002 08:15 AM

Quote:

Originally posted by Kaimetsu


Don't take everything so seriously, dude :rolleyes:

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?

G_yoshi 05-30-2002 08:18 AM

Quote:

Originally posted by Kaimetsu


Don't take everything so seriously, dude :rolleyes:

That's an awefully low blow...even for you :/ I thought you were better than that...or at least you seemed to proclaim it :p

G_yoshi 05-30-2002 08:25 AM

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 :)

GregoryYoshi 05-30-2002 08:25 AM

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.

G_yoshi 05-30-2002 08:53 AM

Quote:

Originally posted by Kaimetsu


I can, for this is not in any way the definition.

Is this like defining "is" ?

GregoryYoshi 05-30-2002 08:58 AM

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...

G_yoshi 05-30-2002 08:59 AM

Quote:

Originally posted by Kaimetsu


No, this is like defining "sarcasm".

My brother just defined it for you... :p

Trying to say his definition is wrong is wrong since it's one of the many definitions :p

G_yoshi 05-30-2002 09:27 AM

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 :)

GregoryYoshi 05-30-2002 09:29 AM

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?


All times are GMT +2. The time now is 08:44 PM.

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