HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Tree Regrowth based on Tileset?

09-09-2008, 05:19 PM#1
Kyrbi0
Hidden information:
I'm not sure that this is the correct solution to my problem, but...


I've got an ability (partially triggered) that allows a unit to Climb up a "target" tree (actually based on Force of Nature, so it summons the "alternate form" and the tree(s) are destroyed).

Regardless, to say he "Climbs" a tree, then have this unit floating in mid-air above a stump is rather incongruous, to say the least. I would like to know if there's a method for respawning the tree back.

However, since this must be melee-compatible, it may be played on a variety of tilesets. So I can't just say "Unit casts spell, Spell = Climb, Create 1 Sunken Ruins destructible at target point of ability being cast".

Is there a method? Perhaps a trigger that (at map initialization) checks the tileset, then designates a "tree variable" to a certain type of tree?

~~~

(secondary question I just thought of):

Can you use "Target Point of Ability Being Cast" with an AoE-target ability? If so, does it use the center of the AoE reticule?


Any help would be appreciated.
09-09-2008, 07:52 PM#2
Av3n
Hmm... If you were using your previous method you can set the tree variable as a global and change it for each map then for the spell itself use the global var which contains the tree type for the map.

But however I'm pretty sure you make abilities target trees

-Av3n
09-09-2008, 09:05 PM#3
TEC_Ghost
Just use a different spell base instead of AOE and make it only targetable on trees. You wouldn't even need to destroy the tree then.
09-09-2008, 10:05 PM#4
Kyrbi0
@Av3n: "original spell"??

(sorry, I'm rushed. I will get back to this later)
09-10-2008, 03:12 AM#5
Kyrbi0
@Ghost: Well yeah... But then I'd have to trigger the unit summon. Bleh.

Although on second thought, I only have to fix a location leak if I do that, which isn't too bad... Hmmm..

Ok, thanks. I'll look into that.
09-10-2008, 03:41 AM#6
rulerofiron99
Learn to edit posts :/

--

"Can you use "Target Point of Ability Being Cast" with an AoE-target ability? If so, does it use the center of the AoE reticule?"

Yes.

--

"Just use a different spell base instead of AOE and make it only targetable on trees. You wouldn't even need to destroy the tree then."

Huntress's owl scout.
09-10-2008, 03:52 AM#7
Kyrbi0
I know how to edit posts; but Edited posts don't get bumped (and thus get less of people's attention), and I figured my response was sufficiently dissimilar to the above post to merit a second post.

~~

Lrn2Quote :P

Quote:
Originally Posted by rulerofiron99
Yes.

Alright, thanks.

Quote:
Originally Posted by rulerofiron99
Huntress's owl scout.

Yeah, or Mountain Giant's "War Club"... Oh wait, that destroys trees, too. Alright.



~~~~


Wait, got a problem. Let's say I go for Huntress' Owl Scout, and trigger the summon. I also have to trigger the removal of the caster (because he's climbing in the tree, right?). However, I've tried this before, and I'm almost positive that just "Remove Casting Unit" removes him faster than the unit is summoned. (or something like that..), and I don't really want to give him an Expiration Timer, because then he dies (using his noisy Death animation :/...)

Thoughts?
09-11-2008, 05:16 AM#8
Pyrogasm
Start a timer with a quick callback and then remove him after he has time to cast the spell.
09-11-2008, 05:30 PM#9
Kyrbi0
"Quick callback"? Not knowing exactly what that is, should I assume I use one of those "0-second timer" things and then Remove Casting Unit?
09-13-2008, 02:46 AM#10
Pyrogasm
That would be the general method, or perhaps a timeout of 0.05 seconds or something.
09-13-2008, 03:26 AM#11
Kyrbi0
Why .05? (unless by "timeout" you mean something different from a regular "wait"...)

(My apologies people; I only know the basics required for making a race. :/ )
09-13-2008, 08:45 PM#12
Pyrogasm
I'm saying to find the particular timeout needed so the spell is fully cast before the timer finishes running. Perhaps it needs a 0.07 timeout, or a 0.126 timeout; whatever it is you need to determine yourself via testing.