• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Conversion from AoE game

Status
Not open for further replies.
Level 12
Joined
Mar 26, 2005
Messages
790
Everybody knows age of empires I&II, priests/monks have abiltiy to convert enemy unit, at some range, BUT the conversion itself takes time (i.e 1time_unit), and if two monks are converting at same time, it takes less time (i.e 0.5time_unit), and if one monk started and second joined during half of casting, it will take cca. 0.75 time and so on and so on.

And there are ofc. abilities to be more protected from casting (it need more time_units). How to make it MUI. Prefering GUI
 
Level 18
Joined
Sep 27, 2005
Messages
2,069
unit starts the efect of an ability
unit = monk

set a = monk
set b = target of ability

if b = in region close to a
then ( base it on a channel spell )
turn on trigger2
turn on trigger3
wait 1 second
set x = 1 + z
wait 2 second
set x = 2 + z
wait 3 second
set a = 3 + z
wait 4 second
set a = 4 + z
wait 5 second
set a = 5 + z

trigger2
every 0.01
unit starts the efect of an ability
= unit type of monk
if unit is in region near b
set z = 1 + z

trigger3
every 0.01 seconds
if x = or bigger then 5
change owner

I think you should do something like this
 
Status
Not open for further replies.
Top