[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 08-06-2012, 11:54 AM   #1 (permalink)
Registered User ShadowDruid
User
 
ShadowDruid's Avatar
 
Join Date: May 2012
Posts: 82
ShadowDruid has little to show at this moment (7)
Terrain question

Can I add to a terrain an ability? like if i use snow terrain, and i want it to be realistic so the units will move X% slower while walking in the snow.
__________________
ShadowDruid is offline  
Old 08-06-2012, 12:13 PM   #2 (permalink)
Registered User Ezekiel12
User
 
Join Date: Mar 2012
Posts: 206
Ezekiel12 is on a distinguished road (73)Ezekiel12 is on a distinguished road (73)
Yes, you can do this in various ways.
For example there is a condition which checks for terrain type at a special point. If the terrain type at a unit is the snow one you could add a slow ability to the unit.

Or if your terrain doesnt change it might be easier to just place some invisible dummy units across the snow terrain wich give a slow aura.
Ezekiel12 is offline  
Old 08-06-2012, 12:21 PM   #3 (permalink)
Registered User ShadowDruid
User
 
ShadowDruid's Avatar
 
Join Date: May 2012
Posts: 82
ShadowDruid has little to show at this moment (7)
the problem with dummy is that the aura can get outside the place with the snow...
And i didn't really understood how to make the first way
__________________
ShadowDruid is offline  
Old 08-06-2012, 12:35 PM   #4 (permalink)
Registered User Ezekiel12
User
 
Join Date: Mar 2012
Posts: 206
Ezekiel12 is on a distinguished road (73)Ezekiel12 is on a distinguished road (73)
If you use the dummy aura solution you might have to make more than one aura with different ranges so they cover your snow terrain. The advantage is you dont need any trigger.

If you have very small scattered areas of snow terrain use the terrain condition method, something like the example in the attachment. Note that the slow aura there is meant to have targets 'self' only.

A third method would be to use Unit enters region/Unit leaves region events to add and remove the self slow aura. Though this would require a lot of regions I guess.
Attached Images
File Type: jpg slowExample.jpg (35.5 KB, 11 views)
Ezekiel12 is offline  
Old 08-06-2012, 12:57 PM   #5 (permalink)
Registered User ShadowDruid
User
 
ShadowDruid's Avatar
 
Join Date: May 2012
Posts: 82
ShadowDruid has little to show at this moment (7)
its about 1/4 of the map and the map is pretty big. and if you look at the map the snowy place is like a triangle. what would be the easier way? : /
__________________
ShadowDruid is offline  
Old 08-06-2012, 01:43 PM   #6 (permalink)
Registered User claptomanic
User
 
Join Date: Jul 2011
Posts: 562
claptomanic is on a distinguished road (86)claptomanic is on a distinguished road (86)
make a periodic trigger (every 0.1 seconds i would recommend) and pick every unit in a unit group (i would recommend that you add some restriction in the group so that not every unit is picked....could cause lagg), set the position of the unit in a variable and check whether at the position is snow and if so make him slower (if you use a hashtable it would be doable without an ability).
claptomanic is offline  
Old 08-06-2012, 01:45 PM   #7 (permalink)
Registered User Ezekiel12
User
 
Join Date: Mar 2012
Posts: 206
Ezekiel12 is on a distinguished road (73)Ezekiel12 is on a distinguished road (73)
A triangle, hm? A circle or rectangle would be so easy : P..

The way which is the least work for you is for sure the one shown in the previous attachement. If you dont have a massive amount of units use that one.

If you have a massive amount of units I suggest you use the dummy units with the aura and place them for most efficiency like in the new (ugly) attachement.
Attached Images
File Type: jpg dummyUnitsExample.jpg (21.3 KB, 16 views)
Ezekiel12 is offline  
Old 08-06-2012, 02:32 PM   #8 (permalink)
Registered User ShadowDruid
User
 
ShadowDruid's Avatar
 
Join Date: May 2012
Posts: 82
ShadowDruid has little to show at this moment (7)
Meh, i guess ill try the aura.
__________________
ShadowDruid is offline  
Closed Thread

Bookmarks

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 05:47 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle