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

Triggered Passive

Status
Not open for further replies.
Level 4
Joined
Aug 31, 2011
Messages
88
Hi guys,

Can anyone trigger this passive for me, I tried but I just can't manage to do it properly, since I'm not that good at triggering.

I tried with a unit learns a skill, ability equal to "blood rage", set random_int= random int between 1 to 10
and now I have no idea what to do.

Description: 30% chance when unit's hp is equal or drops below 25% to change unit's ownership to neutral hostile.

This passive is required and it will only work for my custom race, so it won't work for all units, all for my race specific units.

Can anyone trigger this for me? +rep
 
Last edited:
If i understood this correctly, you reseach an tech then an skill is enabled which has the side effect that this units sometimes betray you if their hp drops below a % limit.

The map contains such an behaviour for stormhammer skill and stormhammer tech.

Skill, tech, betray change and life limit are quite easy to change in the init.
To copy into your map simply copy the folder containg the triggers.
 

Attachments

  • Blood Rage.w3x
    20.2 KB · Views: 62
Last edited:
Level 4
Joined
Aug 31, 2011
Messages
88
Wow, I am impressed and suprised cause you managed to do this in such a short time and it works, just like I wanted.

+4 rep awarded, for your excellent work! :D

One more question, if I don't want it to be research based, just a passive spell which is instantly acquired when you train a unit, so basically unit already has it, no research needed.

I just swap event to unit learns a skill and condition to ability equal to blood rage skill?
 
One more question, if I don't want it to be research based, just a passive spell which is instantly acquired when you train a unit, so basically unit already has it, no research needed.
Do you mean the unit has the skill inside its data in object editor?
Then its fine.​
or do you mean that you add it with trigger?
In this case you have to make sure that the enter trigger runs after the ability is added via triggers.
no, the units don't learn skills, only heroes can use the learns a skill event.


If you don't want the tech you can do following:
  • Remove the "BloodRage Develop"-Trigger
  • Remove this from conditions from "BloodRage Enter"-Trigger
    • (Current research level of BloodRage_Tech for (Owner of (Triggering unit))) Ungleich 0
 
Level 4
Joined
Aug 31, 2011
Messages
88
I mean that I don't want the tech, but that the unit already has this passive ability inside data in object editor, so basically the unit starts with this passive already working, without the need to research it to enable it.

I disabled tech requirements for Blood Rage in object editor and that part is fine.

I tested it now, with your suggestion:

If you don't want the tech you can do following:
  • Remove the "BloodRage Develop"-Trigger
  • Remove this from conditions from "BloodRage Enter"-Trigger

But now the trigger won't fire and nothing happens.
 
Level 4
Joined
Aug 31, 2011
Messages
88
Thank you very much m8. :D

+more rep, you really deserve it! :)

Edit: will give you rep when timer finishes
 
Status
Not open for further replies.
Top