HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

giant units

07-31-2003, 03:46 AM#1
Unsung Hero
I was tweaking w/ the editor and i was wondering if it's possible to make it so that units can step on trees, buildings, and other units. I wanted to see if i could make giants.

I got the idea from one of the RoC NE campaigns when Illidan as a demon trudged through some trees after Furion banished him. I'm totally clueless as to how to work the triggers, so any help would be appreciated. Thanks.
07-31-2003, 08:41 AM#2
gurubvin
yea, but if it'll be alot of work. You would make a trigger

Melee Initialization
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Destructible - Pick every destructible within 50.00 of (Position of (name of your unit here)) and do (Actions)
Loop - Actions
Destructible - Kill (Picked destructible)

that should destroy everything within 50 spaces away from ur unit. problem is it'll destroy it in a circle, not under him. there would be testing and debugging involved, but that should start u off. pm me if u have trouble.
07-31-2003, 11:00 AM#3
Dead-Inside
Actually...

It's

E: A unit comes within whatever range of YOUR DEMON
A: Kill (Unit in range of YOUR DEMON)

Problems with system:
The computer will go another way, since it does not register that the demon actually destroys anything in its path. It still thinks the trees/buildings/men will be there when it walks there, aka, impassible terrain.

Regards
Dead-Inside
07-31-2003, 01:39 PM#4
Ari
Here's a thought - can immolation be made to affect trees only? If so, give a unit low range, VERY high damage immolation that only affects trees (or even units).
07-31-2003, 02:00 PM#5
Tirias
The last idea of the immolation would probably work, try that.
07-31-2003, 02:21 PM#6
35263526
As for the problem involving the computer forcing the unit to go another way, you could make this trigger:

EVENTS
Map initialization

CONDITIONS
None

ACTIONS
Unit - Turn collision detection for *Your Unit* Off

The problem is that it will walk through everything. Might be able to tweak it though, I havent got time to do so.
07-31-2003, 06:32 PM#7
Unsung Hero
Thanks for the feedback guys. But, would I want to use all of your events and actions, or just some? Also, Dead Inside, when you say 'YOUR DEMON', am I to replace that w/ the unit(s) I want to make a giant, or am I to actually choose an option labeled 'YOUR DEMON'? I haven't haven't come across that. Thanks.

EDIT: Also, when I try to select the unit it takes me back to the the map editor and minimizes the trigger editor. It stumps me. :abomHUH?:
07-31-2003, 07:51 PM#8
35263526
If you can get the tree-only immolation to work (and thats pretty easy), id use that and my trigger because although the immolation will burn through the trees the computer wont act like it will and still try to go round.
This is still frough with problems though. As far as I know, turning off collision detection is the only way to make to computer ignore obstacles when paving a route, but that means that this is only good for cinematics as it will be able to walk through units and other doodads without damaging them. It is possible to make a trigger turning collision detection on when a unit comes within range and turning it off when it leaves, but its still pretty buggy. If you want that trigger, just ask and ill give it to you.
07-31-2003, 10:51 PM#9
Unsung Hero
The immolation idea sounds fine, but I wanted to make it so that the giant would destroy trees in addition to buildings and making units explode. I also don't think I want to make the giants burn- but I'll give it a shot. Thanks.

Also, I'm still having trouble selecting the units I want these triggers to work on. When I click 'select a unit' from the trigger editor it minimizes and takes me back to the map for some reason.

EDIT: NM, I placed a unit on the map and then selected it and that fixed one problem. But, I'm trying to make it so these giant units are playable and produced from a building. I was thinking I'd just be able to select "Mountain Giant" or something from the 'select a unit' button. I'm just tweaking some already existing units from the playable races. I probably should have specified that earlier, looking back. Sorry for any confusion.
08-01-2003, 04:55 AM#10
Unsung Hero
ok, I did Dead-Insides suggestion but for some reason whenever i have that giant unit go in a crush an enemy base their town hall would duplicate. Like new ones and new workers would spring up. My townhall and workers would duplicate too. It was strange. Anyone know what's going on?