# Trigger Help

Status
Not open for further replies.

#### aznsteph

Level 4
Well, im tried to copy a spell and but there was a trigger i had to change :
• Unit - Create 1 Unit for (Owner of (Triggering unit)) at BA_Points[22] facing (18.00 x (Real((Integer A)))) degrees
I need to change unit to my own unit but i dunno how to do the "(18.00 x (Real((Integer A)))) degrees" part, can someone clearly explain to me how to do it? Thanks~

#### YoshiRyu

Level 9
this part is the facing of the unit, integer A is a loop variable

this line is probably extracted from a trigger wich create a circle of 20 units in a loop, the loop make A going from 1 to 20, so the facing of units go from 18° to 20x18=360°.

what do you want to do with your trigger? a circle to? or a single unit? is its facing important? or not? is it has to be the same of something else? (like a caster unit?)

#### Los_Tacos

Level 7
First, Arithmetic.
on the left, type 18
change the operator to X
on the right, choose Conversion - Convert Integer to Real
then choose For Loop Integer A.

#### aznsteph

Level 4
Ah ty alot, finally solved it...

Status
Not open for further replies.

Replies
9
Views
594
Replies
2
Views
560
Replies
16
Views
2K
[Solved] Trigger question
Replies
6
Views
795
Replies
2
Views
375