• 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.

Give Summoned Unit skills

Status
Not open for further replies.
HI, i made a new spell called *fireward* (based on the serpent ward of the troll hero of the ork... or watever that ability is called)

anyway this ability summons a ward taht attack people. What i want to do is give this summoned ward Critical strike

but i've made a few different levels of wards and critical strikes and i dont know how 2 give the summoned ward a cooresponding level of critical strike

eg. I casted lvl 10 fireward, summoned a lvl 2 fireward and i want to give this lvl 2 fireward lvl 10 critical strike

or

I casted lvl 45 fire ward, summoned 2 or 3 ... probably lvl 5 or 6 fireward and i want to give these lvl 5 or 6 firewards lvl 45 critical strike

can some1 tell me how to do this plz

thx :D
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
The only way I can possibly think of doing this is to make the ward itself a unit that looks and acts like a ward. Then have that "ward" have the crit effect.

NVM, this is not necessary.
 
Level 15
Joined
Oct 16, 2010
Messages
942
You can use the GUI "add ability" trigger function and give the firewards whatever level of critical strike you want.

Is this MPI or MUI? If it's MPI I would reccomend just using an upgrade that increases the level of critical strike for the firewards for every level of fireward a players hero learns.
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
Just make Crit Strike a Unit ability.

Then under units where you have made the wards, give the right level of crit to the right level ward.

I've attached a test map where I've done this. Simply follow my example (Adding in your own values, ofc), and you should be fine. Do that for each level of ward/crit. If you have 45 that's a lot and is gonna take a while though, :D

EDIT: In the test map I placed a few enemies and some tomes of power behind them, so you can test out the ability in it's different levels. For the varying levels I did:

  • Level 1: 15% chance, 2x DMG
  • Level 2: 30% chance, 2x DMG
  • Level 3: 15% chance, 3x DMG
  • Level 4: 30% chance, 3x DMG
Just a template, ofc. Set it up how you like, that's just how I did it. Good luck!
 

Attachments

  • Crit Fire Ward.w3x
    26.4 KB · Views: 69
Last edited:
Just make Crit Strike a Unit ability.

Then under units where you have made the wards, give the right level of crit to the right level ward.

I've attached a test map where I've done this. Simply follow my example (Adding in your own values, ofc), and you should be fine. Do that for each level of ward/crit. If you have 45 that's a lot and is gonna take a while though, :D

EDIT: In the test map I placed a few enemies and some tomes of power behind them, so you can test out the ability in it's different levels. For the varying levels I did:

  • Level 1: 15% chance, 2x DMG
  • Level 2: 30% chance, 2x DMG
  • Level 3: 15% chance, 3x DMG
  • Level 4: 30% chance, 3x DMG
Just a template, ofc. Set it up how you like, that's just how I did it. Good luck!

uhm.. there are 45 levels of firewards.. so i have to make 45 seperate critical strike and 45 seperate firewards o.o? (thats gonna take 4ever) or this can be done with trigger? :D?
cuz i tried ur map and there are no triggers in it xD?
 
it changes in every level...
so its like this, lvl 1 fireward (spell) u summon 1 tier1 fireward (unit) and this ward has lvl 1 critical strike

lvl 2 ur fireward (spell) summons 1 tier1 fireward (unit) and this ward has lvl 2 critical strike
lvl 3 ur fireward (spell) summons 1 tier1 fireward (unit) with lvl 3 critical strike

lvl 4 ur fireward (spell) summons 2 tier1 fireward (unit) with lvl 4 critical strike

...
...
...
at some later levels, say (i can't remember)

lvl 8 ur fireward (spell) summons 1 tier 2 fireward (unit) with lvl 8 critical strike
...
...
lvl 12 ur fireward (spell) summon 2 tier 2 fireward (unit) with lvl 12 critical strike

and so on

so i dont know how 2 make the trigger to do this... (i spend like ... maybe 4 hrs and can't get it working >.<... and i really think its gonna take 4ever to make since i need 2 make multiple tier 1 fireward (unit) and give individual of them lvl 1 crit, lvl 2 crit, lvl 3 crit, and so on.. and do that to a bunch of tier 2 fireward and a bunch of tier 3, tier4 >.<
 
Level 12
Joined
Jan 30, 2009
Messages
1,067
Your best bet is indeed not to trigger it, and do it my way.

Why the hell do you need 45 levels of an ability anyway? THAT is why it's taking so long.

I'm sorry. I shouldn't say things like that, but, if you don't want to do 90 custom abilities, then don't make it so you need to do that... =\

Trying to make a trigger do it would be a pain since you'd need to set everything in variable arrays or hashtables anyway, and cycle through it in VERY long loops. Which might have some consequences. Shorter loops = better
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This might work too.

Create only one Serpent Ward. Make the summon spell create the same unit at each level. When the spell is cast, you can give the unit two Critical Strikes. The first has chance of 100% and gives flat bonus damage. The other has some chance and damage multiplier. Then set the level of those abilities to the levl of the summons spell for the caster. You can add some evasion to the Critical Strike that has 100% chance.

That way you only need one custom unit and two Critical Strikes. The summoned unit gets more damage each level and also becomes harder to hit. You can give it Hardened Skin for some armor.

The issues with this are that every attack will produce the red crit numbers, and that the unit's damage numbers will be wrong in the UI.

I used Vizel's test map, I hope he doesn't mind.
 

Attachments

  • Crit Fire Ward.w3x
    26.4 KB · Views: 59
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Level of Skill
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • (Ability being cast) Equal to Fireward
    • Actions
      • Unit - Set level of Crit Fire Ward for (Summoned unit) to (Level of Fireward for (Triggering unit))
Maybe you need some directions =D
Just pointing it out~
 
Status
Not open for further replies.
Top