Modifying Sacrifical Pit

twisterghost

New Member
Reaction score
3
How to I modify the sacrifice ability to work for other units to transform them into other units?

I want a building which can train the map's units to their next level so like a militia would train to a footman, etc. How do I edit the sacrifice ability for the militia to turn into a footman?
 

Sui-cookie

You can change this now in User CP.
Reaction score
49
ah, take the ability and delete all effects from it..(so its pretty much a targetable dud spell)
then trigger it to replace the targeted unit with another
 

TideOfChaos

New Member
Reaction score
25
In my exspreice the ability is pretty reluctent to be altered. If I remeber correctly, it will always create a shade, regardless of waht you change.

Easiest way to recrate this is run a Trigger that when the Shade is trained, remove it from the game and replace it with the desired unit.
But this will get tricky if you want more then one sacrifice ability.

So to fix this, run a Trigger that will check what Sacrifce ability is being used (IE, Peasant to Footman) then set a varible to like TrainedUnit[x] = Footman ([x] being the number in the array that corsponds to the building (Having only 1 varible will cause a lot of problems)).

Then make the Trigger that replaces the unit to something like
A unit is trained
Unit is equal to Shade
If - Training unit is equal to Barracks 001
Then - If - TrainedUnit[1] = Footman
Then - Replace Trained unit with Footman
Else - Do nothing
Else - Do nothing

Hope that helps.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top