problem with simple spell

Status
Not open for further replies.
Level 7
Joined
Feb 18, 2007
Messages
216
So, I have a spell called "rocket pod", it launches five rockets in target area. The problem is that mostly only two or three rockets are launched, sometimes only one :/ Here's the trigger, is there something I need to know?
  • Rocket pod
    • Events
    • Unit - A unit Begins casting an ability
    • Conditions
    • (Ability being cast) Equal to Rocket Pod
    • Actions
    • Set rocketpod_target = (Target point of ability being cast)
    • For each (Integer A) from 1 to 5, do (Actions)
    • Loop - Actions
    • Unit - Create 1 Rocket Pod Dummy for Player 1 (Red) at (Position of (Triggering unit)) facing (Facing of (Triggering unit)) degrees
    • Unit - Order (Last created unit) to Attack Ground (rocketpod_target offset by (Random real number between 0.00 and 200.00) towards (Random angle) degrees)
    • Wait 0.27 seconds
And yes, I know it leaks. I usually fix leaks after I've managed to make the trigger work properly. And yes, it's GUI because I love GUI.
 
Level 7
Joined
Feb 18, 2007
Messages
216
  • noob
    • Events
      • Player - Player 1 (Red) types a chat message containing poo as An exact match
    • Conditions
    • Actions
      • For each (Integer lol) from 1 to 10, do (Actions)
        • Loop - Actions
          • Game - Display to (All players) the text: fuck you
you goddamn noob, use a variable. lol :D

like that was your idea :D but I'll +rep you because I like you.

EDIT: and yeah problem solved. thanks to WHEREWOLF
 
Status
Not open for further replies.
Top