| 07-14-2006, 05:44 AM | #1 |
How do you make a unit create a doodad, or be able to turn into a doodad? And not an individual unit, a kind of unit. Thanks. |
| 07-14-2006, 06:03 AM | #2 |
You remove the unit, and create a doodad in the same place the unit was. Just check the type of unit to set what type of doodad will it turn into. |
| 07-14-2006, 11:22 PM | #3 |
But what if the unit hasn't been created yet? I want it to be a spell. |
| 07-14-2006, 11:26 PM | #4 |
You cant create doodads, only destructibles |
| 07-15-2006, 12:12 AM | #5 |
Dont remove unit use HIDE trigger on it |
| 07-15-2006, 12:13 AM | #6 |
What is precisely what you want to do? A unit casting a "turn someone into a doodad" spell? If so, just check when your dummy ability is being cast, check who was the target, and do the necesary changes. Btw, if you just are aiming for the doodad look, you can just create an unit that looks like a doodad, and do the infamous "attach the locust ability" trick. |
| 09-25-2006, 12:16 AM | #7 |
What I want is a unit that morphs into a tree using a spell. Sorry, I don't know how to do the above thing, I'm kind of a n00b. |
| 09-26-2006, 04:33 AM | #8 | |
Quote:
Why would you want to morph a unit that doesn't exist into a tree? Wouldn't the tree also not exist? Perhaps that is a subject for philosophical debate.Anyways, it sounds like you want to make a trigger that starts when the unit casts the ability. Depending on how exactlt your spell works there are some options. Case 1, the morph lasts for a certain amount of time: The action would be hide the casting unit, then create a tree destructible at the position of the casting unit (the position will leak memory if you don't know what you are doing), then wait for X seconds then remove the tree and unhide the casting unit. To refer to the tree that was created you will need to save it as a variable that won't change during the wait (ie a local variable). Case 2, the morph can be toggled by the unit: This might be easier for you regardless. Create a spell based on a morphing ability like the Druid of the Claw, Bear Form. Change the morph target unit into one that looks and acts like a tree. |
| 09-26-2006, 10:43 AM | #9 | |
Quote:
- first, make a custom unit that use a model based on trees - second, make a spell based on hex spell, set the "morph unit" to your custom-unit-that-looked-like-a-tree and this spell will be your morph spell itself - third part will be easier, if your want to make the hex/morphed unit invulnerable, just use trigger to make it invulnerable or simply add locut ability and remove invulnerability/locust after (spell_duration) seconds i think this is the easiest way to do what you want ![]() |
