HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

HElp trigger not working

10-06-2006, 12:16 AM#1
GamesSmash
Well here is the trigger:

Trigger:
Chain Polymorph
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Chain Polymorph
Collapse Actions
Set ChPmUnGr[(Player number of (Triggering player))] = (Units within 1000.00 of (Position of (Triggering unit)) matching (((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and (((Matching unit) is Polymorphed) Equal to False)))
Collapse For each (Integer A) from 1 to (((Level of Chain Polymorph for (Triggering unit)) x 3) - 1), do (Actions)
Collapse Loop - Actions
Set ChPmTargUn[(Player number of (Triggering player))] = (Random unit from ChPmUnGr[(Player number of (Triggering player))])
Set ChPmTarg1[(Player number of (Triggering player))] = ChPmTarg2[(Player number of (Triggering player))]
Set ChPmTarg2[(Player number of (Triggering player))] = (Position of ChPmTargUn[(Player number of (Triggering player))])
Set ChPmUnGr[(Player number of (Triggering player))] = (Units within 1000.00 of ChPmTarg2[(Player number of (Triggering player))])
Unit - Create 1 Dummy Caster for Neutral Hostile at ChPmTarg1[(Player number of (Triggering player))] facing Default building facing degrees
Set ChPmDummy[(Player number of (Triggering player))] = (Last created unit)
Unit - Add a 4.00 second Generic expiration timer to (Last created unit)
Unit - Hide (Last created unit)
Unit - Add Firebolt (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Neutral - Firebolt ChPmTargUn[(Player number of (Triggering player))]
Unit - Add Polymorph to (Last created unit)
Unit - Set level of Chain Polymorph for (Last created unit) to ((Level of Polymorph for (Triggering unit)) x 3)
Wait (900.00 x ((Distance between ChPmTarg1[(Player number of (Triggering player))] and ChPmTarg2[(Player number of (Triggering player))]) + 0.00)) game-time seconds
Unit - Order ChPmDummy[(Player number of (Triggering player))] to Human Sorceress - Polymorph ChPmTargUn[(Player number of (Triggering player))]
Sound - Play Sheep1 <gen> at 100.00% volume, attached to ChPmTargUn[(Player number of (Triggering player))]



It is supposed to be a chain polymorph but it doesnt work, it just stops on the first unit. Anyone know why? Level 1 - 3 sec and 2 jump, level 2 - 6 sec 3 jump Level 3 - 9 sec , 4 jump
10-06-2006, 02:16 AM#2
zen87
(triggering player) only respawn for player in the event, whats in the event now is a unit, it should be (owner of (triggering unit))
10-06-2006, 03:15 AM#3
GamesSmash
Wow cant belive i ddint notice that +rep
10-07-2006, 03:00 AM#4
Anopob
Oh and you should use Event: A unit starts the effect of an ability not Event: A unit beings casting an ability because, as said alot of times, people can do it really fast and still get the effect of the spell and sometimes disable other stuff...I think.