what u need to do is share xp from unit to unit
which means in your Veterancy Behavior(which give you your levels)
you want to click on Behavior Share Filters
then modify the Kills filter by changing Heroic to required
and putting a check mark in ally
what that does is allow whatever u get from killing something in the Veterancy Behavior aka exprience
is shared with your allys aka other units but they must be flagged as heroic
Next
while still in the Veterancy Behavior scroll down to stats and you will see Stat - Shared Fraction and Stat - Shared Radius
modfiy Shared Fraction and click on Kills and set the Value to 1
then
modify Shared Radius and click on Kills and set it to 20
doing that means if your Medic is healing your other unit lets say a Marine then when your Marine kills a enemy unit if the
Medic is within 20 radius then the medic will get the same xp as the Marine
Remember Only works with units flagged as Heroic
and for a unit to receive this they must have it assigned to them like every other behavior
i fairly sure they meant that they wanted to make it so that when ever a medic channels a heal that medic gets exp for doing so.
@ajilejay:
idk how to do that exactly, so the best i can do is try to send u in the right direction, since idk how your channeled heal is set up or even how heals works (i havn't looked at any of the heal abilities lol). If the ability has some sort of "create persistent" effect somewhere, you can put the effect that under the create persistent effect atm and put that into a set effect along with another effect. The other effect would be a modify unit effect. With "modify unit" effect u can give units experience. So u can try that
If you want to actually gain XP per healing amount done it's probably a bit trickier, I haven't looked into it but you probably need to use triggers to do this, and would use the Unit Begins Chanelling and Unit Ends Chanelling ability or similar events.
Alternatively there may actually be an event that triggers when a unit heals another unit, so look into that.
Other than using triggers, which is pretty trivial, I'm not sure if its possible to do straight with the data editor.
Yeah I tried making a medic exp behavior that adds 1 exp and then have it has launch effect in heal and tried it in other parts of heal but it ends up messing up the heal ability. I have no idea how to make this work
will the ability change at any point? like heal of a total of more or something because the medic gets stronger or w/e? or will there be a constant total possible amount to heal? also could u tell me which effects you are using and how they are linked to each other, if u can tell me that i can see how id be able to implement what i said earlier.
Edit: just took a look at the Medivac and medic heal effects. if your using a create healer effect all you have to do is create a "modify unit" effect, and set it as the periodic effect for the create healer effect. Then for the datafield "Effect - Experience" for the "modify unit" effect put however much you would want the medic to get, since u want 1 exp for every 3hp, then put 1 here. Also for the "modify unit" effect under the datafield "Target - Impact unit +" set it to "Source".
doing it giz's way is pretty good, you could then use Catalog triggers to change the amount of exp whilst ingame.
you could also cheat very poorly and do a trigger like
Event / Unit - Any Unit Energy Changes
Conditions / Unit Ability Command State (Triggering Unit, Heal, Executing) = true
Then add exp in actions.
The medic heal works differently though doesnt it? I created a effect that gives 1 exp and put it linked it in the create heal effect however the medic no longer Heals at all. If you are interested I can send the map and I will include you in the credits if you can help me figure this out ?
I didn't read all of this, but here's what I'd do:
Effects Tab in Data Editor
First create a new effect to apply the experience. Name it whatever, suggest ID, Effect Type: Modify Unit.
Put Effect - Experience to the experience gained, I'd say 1.
Change Target - Impact Unit+ to Caster , (If this doesn't work do source)
Now find the Medic - Heal effect, and Change the Effect - Periodic Effect to link to your new skill above.
If this doesn't work for whatever reason, I'd say to go to Behavior Tab and try linking your Unit Modification tool to another portion of the Heal ability, such as the behavior Medivac Heal Beam Busy, e.g. set Stats - Period to the period you want to give exp, we'll say 0.5 , then change Effect - Effect - Periodic to your first made modify unit tag.
With it you could make a trigger:
Event - Unit - Any Unit uses Medic - Heal (Medic) at Generic1 - Any stage (Ignore shared abilities)
Actions:
Add Experience to Unit (10, (Triggering unit))
I didn't read all of this, but here's what I'd do:
Effects Tab in Data Editor
First create a new effect to apply the experience. Name it whatever, suggest ID, Effect Type: Modify Unit.
Put Effect - Experience to the experience gained, I'd say 1.
Change Target - Impact Unit+ to Caster , (If this doesn't work do source)
Now find the Medic - Heal effect, and Change the Effect - Periodic Effect to link to your new skill above.
If this doesn't work for whatever reason, I'd say to go to Behavior Tab and try linking your Unit Modification tool to another portion of the Heal ability, such as the behavior Medivac Heal Beam Busy, e.g. set Stats - Period to the period you want to give exp, we'll say 0.5 , then change Effect - Effect - Periodic to your first made modify unit tag.
Good luck.
This worked, I am an Idiot for some reason it made sense to me to put it under launch unit when it should have been impact unit.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
^How that?
@ajilejay: Go
Anyone? If my medic can't level my map doesn't work : (
its a simple/kinda tricky way to do this...
what u need to do is share xp from unit to unit which means in your Veterancy Behavior(which give you your levels) you want to click on Behavior Share Filters then modify the Kills filter by changing Heroic to required and putting a check mark in ally what that does is allow whatever u get from killing something in the Veterancy Behavior aka exprience is shared with your allys aka other units but they must be flagged as heroic
Next
while still in the Veterancy Behavior scroll down to stats and you will see Stat - Shared Fraction and Stat - Shared Radius modfiy Shared Fraction and click on Kills and set the Value to 1 then modify Shared Radius and click on Kills and set it to 20 doing that means if your Medic is healing your other unit lets say a Marine then when your Marine kills a enemy unit if the Medic is within 20 radius then the medic will get the same xp as the Marine
Remember Only works with units flagged as Heroic and for a unit to receive this they must have it assigned to them like every other behavior
@TheRupturedD:
i fairly sure they meant that they wanted to make it so that when ever a medic channels a heal that medic gets exp for doing so.
@ajilejay:
idk how to do that exactly, so the best i can do is try to send u in the right direction, since idk how your channeled heal is set up or even how heals works (i havn't looked at any of the heal abilities lol). If the ability has some sort of "create persistent" effect somewhere, you can put the effect that under the create persistent effect atm and put that into a set effect along with another effect. The other effect would be a modify unit effect. With "modify unit" effect u can give units experience. So u can try that
@TheRupturedD: Go Thank you for the suggestion but I would prefer have the medic gain XP while channeling heal if anyone knows how to do that.
If you want to actually gain XP per healing amount done it's probably a bit trickier, I haven't looked into it but you probably need to use triggers to do this, and would use the Unit Begins Chanelling and Unit Ends Chanelling ability or similar events.
Alternatively there may actually be an event that triggers when a unit heals another unit, so look into that.
Other than using triggers, which is pretty trivial, I'm not sure if its possible to do straight with the data editor.
Yeah I tried making a medic exp behavior that adds 1 exp and then have it has launch effect in heal and tried it in other parts of heal but it ends up messing up the heal ability. I have no idea how to make this work
@ajilejay:
Do you want the exp gained to be the same every time or do you want it to increase depending on something, like the amount healed or w/e
@gizmachu: Go
1 exp for every 3 hp healed
@ajilejay:
will the ability change at any point? like heal of a total of more or something because the medic gets stronger or w/e? or will there be a constant total possible amount to heal? also could u tell me which effects you are using and how they are linked to each other, if u can tell me that i can see how id be able to implement what i said earlier.
Edit: just took a look at the Medivac and medic heal effects. if your using a create healer effect all you have to do is create a "modify unit" effect, and set it as the periodic effect for the create healer effect. Then for the datafield "Effect - Experience" for the "modify unit" effect put however much you would want the medic to get, since u want 1 exp for every 3hp, then put 1 here. Also for the "modify unit" effect under the datafield "Target - Impact unit +" set it to "Source".
doing it giz's way is pretty good, you could then use Catalog triggers to change the amount of exp whilst ingame.
you could also cheat very poorly and do a trigger like
Event / Unit - Any Unit Energy Changes
Conditions / Unit Ability Command State (Triggering Unit, Heal, Executing) = true
Then add exp in actions.
Nice, it's much better just doing it via the data editor
@gizmachu: Go
The medic heal works differently though doesnt it? I created a effect that gives 1 exp and put it linked it in the create heal effect however the medic no longer Heals at all. If you are interested I can send the map and I will include you in the credits if you can help me figure this out ?
@ajilejay: Go
bump
@ajilejay: Go
how did you link the ability? there a way that will work, and a way that will not work.
I didn't read all of this, but here's what I'd do:
Effects Tab in Data Editor
First create a new effect to apply the experience. Name it whatever, suggest ID, Effect Type: Modify Unit.
Put Effect - Experience to the experience gained, I'd say 1.
Change Target - Impact Unit+ to Caster , (If this doesn't work do source)
Now find the Medic - Heal effect, and Change the Effect - Periodic Effect to link to your new skill above.
If this doesn't work for whatever reason, I'd say to go to Behavior Tab and try linking your Unit Modification tool to another portion of the Heal ability, such as the behavior Medivac Heal Beam Busy, e.g. set Stats - Period to the period you want to give exp, we'll say 0.5 , then change Effect - Effect - Periodic to your first made modify unit tag.
Good luck.
@ajilejay:
if u upload your map ill be able to make the changes myself if you want, its fairly simple.
I'm using this library for adding XP to unit if you implement Hero Levels behavior.
http://forums.sc2mapster.com/development/galaxy-scripting-and-trigger-lib/5069-library-add-experience-to-unit/
With it you could make a trigger:
Event - Unit - Any Unit uses Medic - Heal (Medic) at Generic1 - Any stage (Ignore shared abilities)
Actions:
Add Experience to Unit (10, (Triggering unit))
Adds 10 XP to healer each time heal is cast
This worked, I am an Idiot for some reason it made sense to me to put it under launch unit when it should have been impact unit.