I added code tags to the OP so that I could actually read it...
Is it just me, or is he trying to make one of the simplest data abilities with triggers?
Welcome to SC2Mapster, ghostknife!
I guess you are a wc3 modder as you're trying to make abilities with triggers. That is no longer needed, and is actually very performance inefficient.
I take it your ability is supposed to increase max health and model scale of the unit.
Create a Behavior with whatever name you want and click the "suggest" button to get the appropriate ID.
Open the Modifications+ field, click on "Unit", scroll down until you find a box with "vitals" in it's name. There should be 3 of them I think, pick the one with "Fraction" and click on "life" in it, then set the value to 0.1 (Or 1.1 if the default value is 1) for a 10% increase.
Create a new Actor of type model. Set the Art - Model field to invisible.
Open "Events+"
Right click into the white box and press "Add event"
Now you have a new event and action. Select the event (top part) and on the right there will be 3 dropdowns. Set them so that the event looks like this: "Behavior.(your behavior).On", then set the action (bottom part) to "Create"
Repeat that, just make it "off" instead of "On" and "destroy" instead of "Create"
Add another event and action and make it be this:
"ActorCreation (Other dropdowns stay blank/none)
- SetScale 1.1"
Click on the SetScale again, and there will be a long white box in the top right marked as "Target", in there write _selectable
This should work if done correctly. The only problem here is that there's nothing resetting the scale, because I am assuming the behavior is permanent. If it isn't, add another event "behavior.(your behavior).off" and "Set Scale Absolute 1", make it target _selectable again.
I hope that helped.
And now I present you with the customary welcome gift of the permission to buy us all a round of drinks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I added code tags to the OP so that I could actually read it...
Is it just me, or is he trying to make one of the simplest data abilities with triggers?
Welcome to SC2Mapster, ghostknife!
I guess you are a wc3 modder as you're trying to make abilities with triggers. That is no longer needed, and is actually very performance inefficient.
I take it your ability is supposed to increase max health and model scale of the unit.
Create a Behavior with whatever name you want and click the "suggest" button to get the appropriate ID.
Open the Modifications+ field, click on "Unit", scroll down until you find a box with "vitals" in it's name. There should be 3 of them I think, pick the one with "Fraction" and click on "life" in it, then set the value to 0.1 (Or 1.1 if the default value is 1) for a 10% increase.
Create a new Actor of type model. Set the Art - Model field to invisible.
Open "Events+"
Right click into the white box and press "Add event"
Now you have a new event and action. Select the event (top part) and on the right there will be 3 dropdowns. Set them so that the event looks like this: "Behavior.(your behavior).On", then set the action (bottom part) to "Create"
Repeat that, just make it "off" instead of "On" and "destroy" instead of "Create"
Add another event and action and make it be this:
"ActorCreation (Other dropdowns stay blank/none)
- SetScale 1.1"
Click on the SetScale again, and there will be a long white box in the top right marked as "Target", in there write _selectable
This should work if done correctly. The only problem here is that there's nothing resetting the scale, because I am assuming the behavior is permanent. If it isn't, add another event "behavior.(your behavior).off" and "Set Scale Absolute 1", make it target _selectable again.
I hope that helped.
And now I present you with the customary welcome gift of the permission to buy us all a round of drinks.