I think (It's modified), I'll try this , And ThanksDo you mean modified spell? If you mean modified spell, you may use GUI functions: Issue order unit attack unit/point/no target.
But modified spells are unable to change their base order ID ( except channel ) , so if you have 2 spells which based on the same ability will conflict if the unit has 2 same based spell ( the unit will try to cast 2 spell )
About 2nd question: Use GUI function : Unit - Damage area, but that would required a trigger to work on it.
I use either Autocast abilities, or abilities based on the available abilites in "Issue order unit to "Cast Ability" on target" in the trigger editor
for example, a skill based on Storm Bolt;
For the 2nd question; what DD said
- Throw Stone
- Events
- Unit - A unit Is attacked
- Conditions
- (Attacking unit) Equal to HEROPlayerHero[(Player number of (Owner of (Attacking unit)))]
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Throw Stone (Thief Plat) for (Attacked unit)) Equal to 1
- Then - Actions
- Set TEMPInteger = (Random integer number between 1 and 20)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- TEMPInteger Equal to 5
- Then - Actions
- Unit - Order (Attacked unit) to Human Mountain King - Storm Bolt (Attacking unit)
- Else - Actions
- Else - Actions
I use either Autocast abilities, or abilities based on the available abilites in "Issue order unit to "Cast Ability" on target" in the trigger editor
for example, a skill based on Storm Bolt;
For the 2nd question; what DD said
- Throw Stone
- Events
- Unit - A unit Is attacked
- Conditions
- (Attacking unit) Equal to HEROPlayerHero[(Player number of (Owner of (Attacking unit)))]
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Level of Throw Stone (Thief Plat) for (Attacked unit)) Equal to 1
- Then - Actions
- Set TEMPInteger = (Random integer number between 1 and 20)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- TEMPInteger Equal to 5
- Then - Actions
- Unit - Order (Attacked unit) to Human Mountain King - Storm Bolt (Attacking unit)
- Else - Actions
- Else - Actions