- Joined
- Feb 28, 2016
- Messages
- 685
Hello, I would like to ask about the way this system works.
So, this is a boss fight that I would like to implement for a level. I'm not looking to do anything more complicated yet, this is just the basic outline of what I would like to do. I would like to know if these actions are correct and would perform the way I imagine it to be (the doubted actions are below the comments): (Note: There's no base event here because it is looped by another trigger in the level)
1. DifficultyRating is an integer used to define the difficulty in the level. This integer was selected from the first level and loaded over to the next maps. What I did here was converting that integer to real, and subtract the 3.00 second real value with the DifficultyRating. So, if for example the DifficultyRating is 2, will changing it to a real value subtract the second?
2. For this one, I was imagining that the boss would teleport to a random area, then from there, cast Carrion Swarm to the position of a random unit owned by the player with the condition that the unit is within the range of Carrion Swarm's default cast range which is 700.00 (so in the bossfight, it will have troops as well so the goal is to just target a random one of those every set period). However, I do not feel confident about the matching condition yet. The ability, too, it casts Carrion Swarm (Neutral Hostile) but the only available one in issuing the order is Undead - Dreadlord - Carrion Swarm, not sure if it's right.
Thank you.
So, this is a boss fight that I would like to implement for a level. I'm not looking to do anything more complicated yet, this is just the basic outline of what I would like to do. I would like to know if these actions are correct and would perform the way I imagine it to be (the doubted actions are below the comments): (Note: There's no base event here because it is looped by another trigger in the level)
1. DifficultyRating is an integer used to define the difficulty in the level. This integer was selected from the first level and loaded over to the next maps. What I did here was converting that integer to real, and subtract the 3.00 second real value with the DifficultyRating. So, if for example the DifficultyRating is 2, will changing it to a real value subtract the second?
2. For this one, I was imagining that the boss would teleport to a random area, then from there, cast Carrion Swarm to the position of a random unit owned by the player with the condition that the unit is within the range of Carrion Swarm's default cast range which is 700.00 (so in the bossfight, it will have troops as well so the goal is to just target a random one of those every set period). However, I do not feel confident about the matching condition yet. The ability, too, it casts Carrion Swarm (Neutral Hostile) but the only available one in issuing the order is Undead - Dreadlord - Carrion Swarm, not sure if it's right.
-
TeleportAraj
-
Events
-
Conditions
-
Actions
-
Set TeleportAraj = (Random integer number between 1 and 3)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TeleportAraj Equal to 1
-
-
Then - Actions
-
Special Effect - Create a special effect at (Position of Araj) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Hide Araj
-
Unit - Pause Araj
-
Wait 0.01 seconds
-
Unit - Move Araj instantly to (Center of ArajTeleport01 <gen>), facing 360.00 degrees
-
-------- 1. Is this the right way to reduce time by an assigned difficulty rating? --------
-
Wait (3.00 - (Real(DifficultyRating))) seconds
-
Special Effect - Create a special effect at (Center of ArajTeleport01 <gen>) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Unhide Araj
-
Animation - Play Araj's stand channel animation
-
Unit - Create 1 Dummy Carrion Swarm for Player 7 (Green) at (Position of Araj) facing Default building facing degrees
-
Set DummySwarm = (Last created unit)
-
-------- 2. Is this the right way to say it? --------
-
Unit - Order DummySwarm to Undead Dreadlord - Carrion Swarm (Position of (Random unit from (Units owned by P01_Blue matching ((Distance between (Position of DummySwarm) and (Position of (Matching unit))) Less than or equal to 700.00))))
-
Wait 1.00 seconds
-
Animation - Reset Araj's animation
-
Unit - Unpause Araj
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TeleportAraj Equal to 2
-
-
Then - Actions
-
Special Effect - Create a special effect at (Position of Araj) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Hide Araj
-
Unit - Pause Araj
-
Wait 0.01 seconds
-
Unit - Move Araj instantly to (Center of ArajTeleport02 <gen>), facing 360.00 degrees
-
-------- 1. Is this the right way to reduce time by an assigned difficulty rating? --------
-
Wait (3.00 - (Real(DifficultyRating))) seconds
-
Special Effect - Create a special effect at (Center of ArajTeleport02 <gen>) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Unhide Araj
-
Animation - Play Araj's stand channel animation
-
Unit - Create 1 Dummy Carrion Swarm for Player 7 (Green) at (Position of Araj) facing Default building facing degrees
-
Set DummySwarm = (Last created unit)
-
-------- 2. Is this the right way to say it? --------
-
Unit - Order DummySwarm to Undead Dreadlord - Carrion Swarm (Position of (Random unit from (Units owned by P01_Blue matching ((Distance between (Position of DummySwarm) and (Position of (Matching unit))) Less than or equal to 700.00))))
-
Wait 1.00 seconds
-
Animation - Reset Araj's animation
-
Unit - Unpause Araj
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TeleportAraj Equal to 3
-
-
Then - Actions
-
Special Effect - Create a special effect at (Position of Araj) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Hide Araj
-
Unit - Pause Araj
-
Wait 0.01 seconds
-
Unit - Move Araj instantly to (Center of ArajTeleport03 <gen>), facing 360.00 degrees
-
-------- 1. Is this the right way to reduce time by an assigned difficulty rating? --------
-
Wait (3.00 - (Real(DifficultyRating))) seconds
-
Special Effect - Create a special effect at (Center of ArajTeleport03 <gen>) using Abilities\Spells\Items\AIil\AIilTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
Animation - Play Araj's stand channel animation
-
Unit - Unhide Araj
-
Unit - Create 1 Dummy Carrion Swarm for Player 7 (Green) at (Position of Araj) facing Default building facing degrees
-
Set DummySwarm = (Last created unit)
-
-------- 2. Is this the right way to say it? --------
-
Unit - Order DummySwarm to Undead Dreadlord - Carrion Swarm (Position of (Random unit from (Units owned by P01_Blue matching ((Distance between (Position of DummySwarm) and (Position of (Matching unit))) Less than or equal to 700.00))))
-
Wait 1.00 seconds
-
Animation - Reset Araj's animation
-
Unit - Unpause Araj
-
-
Else - Actions
-
-
-
Thank you.