Yes, another crazy and really unnecessary idea I want to do.
I want to change a units appearance based on how many kills he has. Like a promotion system to lieutenant and commander etc.. For example a Marine gets the appearance of War Pigs after he achieved 10 kills. I could change the unit as well, if required, but I'd rather only actor.
Does anyone know if this is even possible? And maybe how to do it?
You want to use a Model Swap event action. Maybe a Unit Points event with a Require term? Else use a looped timer with a Validate Unit term and a Unit Compare Kill Count validator.
Thanks, I've tried it out, seems like a good direction. I'm confident that it will work with a buff Behavior and this Validator, but I'm trying to do this with the Veterancy Behavior and Behaviorlevel compare in the actor, so I have later only one Behavior for all model swaps. Unfortunately I don't know anything about Veterancy yet, so I need to look for a tutorial. I wonder if it can be adjusted to count kills.
Although the kills are counted already on the unit. But I don't know how to access the number, with Unit Points and Require term (or some other terms) I'm overwhelmed.
Okay, nothing is working. I have read that for melee maps the experience gain is disabled. So I've tried UnitCompareKillCount Validator, which doesn't work either - maybe because of the same reason?
I added a trigger MeleeSetOption(c_meleeOptionXPGainDisable, ...) to enable XP gain - but that doesn't work either.
Why a Buff behaviour? Why did you not say veterancy level in the first place. There are actor events specifically for that eg. Behavior Level. You do know you need to use the Level term with it right?
The Veterancy behaviour is exp based so only poorly able to be linked to kill count. Also if it is just for visual swaps you are wasting the behaviour type.
You want to access the number for display purposes? Use triggers for that.
You setting the validator to caster or target? Also how are your actor events set up under the Actors data type?
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
In the end I don't care whether it's a Buff or Veterancy Behavior, I only used Buff to test the UnitCompareKillCount Validator - which didn't work. But I thought it would be easier with Veterancy and Behavior Level in the Actor. I want to link it to kill count since I don't want to make experience gain visible.
It's possible to swap model with triggers also, am I correct? I'd prefer the data-editor, but if that won't work, I'll try trigger.
Current problem though is that UnitCompareKillCount Validator doesn't work, and experience gain doesn't either. For the experience I read that standard melee settings in a trigger disable this, and I need to delete this trigger (will be useful for other purposes also). Though were do I find it? For the Validator I don't know - maybe it's the same reason, or I'm making some mistake.
Melee maps have this melee-map-initialization trigger. This disables XP gain and you cannot reenable it anymore - unless you can reenable it with a delay after the mapinit, or you change the test map and remove the trigger which is disabling it. (It also creates main building and starting workers. Now I understand why KingOfTheHill maps were always a set of maps, and never mods you can apply anywhere.)
The UnitCompareKillCount Validators though don't work with the removed melee-map-init either. There's only one made by Blizzard, maybe they've never used them and it was left with bugs. I wonder, if a trigger works instead. I will test it soon. I also wonder how these would play out online, since I heard the rules change again from Editor to battlenet.
For testing Validators I simply make a buff Behavior with the flag "Hide from UI" disabled, that's all.
Yes, another crazy and really unnecessary idea I want to do.
I want to change a units appearance based on how many kills he has. Like a promotion system to lieutenant and commander etc.. For example a Marine gets the appearance of War Pigs after he achieved 10 kills. I could change the unit as well, if required, but I'd rather only actor.
Does anyone know if this is even possible? And maybe how to do it?
You want to use a Model Swap event action. Maybe a Unit Points event with a Require term? Else use a looped timer with a Validate Unit term and a Unit Compare Kill Count validator.
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
Thanks, I've tried it out, seems like a good direction. I'm confident that it will work with a buff Behavior and this Validator, but I'm trying to do this with the Veterancy Behavior and Behaviorlevel compare in the actor, so I have later only one Behavior for all model swaps. Unfortunately I don't know anything about Veterancy yet, so I need to look for a tutorial. I wonder if it can be adjusted to count kills.
Although the kills are counted already on the unit. But I don't know how to access the number, with Unit Points and Require term (or some other terms) I'm overwhelmed.
Okay, nothing is working. I have read that for melee maps the experience gain is disabled. So I've tried UnitCompareKillCount Validator, which doesn't work either - maybe because of the same reason?
I added a trigger MeleeSetOption(c_meleeOptionXPGainDisable, ...) to enable XP gain - but that doesn't work either.
What am I doing wrong?
Why a Buff behaviour? Why did you not say veterancy level in the first place. There are actor events specifically for that eg. Behavior Level. You do know you need to use the Level term with it right?
The Veterancy behaviour is exp based so only poorly able to be linked to kill count. Also if it is just for visual swaps you are wasting the behaviour type.
You want to access the number for display purposes? Use triggers for that.
You setting the validator to caster or target? Also how are your actor events set up under the Actors data type?
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
In the end I don't care whether it's a Buff or Veterancy Behavior, I only used Buff to test the UnitCompareKillCount Validator - which didn't work. But I thought it would be easier with Veterancy and Behavior Level in the Actor. I want to link it to kill count since I don't want to make experience gain visible.
It's possible to swap model with triggers also, am I correct? I'd prefer the data-editor, but if that won't work, I'll try trigger.
Current problem though is that UnitCompareKillCount Validator doesn't work, and experience gain doesn't either. For the experience I read that standard melee settings in a trigger disable this, and I need to delete this trigger (will be useful for other purposes also). Though were do I find it? For the Validator I don't know - maybe it's the same reason, or I'm making some mistake.
Yes you can also use triggers since those can also send messages to actors.
How you setting up your validator? For testing validators I use a buff that adds +1 max shield for a unit that does not have shields.
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
I experimented a bit, and found out this:
Melee maps have this melee-map-initialization trigger. This disables XP gain and
you cannot reenable it anymore - unlessyou can reenable it with a delay after the mapinit, or you change the test map and remove the trigger which is disabling it. (It also creates main building and starting workers. Now I understand why KingOfTheHill maps were always a set of maps, and never mods you can apply anywhere.)The UnitCompareKillCount Validators though don't work with the removed melee-map-init either. There's only one made by Blizzard, maybe they've never used them and it was left with bugs. I wonder, if a trigger works instead. I will test it soon. I also wonder how these would play out online, since I heard the rules change again from Editor to battlenet.
For testing Validators I simply make a buff Behavior with the flag "Hide from UI" disabled, that's all.