• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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