HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trying to make a polymorph attack...

12-23-2002, 11:28 PM#1
got_ammo
I'm trying to make a tower that, when it attacks units, they are replaced with a sheep, and after 10 seconds, are replaced with the original unit. I'm a little confused on how to do this... Thanks in advance for help! :infth:
12-23-2002, 11:55 PM#2
Guest
Triigers. First make an invisible sorceress with the spell Polymorph(neutral hostile) and ghost. then use this trigger.

Event: A owned by [player] is attacked.
Condition: Attacking unit is equal to a Polymorph Tower
Actions:
Move Sorceress to posision of attacked unit.
Order Sorceress to Polymorph attacked unit.
12-24-2002, 12:08 AM#3
Quilamar Frost
Yeah, then you have to use other triggers to keep it holding position and not attacking after its polymorphed sumat
12-24-2002, 12:25 AM#4
dataangel
...or just remove her attack ;)
12-24-2002, 12:28 AM#5
ph33rb0
Would be easier if you just replaced the unit and then waited 10 seconds then replaced it with the original unit. Could store the original in a unit var.
12-24-2002, 12:55 AM#6
wei
dataangel, you're right...
remove the attack
and give this tower lots of mana to start with
or ultra-high-speed mana regeneration

then give her the polymorph ability
and there you go...
12-24-2002, 02:22 AM#7
got_ammo
to Fear.Factor - If I did that, I would have to have an array for every unit that got hit, and that would just be a major pain in the *** to do. Major pain in the ***.....
Spectre/everyone else: i think i'll try that out. I'm going to make the sorc an air unit with no collisions (invisible of course), and follow the advice you said. But I am also making a reverse polymorph tower, in which the target is transformed into something, and speeds up instead of slowing down.... now this i'm currently stumped on.
12-24-2002, 05:17 AM#8
Guest
What's to keep people from killing the sorc and ruining the trigger?

She's invis but what if they have see invis? Or use an AOE attack like a mortar team? Or runs out of mana?


You're better off using the array suggestion. Since you don't have to declare arrays up front you can easily turn an array into a stack by having 2 indexes, one that follows the top and one that follows the bottom.

Have 1 array store the unit, 1 array store the sheep, and 1 array store a counter. Every 2 seconds drop the counter by 1 and restore every unit who's counter is 0.

It wouldn't be terribly hard.
12-24-2002, 05:35 AM#9
Insaniteus
Ok, I have the BEST way here! NO errors what-so-ever!

First thing is to make a Unit Variable Polymorpher.

Place a sorc on the map and make her Polymorpher at initialization. Also, use the trigger "Hide Unit" to make her indetectable in every way and to remove her auto-attack and turn off her collision. Ghost ability doesn't do sh#t quite frankly. After that, make this trigger:

Event - unit owned by (bad guys) is attacked
Conditions - Attacking unit type = to Poly Tower
Actions - Move Polymorpher to position of attacked unit offset by 100 towards 90 degrees.
----------- Wait .01 seconds
----------- Order Polymorpher to Polymorph attacked unit.
----------- Wait 1 second
----------- Replace Polymorpher with a Sorc using new unit's max life and mana
----------- Set Polymorpher = last replaced unit
----------- Hide Polymorpher
----------- turn collision off for Polymorpher


That trigger should allow polymoprhs for a tower. This may not work great with multiple towers, so I recommend making an Array Polymorphers and doing this for each tower if there are more than one.

The replace unit it there to get rid of mana-loss and cooldown for the Sorc. If you edit the spell to remove those factors, then those steps won't be needed.

-Insaniteus-
12-24-2002, 02:29 PM#10
wei
mmmm have any of you guys ever try changing the polymorph so that it can target heroes too ?
i dunno whether it is a bug or not :
when a hero is polymorphed his/her portrait (on the top-left) is changed into the sheep icon... but when he/she's reverted to the original form, the portrait remains the same : the Sheep icon...
this is kinda annoying :(
12-24-2002, 02:46 PM#11
Electromancer
I edited the spell polymorph to last ten seconds and only costs 50 mana. I know this isnt an attack, but it could help.