wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-13-2007, 11:50 PM   #1
PsycoMarauder
User
 
PsycoMarauder's Avatar
 
Join Date: Jun 2006
Posts: 94

PsycoMarauder has little to show at this moment (3)

Send a message via AIM to PsycoMarauder
Question Damage +/- Based On Terrain Height

Hi, thanks for looking at the thread. I was wondering how I could go about adding/subtracting damage done based on terrain height. Is this possible? Or am I going to have to do it by "If units are in x range of y" or even worse, by regions?
Thanks in advance for you help, Psycomarauder
PsycoMarauder is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-13-2007, 11:54 PM   #2
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

Collapse JASS:
native GetLocationZ             takes location whichLocation returns real

Use a periodic event that adjusts damage based on height.
__________________
Useful Links:
My Resources:
Good Resources:
Search
Tutorials
Ability Guide

UnitMaxState
BonusMod

AutoIndex
ARGB
TimerUtils

Earth-Fury is offline   Reply With Quote
Old 04-14-2007, 02:43 AM   #3
1337D00D
User
 
1337D00D's Avatar
 
Join Date: Dec 2006
Posts: 67

1337D00D has little to show at this moment (2)

Default

You might wanna be careful with that, because it can cause desyncs when used on spell-caused terrain deformations, like War Stomp.
1337D00D is offline   Reply With Quote
Old 04-14-2007, 05:28 AM   #4
PsycoMarauder
User
 
PsycoMarauder's Avatar
 
Join Date: Jun 2006
Posts: 94

PsycoMarauder has little to show at this moment (3)

Send a message via AIM to PsycoMarauder
Default Hi, you recently posted on my +/- damage question

and I was wondering if by desync you meant it would cause errors in abilities. I doubt that I will be making many abilities for the map, except maybe a few trigger based ones and Heal. Do you think the desync problem will happen alot, or is it still worth it to put the trigger in?
PsycoMarauder is offline   Reply With Quote
Old 04-14-2007, 07:15 AM   #5
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default

Just avoid an ability based off thunderclap and (I think) shockwave and you should be fine.
__________________
Ammorth is offline   Reply With Quote
Old 04-14-2007, 07:23 AM   #6
eclips)e
User
 
Join Date: May 2006
Posts: 1

eclips)e has little to show at this moment (0)

Default

Just curious...

Does GetLocationZ not take terrain deformations into account and returns the original terrain height before the deformation was created?

and...

What would happen if it did desync?
eclips)e is offline   Reply With Quote
Old 04-14-2007, 07:33 AM   #7
PsycoMarauder
User
 
PsycoMarauder's Avatar
 
Join Date: Jun 2006
Posts: 94

PsycoMarauder has little to show at this moment (3)

Send a message via AIM to PsycoMarauder
Default

Umm...guys can you help me a bit with the jass..I dont know jass...:(
Can you please explain just how I could use the jass to do the kind of terrain height triggers im trying to do?
PsycoMarauder is offline   Reply With Quote
Old 04-14-2007, 07:42 AM   #8
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Do something like this:
Trigger:
Collapse Events
---- Your events ----
Collapse Conditions
---- Your conditions ----
Collapse Actions
Custom script: local real udg_LocationZ <THIS MUST BE FIRST>
Set TempPoint = (Some point somewhere)
Custom script: Set udg_LocationZ = GetLocationZ(udg_TempPoint)
---- Refer to "LocationZ" from now on in this trigger as the Z height of the point ----
In the first and third lines, just change "udg_LocationZ" to "udg_" + Your variable's name.

In the third line, change "udg_TempPoint" to "udg_" + the name of the variable used in line two.

"udg_" is just a prefix that goes in front of variables declared in the variable editor.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 04-14-2007, 11:06 AM   #9
Captain Griffen
Dread Lord of the Cookies
 
Captain Griffen's Avatar


Content Director
 
Join Date: Sep 2003
Posts: 5,375

Submissions (2)

Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)Captain Griffen is a glorious beacon of light (497)

Approved Map: Warlords[Quicksilver #2] - 1st Place

Default

- JASS for this is highly recommended.
- Don't create a new location each time - move an existing one. MUCH faster.
- If you want to do it properly, you'll need dynamic triggers to catch the damage done, and some method of sorting ability damage out from normal damage.
__________________
Quote:
Originally Posted by Earth-Fury
Griffen is correct, you are not.
Quote:
[13:32] <Akolyt0r> hmm.. stil i want to have some unused women
Captain Griffen is offline   Reply With Quote
Old 04-15-2007, 06:41 AM   #10
PsycoMarauder
User
 
PsycoMarauder's Avatar
 
Join Date: Jun 2006
Posts: 94

PsycoMarauder has little to show at this moment (3)

Send a message via AIM to PsycoMarauder
Default

Thanks you guys. Most of it what you said means nothing to me, as of yet.. But I plan on decoding each piece of your help into stupid stuff I can understand, and maybe in like a month or so I'll know how to do it :)
PsycoMarauder is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:33 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services