Trigger Action
Tech Tree add 1 to Terran Infantry Weapons Level 1 for player 1
Tech Tree add 2 to Terran Infantry Weapons Level 2 for player 1
Tech Tree add 3 to Terran Infantry Weapons Level 3 for player 1
After running this trigger Raynor's weapon still shows weapon level 0
Anyone know what the proper way is to set unit type weapon upgrade?
you may need to disable tech tree requirements ...
It would be easier to directly modify the units weapon through Set Catalog Field Value
If you really wanna do the upgrades then i suggest placing a building with your custom upgrades and try actually training the upgrades and the building to verify they work before trying to level the upgrades through triggers
BTW it would be easy enough to order that placed unit to train the upgrades it has available.... but thats more for testing .
To streamline soul carver's suggestion, rifle through the effects asociated with the upgrade abilities in data editor, this should allow you to impliment the upgrades (which you will need to predefine in data edit) via triggered events, rather than the five stage hack of training upgrades from the unit or a building, and having to disguise the process and deal with side effects.
Player select a Dialog Menu for a rage spell
Increase weapon damage on unit for X amount of seconds then remove the bonus
Think this may better suited for a data editor instant effect. I seem to have trouble to applying effects to non-(veterancy hero) units.
Edit:
Simple enough to add a buff behavior that adds Tauren Marine rifle and disable Raynor rifle.
Next working on how to make a different model appear when buff is active. Don't see this listed anywhere in the behavior object. Looking for change unit tint, scale, or model. Anything to let the player know that something is different about their unit since I have the default UI hidden.
I have player control Raynor (Commando) unit
Trigger Action
Tech Tree add 1 to Terran Infantry Weapons Level 1 for player 1
Tech Tree add 2 to Terran Infantry Weapons Level 2 for player 1
Tech Tree add 3 to Terran Infantry Weapons Level 3 for player 1
After running this trigger Raynor's weapon still shows weapon level 0
Anyone know what the proper way is to set unit type weapon upgrade?
you may need to disable tech tree requirements ...
It would be easier to directly modify the units weapon through Set Catalog Field Value
If you really wanna do the upgrades then i suggest placing a building with your custom upgrades and try actually training the upgrades and the building to verify they work before trying to level the upgrades through triggers
BTW it would be easy enough to order that placed unit to train the upgrades it has available.... but thats more for testing .
To streamline soul carver's suggestion, rifle through the effects asociated with the upgrade abilities in data editor, this should allow you to impliment the upgrades (which you will need to predefine in data edit) via triggered events, rather than the five stage hack of training upgrades from the unit or a building, and having to disguise the process and deal with side effects.
What I want to happen.
Player select a Dialog Menu for a rage spell
Increase weapon damage on unit for X amount of seconds then remove the bonus
Think this may better suited for a data editor instant effect. I seem to have trouble to applying effects to non-(veterancy hero) units.
Edit:
Simple enough to add a buff behavior that adds Tauren Marine rifle and disable Raynor rifle.
Next working on how to make a different model appear when buff is active. Don't see this listed anywhere in the behavior object. Looking for change unit tint, scale, or model. Anything to let the player know that something is different about their unit since I have the default UI hidden.