Upgrades
Moderator: Cheaters
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Upgrades
This is my first trigger of this type..and it was done in just a few minutes..sorry if its not quite what you want..but i tested it and it seems to work fine..
Just copy the action and change it to Blue or whatever for the rest of the players. Ah..for the upgrade itself..just make a custom one, name it whatever, change the invalid and such and for stats just leave it all as none...hope this is what your looking for..well probably can be improved..but ah well..if the trigger is confusing to make just say so and ill lay down the steps for you.
Edit: You dident say anything about levels..so this one adds 10 str per upgrade..if you want it to change to 15 or 20 for higher levels just use Arabidnun's trigger for income increase.
Edit 2: Just for the hell of it, i decided to make a leveled one..since well, it may come in hand y for myself..lol...however i still recommend Arabidnun's way...
So..yeah same as above just copy for how many levels you want and for each player and edit stats...
Ah..just a small problem though..this doesnt include new heros...so if your using this and using multiple heros..the new ones you have wont have your added str bonus..you'll have to make another quick trigger that makes it so according to the level the upgrade is at.. (RStr) it adds that much in str to your new hero.....if your gonna have multiple heros just say so and ill fix it up.
Code: Select all
Untitled Trigger 001
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If ((Owner of (Researching unit)) Equal to Player 1 (Red)) then do (Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 10)) else do (Do nothing)
Edit: You dident say anything about levels..so this one adds 10 str per upgrade..if you want it to change to 15 or 20 for higher levels just use Arabidnun's trigger for income increase.
Edit 2: Just for the hell of it, i decided to make a leveled one..since well, it may come in hand y for myself..lol...however i still recommend Arabidnun's way...
Code: Select all
Untitled Trigger 001
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 10)
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 15)
Set RStr = 2
Skip remaining actions
Else - Actions
Ah..just a small problem though..this doesnt include new heros...so if your using this and using multiple heros..the new ones you have wont have your added str bonus..you'll have to make another quick trigger that makes it so according to the level the upgrade is at.. (RStr) it adds that much in str to your new hero.....if your gonna have multiple heros just say so and ill fix it up.
-
- Junior Member
- Posts: 43
- Joined: November 30th, 2008, 2:28 am
Re: Upgrades
thx a lot
edit: i only want to increase the strength of one hero not all the units how you do it
edit: i only want to increase the strength of one hero not all the units how you do it
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Upgrades
Ah, thats much easier. Instead of going with Unit Group for this part Just change that entire part to Hero - Modify Hero Attribute and for Hero, Just click "Select a Unit", then pick your hero..so it should come out like this. Hope this answered your question.
PS: The code i made originally doesn't affect every unit in the game, it only adds bonus str to hero's under the owners color.. which acts more like an upgrade ;D
Edit : Geh..after thinking about it for a bit i realize this only works if your unit is already placed down...hopefully your unit is pre-placed..otherwise just wait a bit..im trying to find out how to get it working right.
Edit2 : Nevermind..it was stareing me right in the face..this should work right..well..it will pick every hero of that type under your control...but that shouldent be a problem if you have only one hero of that type..right?..Hopefully for now this will do..if you need it to only affect a single unit thats not-preplaced and has multiple number of the same type under your control..well i cant really help with that..unfortunely i know just about as much about triggers as you do..well probably even less..i get by pretty much mostly on luck..
Code: Select all
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 10)
Code: Select all
Untitled Trigger 001 Copy 2
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Hero - Modify Strength of Paladin 0000 <gen>: Add 10
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Hero - Modify Strength of Paladin 0000 <gen>: Add 15
Set RStr = 2
Skip remaining actions
Else - Actions
PS: The code i made originally doesn't affect every unit in the game, it only adds bonus str to hero's under the owners color.. which acts more like an upgrade ;D
Edit : Geh..after thinking about it for a bit i realize this only works if your unit is already placed down...hopefully your unit is pre-placed..otherwise just wait a bit..im trying to find out how to get it working right.
Edit2 : Nevermind..it was stareing me right in the face..this should work right..well..it will pick every hero of that type under your control...but that shouldent be a problem if you have only one hero of that type..right?..Hopefully for now this will do..if you need it to only affect a single unit thats not-preplaced and has multiple number of the same type under your control..well i cant really help with that..unfortunely i know just about as much about triggers as you do..well probably even less..i get by pretty much mostly on luck..
Code: Select all
Untitled Trigger 001 Copy 2
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Paladin) and do (Hero - Modify Strength of (Picked unit): Add 10)
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Paladin) and do (Hero - Modify Strength of (Picked unit): Add 15)
Set RStr = 2
Skip remaining actions
Else - Actions
-
- Junior Member
- Posts: 43
- Joined: November 30th, 2008, 2:28 am
-
- Forum Staff
- Posts: 506
- Joined: November 17th, 2008, 3:49 pm
Re: Upgrades
Your gonna have to give me some specifics..Is the hero you want already set down in WE? In your map do you have more heros of the same type under your control? Or is it that you want it so it works for a hero that you pick after you play the game..and you have multiple heros of the same type?..Lemme give you a summery of the trigs i gave you.
The first one. This one makes it so when you upgrade with it, it gives every hero you own, a bonus to str. It doesnt affect blues, or teals, only you own heros.
The second one, this affects a single hero that is already placed down in WE, and wont affect any other units. Please note, that i said "Already placed down in WE". Which means if your spawning the hero from a tavern in the game..this trigger will do you no good.
This last one affects every hero you own of that type. So if you have a blademaster and demon hunter, it will only affect the blademaster. If you have two blademasters it will give them both a bonus.
Now let me remind you, each of these only affects reds heros, nobody elses. You'll have to make more for the other players.
If this is still not what you want, tell me exactly whats going on, so i can try to work it out.
PS: If you are trying to make it so it works for a single unit that you spawn in the game..then i probably wont be able to help you with that. Either that requires another trigger..or smarts that i don't have..lol
The first one. This one makes it so when you upgrade with it, it gives every hero you own, a bonus to str. It doesnt affect blues, or teals, only you own heros.
Code: Select all
Untitled Trigger 001
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 10)
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Hero - Modify Strength of (Picked unit): Add 15)
Set RStr = 2
Skip remaining actions
Else - Actions
Code: Select all
Untitled Trigger 001 Copy 2 Copy
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Hero - Modify Strength of Paladin 0000 <gen>: Add 10
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Hero - Modify Strength of Paladin 0000 <gen>: Add 15
Set RStr = 2
Skip remaining actions
Else - Actions
Code: Select all
Untitled Trigger 001 Copy 2
Events
Unit - A unit Finishes research
Conditions
(Researched tech-type) Equal to Str Add
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Paladin) and do (Hero - Modify Strength of (Picked unit): Add 10)
Set RStr = 1
Skip remaining actions
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Researching unit)) Equal to Player 1 (Red)
RStr Equal to 1
Then - Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red) of type Paladin) and do (Hero - Modify Strength of (Picked unit): Add 15)
Set RStr = 2
Skip remaining actions
Else - Actions
If this is still not what you want, tell me exactly whats going on, so i can try to work it out.
PS: If you are trying to make it so it works for a single unit that you spawn in the game..then i probably wont be able to help you with that. Either that requires another trigger..or smarts that i don't have..lol