- Joined
- Aug 7, 2004
- Messages
- 875
I've created a Smoke Bomb spell that uses three dummies whom posses a Cloud ability with different settings according to each level of the Smoke Bomb spell. The spell works fine except the Cloud spell affects the hero caster itself when attacking in the clouded area. Also even though the Cloud ability has the settings 10% miss at lvl1 - 25% lvl2 - 50% lvl3, the enemies and the hero caster affected by the cloud spell will always miss their shots 100% chance.
I've come to a conclusion that this is somewhat an odd bug which involves the objects and not the triggers. However as I check everything things are as I planned to be and expected but the product of the spell still goes wrong.
Can someone provide me a solution to this or an alternative way of making a Smoke Bomb spell.
I've come to a conclusion that this is somewhat an odd bug which involves the objects and not the triggers. However as I check everything things are as I planned to be and expected but the product of the spell still goes wrong.
Can someone provide me a solution to this or an alternative way of making a Smoke Bomb spell.
-
SmokeBombCast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Smoke Bomb
-
Actions
- Set smokep[(Player number of (Owner of (Casting unit)))] = (Target point of ability being cast)
- Wait 1.00 game-time seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Smoke Bomb for (Casting unit)) Equal to 1
-
Then - Actions
- Unit - Create 1 Cloud 1 for (Owner of (Casting unit)) at smokep[(Player number of (Owner of (Casting unit)))] facing Default building facing degrees
- Set SmokeDummy[(Player number of (Owner of (Casting unit)))] = (Last created unit)
- Unit - Order SmokeDummy[(Player number of (Owner of (Casting unit)))] to Human Dragonhawk Rider - Cloud smokep[(Player number of (Owner of (Casting unit)))]
- Wait 8.00 seconds
- Unit - Remove SmokeDummy[(Player number of (Owner of (Casting unit)))] from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Smoke Bomb for (Casting unit)) Equal to 2
-
Then - Actions
- Unit - Create 1 Cloud 2 for (Owner of (Casting unit)) at smokep[(Player number of (Owner of (Casting unit)))] facing Default building facing degrees
- Set SmokeDummy[(Player number of (Owner of (Casting unit)))] = (Last created unit)
- Unit - Order SmokeDummy[(Player number of (Owner of (Casting unit)))] to Human Dragonhawk Rider - Cloud smokep[(Player number of (Owner of (Casting unit)))]
- Wait 16.00 seconds
- Unit - Remove SmokeDummy[(Player number of (Owner of (Casting unit)))] from the game
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Smoke Bomb for (Casting unit)) Equal to 3
-
Then - Actions
- Unit - Create 1 Cloud 3 for (Owner of (Casting unit)) at smokep[(Player number of (Owner of (Casting unit)))] facing Default building facing degrees
- Set SmokeDummy[(Player number of (Owner of (Casting unit)))] = (Last created unit)
- Unit - Order SmokeDummy[(Player number of (Owner of (Casting unit)))] to Human Dragonhawk Rider - Cloud smokep[(Player number of (Owner of (Casting unit)))]
- Wait 24.00 seconds
- Unit - Remove SmokeDummy[(Player number of (Owner of (Casting unit)))] from the game
- Else - Actions
-
If - Conditions
-
Events