HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Doesn't work

03-05-2008, 10:40 PM#1
SkriK
Is there something wrong with the chain lightning trigger? The unit that's supposed to cast won't listen :<

Variable setup: (No, names aren't serious lol)
Trigger:
Actions
Set Unit[1] = Frodo
Set Unit[2] = Jack Sparrow
Set Unit[3] = Harry Potthed
Set Unit[4] = UnitTurn
Trigger:
Then - Actions
Set TempInt = (Random integer number between 1 and 3)
Unit - Order UnitTurn to Orc Far Seer - Chain Lightning Unit[TempInt]

:Edit:
The spell works correctly if executed manually btw.
03-05-2008, 10:52 PM#2
Anitarf
Can UnitTurn cast the spell if you tell it to do it manualy?
03-05-2008, 10:53 PM#3
TheSecretArts
Does 'UnitTurn' have the spell Chain Lightnight (Far Seer)?
oh dang, anitarf beat me...
03-05-2008, 10:55 PM#4
SkriK
It has a spell based of the standard orc chainlightning.
03-05-2008, 10:56 PM#5
TheSecretArts
ok then, does it have enough mana, is the target in range?
03-05-2008, 10:58 PM#6
SkriK
Yes and yes.
Spell range has a max of 2000 and the unit's range from target is about 700.
The spell's manacost is set to 0.
03-05-2008, 11:08 PM#7
TheSecretArts
try using the 'Select a Unit' and selecting 'unitturn'
03-05-2008, 11:12 PM#8
SkriK
Select? Maybe i haven't made it clear enough :P hehe

UnitTurn, in this case, is not owned by me (player) it's the comp's unit. This trigger is supposed to be like an AI.
03-05-2008, 11:15 PM#9
TheSecretArts
ok, have you tried testing the unit's chain lightning?
03-05-2008, 11:16 PM#10
SkriK
Yes, as i said, it works when used manually.
03-05-2008, 11:23 PM#11
Szythe
show us the map
03-05-2008, 11:24 PM#12
TheSecretArts
ok...
this is mysterious.
This is why you don't use GUI.
Are there any events that trigger these actions?
03-05-2008, 11:34 PM#13
SkriK
Well, as most unoptimized triggers fail, it's cause of a tiny error. Seems like i had set something in the "targets allowed" that made it fail.

The reason why i didn't notice when doing it manually was because of the treaty between me and the target. When the trigger does it, it's on allied, when i do it it's on neutral.

Sorry for making such a fuss for nothing. ^^ Thanks for looking into it though.