Use the Ability - Info - Effect of the Train ability to apply a Create Persistent effect which periodically applies Modify Unit effects. Use the Effect - Experience field of the effect to do the leveling. With the Unit Compare Veterancy Levels validator that is inserted in the Effect - Periodic Validator field of the Create Persistent effect, I advise experimenting with the Validator - Unit - Value and Validator - Other Unit - Value fields.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Is there not a way to do this by triggers? It seems as it would be more simpler doing it by triggers. But anyway, does this really works? I need to do it also.
Well, that's a lot different than a unit training units, like the TC was looking for.
For that, I'd need more information.
Are you "Reviving" a hero unit that died? There's an excellent guide by SCOneTwo (OneTwoSC???) that shows a workaround that prevents the hero from actually being killed, so you can simply keep your current level.
If you're just looking for a basic trigger idea then your event would be unit dies. The condition would be that it was the hero that died. You would need a local variable "Hero Level" that you would set equal to (Triggering unit) property(Level). Now, if you're creating your new hero in this trigger, then after whatever action creates your unit, you would set (last created unit) property (Level) to your variable "Hero Level". If you want to have to make your hero again at a building or something, then this trigger would simply set a global variable "Global Hero Level" to "Hero Level".
Then you would need a separate trigger to add the level to your new hero.
EDIT: I know the guide is on YouTube. I don't know if the guy that made it is in any modding communities. Or if he even still makes tutorials. But I do know that his tutorials are excellent and easy to follow along with as long as you pause the video and work with his step by step instructions.
Ok. No. Im sorry, let me explain to you the idea: Theres a pilot with no levels behaviors. But then he buys a vehicle which will be carrying levels behaviors. Later, you the owner of that unit can upgrade your tank and replace the existing one with another one in a special shop i made for tank swapping. Thats the idea.
Well he did ask for a data solution in the data forum.
I know, and I'm not knocking anything you've said. I simply don't understand much of what you say. While my hate for editing data is lessening, I still look at every problem as "how can I do this with a trigger?".
But if a unit has veterancy established in the data, then I believe the trigger can set the level of the unit. It's one of the options listed under properties, at least.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a Unit with Veterency Behavior and it can train units. how do i get the experience to transfer over to the trained unit?
You could use a Unit Compare Veterancy Lavels validator to apply Modify Unit effects that increate the exp until they are the same level.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
How Exactly do I do that? step by step please.
dump
Use the Ability - Info - Effect of the Train ability to apply a Create Persistent effect which periodically applies Modify Unit effects. Use the Effect - Experience field of the effect to do the leveling. With the Unit Compare Veterancy Levels validator that is inserted in the Effect - Periodic Validator field of the Create Persistent effect, I advise experimenting with the Validator - Unit - Value and Validator - Other Unit - Value fields.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Is there not a way to do this by triggers? It seems as it would be more simpler doing it by triggers. But anyway, does this really works? I need to do it also.
@DrSuperEvil: Go
I swear you must live in the data module. lol.
My first thought was a trigger as well. If you want a level 2 barracks to produce level 2 marines, then your trigger event should be unit creation.
The action should set the (created unit) property (level) to the (triggering unit) property (level) (current)
If you need it to transfer an actual amount of experience, as well, then you just copy past that and change both levels to experience.
@BigDonRob: Go
No. What i need is that the current hero unit experience levels already earned transfer to this new hero that will be replacing the current one.
@JEGCPR: Go
Well, that's a lot different than a unit training units, like the TC was looking for.
For that, I'd need more information.
Are you "Reviving" a hero unit that died? There's an excellent guide by SCOneTwo (OneTwoSC???) that shows a workaround that prevents the hero from actually being killed, so you can simply keep your current level.
If you're just looking for a basic trigger idea then your event would be unit dies. The condition would be that it was the hero that died. You would need a local variable "Hero Level" that you would set equal to (Triggering unit) property(Level). Now, if you're creating your new hero in this trigger, then after whatever action creates your unit, you would set (last created unit) property (Level) to your variable "Hero Level". If you want to have to make your hero again at a building or something, then this trigger would simply set a global variable "Global Hero Level" to "Hero Level".
Then you would need a separate trigger to add the level to your new hero.
EDIT: I know the guide is on YouTube. I don't know if the guy that made it is in any modding communities. Or if he even still makes tutorials. But I do know that his tutorials are excellent and easy to follow along with as long as you pause the video and work with his step by step instructions.
Ok. No. Im sorry, let me explain to you the idea: Theres a pilot with no levels behaviors. But then he buys a vehicle which will be carrying levels behaviors. Later, you the owner of that unit can upgrade your tank and replace the existing one with another one in a special shop i made for tank swapping. Thats the idea.
@BigDonRob: Go
Well he did ask for a data solution in the data forum.
I would also advise triggers assuming a behaviour transfer/copy is not possible. Never tried that one.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
ok. ill try to keep looking. Thanks anyway. Thread is still opened though, for suggestions.
I know, and I'm not knocking anything you've said. I simply don't understand much of what you say. While my hate for editing data is lessening, I still look at every problem as "how can I do this with a trigger?".
But if a unit has veterancy established in the data, then I believe the trigger can set the level of the unit. It's one of the options listed under properties, at least.