I have heard countless times that one can make heroes with custom experience and levels. First off, I can't find this while editing a hero based off a marine. I do see "Kill Experience" under the Combat tab, but how do I modify the threshold at which it levels up? Second, can I apply this to a non-hero?
Example:
Siege Tank at level 1 with 20 XP kills a Marine. Marine yields 10 XP. The XP cap for level 1 is 25, so Siege Tank levels up to 2.
It's obvious that I modify "Kill Experience" to 10, and for that matter, how can I yield 10 XP per level of unit killed? How do I define the levels, and their XP caps?
Ok, thanks. Next question: how can I change the model used each time the unit levels?
Fir example:
Marine levels up to 2. Marine changes to Marine with Combat Shield.
Marine levels up to 3. Marine changes to War Pig.
I don't want the unit to change, just the model. I also noticed the Combat Shield is its own model that is added on.
I plan to do the same thing to zerglings, etc. once I learn this.
You could use a trigger to send a Model Swap actor message to the unit actor. This is probably the easiest way.
For the shielded marine, you would need to apply an Animation Group instead (also using actor messages)
your gona need to have a morph abilities with destroy target effect , problem with this doh , im not sure if your hero keeps his EXP , and you basicly have to creat a NEW unit for every lvl your gona want him to change too.
. my Suggestion to you is : watch a tutorial on TOWER DEFENCE , they show you how when a unit upgrades it changes ( bigger model , diffrent model w/e ) same basic thing for this .
Ok do you mind explaining how I can accomplish this? I'm relatively new to the data portion, although I do understand triggers decently.
Actor Messages are kind of like trigger actions for actors, performing all kinds of actions on the actor. Using them via Gui trigger is quite easy:
There is a trigger action: Actor - Send Actor Message to Unit. For the message, pick Model Swap from the available list, and pick your desired model.
Note that this works for all kinds of models, but could produce strange results eventually (for similar models like marine and war pig it should work nicely, though).
For the combat shields, you need to know, how they work: If marines do not have the upgrade, they are forced to play their "cover" animation. If the upgrade gets researched, the cover animation gets stopped.
So for your marine to pull out the shield, we will send another actor message, called Animation Clear. For this, pick "Cover" as animation name (customize -> add -> "Cover", this is case-sensitive!).
Note the difference between "Cover", the name of the animation, and "cover", the actual animation played by the marine (this is set up in the standard marine actor's events. Look it up, if you are interested.)
The shield part is assuming, that you use the standard marine actor. If your marine uses a custom actor not based on the standard marine, you have to apply the cover animation, if you don't want the shields.
I have heard countless times that one can make heroes with custom experience and levels. First off, I can't find this while editing a hero based off a marine. I do see "Kill Experience" under the Combat tab, but how do I modify the threshold at which it levels up? Second, can I apply this to a non-hero?
Example:
Siege Tank at level 1 with 20 XP kills a Marine. Marine yields 10 XP. The XP cap for level 1 is 25, so Siege Tank levels up to 2.
It's obvious that I modify "Kill Experience" to 10, and for that matter, how can I yield 10 XP per level of unit killed? How do I define the levels, and their XP caps?
This help?
Ok, thanks. Next question: how can I change the model used each time the unit levels?
Fir example:
Marine levels up to 2. Marine changes to Marine with Combat Shield. Marine levels up to 3. Marine changes to War Pig.
I don't want the unit to change, just the model. I also noticed the Combat Shield is its own model that is added on. I plan to do the same thing to zerglings, etc. once I learn this.
You could use a trigger to send a Model Swap actor message to the unit actor. This is probably the easiest way.
For the shielded marine, you would need to apply an Animation Group instead (also using actor messages)
Ok do you mind explaining how I can accomplish this? I'm relatively new to the data portion, although I do understand triggers decently.
EDIT: Wait, wouldn't Attach Model to Unit work for the Combat Shield?
of if u wana use PURE data .
your gona need to have a morph abilities with destroy target effect , problem with this doh , im not sure if your hero keeps his EXP , and you basicly have to creat a NEW unit for every lvl your gona want him to change too.
. my Suggestion to you is : watch a tutorial on TOWER DEFENCE , they show you how when a unit upgrades it changes ( bigger model , diffrent model w/e ) same basic thing for this .
Actor Messages are kind of like trigger actions for actors, performing all kinds of actions on the actor. Using them via Gui trigger is quite easy:
There is a trigger action: Actor - Send Actor Message to Unit. For the message, pick Model Swap from the available list, and pick your desired model.
Note that this works for all kinds of models, but could produce strange results eventually (for similar models like marine and war pig it should work nicely, though).
For the combat shields, you need to know, how they work: If marines do not have the upgrade, they are forced to play their "cover" animation. If the upgrade gets researched, the cover animation gets stopped.
So for your marine to pull out the shield, we will send another actor message, called Animation Clear. For this, pick "Cover" as animation name (customize -> add -> "Cover", this is case-sensitive!).
Note the difference between "Cover", the name of the animation, and "cover", the actual animation played by the marine (this is set up in the standard marine actor's events. Look it up, if you are interested.)
The shield part is assuming, that you use the standard marine actor. If your marine uses a custom actor not based on the standard marine, you have to apply the cover animation, if you don't want the shields.
hello i would like to bump this thread cause well the link posted for fix doesn't work and i would like to know how to do this
Tried the hero tutorials by OneTwoSC?
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
@DrSuperEvil: Go
yes i just did thanks found it on another thread the link here is broken it seems