• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Ability Problem

Status
Not open for further replies.
Level 9
Joined
Oct 11, 2009
Messages
477
Upgrading/Researching Problems

Does anyone in the hive knows how to create an upgrade in which an only one unit is affected and that is the triggering unit of course...

I posted this in the trigger section because I think trigger is the only solution.
 
Sorry...:sad: I think my explanation is not clear. But I want is like this, for example, I have 6 Townhall and each of them has the upgrade Fortify and I ordered 1 Townhall to upgrade Fortify. Then only 1 Townhall will be benefited from the upgrade but not the 5 remaining ones...
 
Hm, never came into such an issue, but I guess you can use something like this:
  • For each (IntegerA) from 1 to (Number of living Townhall owned by (Owner of (Triggering unit))), do (Actions)
    • Loop - Actions
      • Player - Set Current research level of Fortify to 1 for (Owner of (Triggering unit))
I haven't tested it though, so don't take this solution for granted.
 
I am afraid you can't use upgrades for this, as they only apply globaly. (However it may be possible to use upgrades that "transfer with unit ownership", then just use neutral player that has this upgrade, and change the town halls owner to this player and back to previous owner. However I am not sure whether "transfer with unit ownership" even means what I just described, as I never used it)

If that doesn't work, maybe you could just create another version of town hall with fortify on, and use the "upgrade to" feature. That would fail if you wanted to use fortify independently on town hall/fortress/castle upgrade.
In that case you would need some sort of dummy unit, and just add an ability when the town halls builds this unit.

EDIT: transfers with unit ownership does something completely different than I though, so that option is unavaiable. So the only way would be using "upgrades to" or some dummy unit.
 
Ok thanks for the help... Though...

I will try to search the hive and other WC3 modding sites about this... Anyway thanks and +rep for helping....:thumbs_up:
 
Status
Not open for further replies.
Back
Top