soma_cruz20
New Member
- Reaction score
- 0
how do i create a spell with an hp requirement?
example: can only cast this spell when your hp falls below 40%
example: can only cast this spell when your hp falls below 40%
yes. look at my event: "a unit begins casting an ability"
That's when a unit attempts to cast a spell. I thought it would order your unit to stop before using mana.
Sure, but that's a subject for another problem: more specifically "how can i make the ability look good".Maybe you could consider showing a text message saying that the ability cannot be used if you have more than 40% of your HP remaining.
call SimError(GetTriggerPlayer(), "MESSAGE HERE")