• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Convert

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
The Good player and the Evil player has a similar spell.

If the Good player targets an Evil players unit or a neutral Villager, that unit is charmed and converted into a Footman.

If the Evil player targets a Good players unit or neutral Villager, that unit is charmed and converted into a skeleton.

How would you do a spell like this?


P.S
To make the spell more simple: - It can only convert and charm enemy skeletons or Footmen, not any other enemy units.
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
Event

A unit starts an effect of an ability

Condition
Ability being cast equal to similar spell

Actions

ITE

If
Owner of (Triggering unit) equal to "bad player" and unit type of target of ability being cast equal to footmen

then

Replace target unit with skeleton
player - change owner of replaced unit

else

ITE

if

- | | - equal to good player and target equal to skeleton

then
replace target unit with footmen
change owner of replaced unit
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
  • Event
  • A unit starts an effect of an ability
  • Condition
  • Ability being cast equal to similar spell
  • Actions
  • ITE
  • If
  • Owner of (Triggering unit) equal to "bad player" and unit type of target of ability being cast equal to footmen
  • then
  • Unit - Replace target unit with skeleton
  • player - change owner of replaced unit
  • else
  • ITE
  • if
  • - | | - equal to good player and target equal to skeleton
  • then
  • Unit - replace target unit with footmen
  • player - change owner of replaced unit
base it on a unit target spell like stormbolt or death coil
 
Status
Not open for further replies.
Top