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

Transfer unit triggers to a different unit?

Status
Not open for further replies.
Level 4
Joined
Sep 6, 2010
Messages
100
Is there a way to quickly and easily transfer triggers from a unit to a different unit? E.g. from a footman to a rifle guy.
 
Level 4
Joined
Sep 6, 2010
Messages
100
what do u mean transfer triggers ? plz explain exactly wat u want to happen.
I put a lot of triggers on a unit, but the unit I used looks too identical to nearby units, I want to change his model at the very least in order for him to look different; but doing this would require me re-doing every trigger that I put on him (that's if I even find them all); so I was wandering if there was an easier alternative.
 
Level 4
Joined
Sep 6, 2010
Messages
100
U should change it over to a variable when ur editing it. Anything u use twice or more should be stored in a variable for speed and efficiency. Being easy to edit it when u store it is a plus.
Ok...
Just change the units model in the object editor.
Can't, if I changed the model of the unit, it would also change the model of all the units, which I don't want happening; cause I just placed 10 units in a troop, but one of them speaks and I want that guy to look more captain like...
come to think of it, I think I might be able to swap the model of that unit upon map load!
 
Level 4
Joined
Sep 6, 2010
Messages
100
why don't CnP your triggers then change the Footman Value to rifleman guy..
since you only want to change different unit
That's because I don't remember what kind of triggers I put on them, and where they are located (I got a bunch of triggers).
  • Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
thats what i use for my map
you can use any suitable thing instead of triggering unit
event would be unit enter reagion or anything
I shall try that.
Nope, won't work, triggers won't run.
 
Level 16
Joined
May 2, 2011
Messages
1,351
That's because I don't remember what kind of triggers I put on them, and where they are located (I got a bunch of triggers).

I shall try that.
Nope, won't work, triggers won't run.
why trigger wont run? what are trying to do exactly, i.e. when do you want to transfer foot man into rifle man?

is it when foot man enter region?
is it any footman in the game just one type?
or do you want it all the time, just like troll head hunter and troll berserker, where berserker always replace head hunter when it has upgrade
or when do you exactly want the foot man to become rifle man

Edit: ofcourse triggers never run unliss they have proper event or are run by another trigger. You can put even as map initialization meaning that trigger as soon as game starts. (and that way you can put the action pick all units whose type is footman and replace them with rifle man and so when the game starts you will your foot men gone and you will see rifle men isntead
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
  • Unit - Replace (Triggering unit) with a Footman using The old unit's relative life and mana
thats what i use for my map
you can use any suitable thing instead of triggering unit
event would be unit enter reagion or anything

Replace unit removes old unit from the game and creates a completely new different unit, any variable or data about old unit will be gone.
 
Level 16
Joined
May 2, 2011
Messages
1,351
Replace unit removes old unit from the game and creates a completely new different unit, any variable or data about old unit will be gone.

what if you made an upgrade like the troll berserker, where the foot man upgrades to rifle man, just like how head hunter turn into troll berserker? I am not sure if that would work... though
 
Status
Not open for further replies.
Top