| 02-26-2004, 12:48 AM | #1 |
Working on an ability that is based on immolation. When its channeled, a tiny unit with diff levels of endurance aura is spawned on the caster based on the level of Battle Song. The problem is NOT between unit channeling/unit casting an ability event as ive tried both. Any ideas whats wrong? Battle Song Start Events Unit - A unit Begins channeling an ability Conditions (Ability being cast) Equal to Battle Song Actions Set Battle_Song[1] = (Casting unit) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Battle Song for (Casting unit)) Equal to 1 Then - Actions Unit - Create 1 Battle Song 1 for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees Set Battle_Song[2] = (Last created unit) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Battle Song for (Casting unit)) Equal to 2 Then - Actions Unit - Create 1 Battle Song 2 for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees Set Battle_Song[2] = (Last created unit) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Battle Song for (Casting unit)) Equal to 3 Then - Actions Unit - Create 1 Battle Song 3 for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees Set Battle_Song[2] = (Last created unit) Else - Actions Then the unit would be moved to its caster every 2 seconds via - Battle Song Events Time - Every 2.00 seconds of game time Conditions Or - Any (Conditions) are true Conditions (Number of units in (Units of type Battle Song 1)) Greater than 0 (Number of units in (Units of type Battle Song 2)) Greater than 0 (Number of units in (Units of type Battle Song 3)) Greater than 0 Actions Unit - Move Battle_Song[2] instantly to (Position of Battle_Song[1]) |
| 02-26-2004, 01:41 AM | #2 |
Wouldnt... Code:
(Number of units in (Units of type Battle Song 3)) Greater than 0 Normaly be region? Maybe do... Code:
Pick Every Unit and do Action: Pick Every unit in WhatEver and do Action Action If / Then / Else If: Unit-Type Comparisen; Unit-Type of Picked Unit Equals to X Then: Unit - Move Battle_Song[2] instantly to (Position of Battle_Song[1]) Else: Do Nonthing Not sure if that will work, but its a guess. |
| 02-26-2004, 01:41 AM | #3 |
Perhaps you should try ability being channeled instead of ability being cast. |
| 02-26-2004, 01:42 AM | #4 | |
Quote:
|
| 02-26-2004, 01:46 AM | #5 |
Opps, sorry... I guess I paid more attention to the triggers then the post... [edit] - Some potentially useful information this time... Try telling BattleSong [2] to follow BattleSong [1]. |
| 02-26-2004, 11:45 PM | #6 |
I figured out what i was doing wrong but still need some help. I had a trigger to remove the dummy unit with the aura at event - unit stops casting ability. This happens as soon as the turning on of immolation is complete. finishes casting ability is exactly the same......so what even do i use to detect when a unit turns off an ability? |
| 02-26-2004, 11:50 PM | #7 |
Not sure. My mind right now isnt good, maybe add experation timer to the unit, a song has to have a ending doesnt it? |
