I want to make a spell, like the mage spell in WoW, where it creates 4 of the same units that will attack. I made the spell make 4 other units, but I can't make the spell apply a timed life to all the 4 made units. Anyone know a way to do this?
First of all: The tutorial section is there for people to post helpful information or tutorials.
Please post questions in the Development forum, where they belong to.
My words shall conjure a moderator to use his magic powers once again!
To your question:
If the unit you are spawning is something unique (so a unit that wouldn't usually be on your map without having a timer) then you can do it like this:
Create a new behavior based on "Timed life" (See behaviors like "MULE - Timed Life" as a reference").
Open your unit in the Data Editor and add your new timed-life behavior into the field "Behavior - Behaviors+".
If you want you can also re-use one of the preset timed-life behaviors. Then you don't even have to make your own.
If you can't use this method, then we're in need of more information how you made your ability.
I haven't poked around with the data editor, but I'm curious if there's a way to apply the debuff to the units created by the spell, while leaving the casting unit alone and not having a copy of the unit. Sort of like having the timed life behavior on the unit, but flagged to only activate when the unit is created by the spell cast?
Edit: Maybe with validators, but I don't see anything that checks if a unit was created by spellcast. An idea might be making a validator type of 'Unit Compare Behavior Count', setting Validators - Behavior to your spell (equal to 1), then linking to the Validator in the Timed life Effect under 'Effect - Validators'
It works yes. But how do i get the 2 timers to show like on the auto-turront? there is a timer over the unit and one in the interface if unit is selected?
First of all:
The tutorial section is there for people to post helpful information or tutorials.
Please post questions in the Development forum, where they belong to.
My words shall conjure a moderator to use his magic powers once again!
To your question:
If the unit you are spawning is something unique (so a unit that wouldn't usually be on your map without having a timer) then you can do it like this:
Create a new behavior based on "Timed life" (See behaviors like "MULE - Timed Life" as a reference").
Open your unit in the Data Editor and add your new timed-life behavior into the field "Behavior - Behaviors+".
If you want you can also re-use one of the preset timed-life behaviors. Then you don't even have to make your own.
If you can't use this method, then we're in need of more information how you made your ability.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I want to make a spell, like the mage spell in WoW, where it creates 4 of the same units that will attack. I made the spell make 4 other units, but I can't make the spell apply a timed life to all the 4 made units. Anyone know a way to do this?
First of all:
The tutorial section is there for people to post helpful information or tutorials.
Please post questions in the Development forum, where they belong to.
My words shall conjure a moderator to use his magic powers once again!
To your question:
If the unit you are spawning is something unique (so a unit that wouldn't usually be on your map without having a timer) then you can do it like this:
Create a new behavior based on "Timed life" (See behaviors like "MULE - Timed Life" as a reference").
Open your unit in the Data Editor and add your new timed-life behavior into the field "Behavior - Behaviors+".
If you want you can also re-use one of the preset timed-life behaviors. Then you don't even have to make your own.
If you can't use this method, then we're in need of more information how you made your ability.
Thanks it will work, all I need is to copy the original unit instead of using the same unit 4 times.
And sorry, I am new at this...
I haven't poked around with the data editor, but I'm curious if there's a way to apply the debuff to the units created by the spell, while leaving the casting unit alone and not having a copy of the unit. Sort of like having the timed life behavior on the unit, but flagged to only activate when the unit is created by the spell cast?
Edit: Maybe with validators, but I don't see anything that checks if a unit was created by spellcast. An idea might be making a validator type of 'Unit Compare Behavior Count', setting Validators - Behavior to your spell (equal to 1), then linking to the Validator in the Timed life Effect under 'Effect - Validators'
moving this thread to map development
It works yes. But how do i get the 2 timers to show like on the auto-turront? there is a timer over the unit and one in the interface if unit is selected?