Would anyone know how to turn an ability into an upgrade,
For example: Cleaving Attack is an ability and I want to make that an upgrade or research for a unit. I know it's possible, I just don't know how to do it.
Thank You in advance.
"A unit of time is as precious as a unit of gold, but you cannot don't click me back one unit of time with one unit of gold."
Untitled Trigger 012
Events
Unit - A unit Finishes research
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
(Researched tech-type) Equal to Cleave
Then - Actions
Set Cleave[1] = True
Else - Actions
Untitled Trigger 013
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Cleave[1] Equal to True
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) matching ((Unit-type of (Matching unit)) Equal to Footman)) and do (Unit - Add Cleaving Attack (Neutral Hostile) to (Picked unit))
Else - Actions
Edit : Thank god im getting a new comp tomorrow..lol i hate this crashing..Anyways back ontopic, you will need to create a new upgrade through the object editor, and base it off anything. Change the data and stuff to 0 so it doesnt add any benefits, and use that.
Lol, like i said, make a new blank upgrade. Base it off anything, i used Iron forged swords. Change the data to nothing, so you dont add any other benefits, and make sure its only one level. Then, change the icon to something you will recognize. It should show up in the tech-type thing at the end after all the other upgrades.
Panda-Assassin wrote:Edit: I kinda understand what the first trigger does, but what does the second do??
Alright, im guessing your going to make the upgrade go for a number of units. Sure, selecting all and giving them the ability would be easy, but what about new units that are spawned later? They will start without the upgrade. The second trigger makes it so that if the upgrade is got, then every second, any new unit will get the ability.
Lol np, and im guessing that you know that for each player, you change the array number..So for Red, its Cleave[1], then for Blue its Cleave[2]. If you dont have different numbers for each color, the upgrades will not work, and instead go to the wrong person.