• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Ability effects not right

Status
Not open for further replies.
Level 4
Joined
Jul 29, 2009
Messages
49
Hi, im working on a map and i want a specific ability for one of the available heroes. i want the hero to be able to call down reinforcements in a single drop pod, yet every little tweak i try still ends up with five drop pods all at once, one per unit. also, is it possible to have a unit spawn delay after the effect? or am i wasting my time with the ability editor and should try triggers?
 
Level 5
Joined
Sep 1, 2010
Messages
168
Have you tried to call down only one drop pod and then create 5 reinforcement units around it after a short wait? (or just 4 more if one correctly spawns 1.)
 
Level 5
Joined
Sep 1, 2010
Messages
168
Use a dummy ability with different levels.
Then, use in your trigger that drops down a unit if/else clauses (if you want to drop different units), checking for the level (or, if you want 1 unit per level, just use "create arithmetic (level of ability of casting unit <your dropped unit>"; in this case you'd want to use a regular unit in the drop pod that can't be seen :) -> typical use for dummies with a trigger that removes them upon entering playable map.

For the levels them selves: Dunno if you want them to be skillable (easiest one; already done with line 1 of post), modified by items ("if hero has item of type") or via research upgrades (if level of upgrade for player == X, then).
All not too hard to do.

Does this answer your question, mogar?
 
Level 4
Joined
Jul 29, 2009
Messages
49
ok so i was thinking along the same track as you, but i cant find the right condition! lemme give you a breakdown of what i have so far; 'dummy' ability summons a wisp with a life span of 0.01 seconds i think. the trigger says:
-unit finishes casting ability
- triggering unit = Hero true
- ability being cast = dummy ability
-special effect - create a special effect at position of triggering unit using drop pod model
-wait 2.00 seconds
-unit-create 3 marine for owner of triggering unit at position of triggering unit
-special effect-destroy last created effect

so i got the whole ability using a dummy ability like you said, but am i supposed to use a custom script for the leveling? i cant find the right trigger XD.
 
Level 5
Joined
Sep 1, 2010
Messages
168
You don't need to check for triggering unit = hero
only for the ability (unless you're using the same dummy ability on other units :S).
use actions - if/else
-> condition ->integer comparison -> level of ability for unit -> level equal to X for triggering unit (if you want different levels of space marines).

And you already have the right ability ^^
-unit-create 3 marine for owner of triggering unit at position of triggering unit

So, if you adjust the number of dropped support units, just use create (arithmetic -> level of dummy ability for triggering unit)) space marines at Loc in that quoted line ;).
Remember to use Set Loc = Target point of ability being cast, thne always refer to Loc, so you can call RemoveLocation (udg_Loc) for removing leaks :)
(Loc = Point variable you have to create in variable editor). Ignore the last sentence if you've already fixed any leaks ;)
 
Status
Not open for further replies.
Top