- Joined
- Sep 3, 2009
- Messages
- 458
Well hello there everyone!
I'm working on a combo system. basically what is does is string together abilities you set.
For example:
After Casting Ability One > Remove Ability One > Add Ability two
if ability two is not used
Remove Ability two > Add first ability
else
continue to ability three and so on.
Right now I'm having a little problem. In my trigger there's a variable called "Combo_Timer" this determines how long to wait until an unused combo ability is removed.
It functions like I wanted it to, going through first, second, to third ability. But the delay is two long for me so I decided to reduce it to 1.00 second. When I tested it, it only came to the second ability and didn't go to the third.
It seems there is something wrong with my timer trigger or something. Apparently I can't find a solution. Can anyone help me out?
here are the triggers:
This Trigger is run when the first ability is cast. The needed variables are set at that time as well.
This trigger checks if an ability finishes resets the timer and adds the next ability.
This is the timer trigger that handles the delay on the next ability. I'm not quite sure about this trigger actually. I've kinda was confused and just experimented with trial and error
Well here it is. If anyone needs a test map I'll make one. I really need help on this system. I've been thinking about this since yesterday.
Please and thank you!
I'm working on a combo system. basically what is does is string together abilities you set.
For example:
After Casting Ability One > Remove Ability One > Add Ability two
if ability two is not used
Remove Ability two > Add first ability
else
continue to ability three and so on.
Right now I'm having a little problem. In my trigger there's a variable called "Combo_Timer" this determines how long to wait until an unused combo ability is removed.
It functions like I wanted it to, going through first, second, to third ability. But the delay is two long for me so I decided to reduce it to 1.00 second. When I tested it, it only came to the second ability and didn't go to the third.
It seems there is something wrong with my timer trigger or something. Apparently I can't find a solution. Can anyone help me out?
here are the triggers:
This Trigger is run when the first ability is cast. The needed variables are set at that time as well.
-
Combo Start
-
Events
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Combo_MinSize Equal to 0
-
-
Then - Actions
-
Trigger - Turn on Combo Timer <gen>
-
Trigger - Turn on Combo Continue <gen>
-
-
Else - Actions
-
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Increase the index size --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Set Combo_MinSize = (Combo_MinSize + 1)
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Dynamic Index --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Combo_MinSize Greater than Combo_MaxSize
-
-
Then - Actions
-
Set Combo_Index[Combo_MinSize] = Combo_MinSize
-
Set Combo_MaxSize = Combo_MinSize
-
-
Else - Actions
-
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Dynamic Index End --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Set ComboInt = Combo_Index[Combo_MinSize]
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Variable Setup --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Set Combo_Timing[ComboInt] = True
-
Set Combo_AddCaster[ComboInt] = Combo_Caster
-
Set Combo_SIndex[ComboInt] = 0
-
Set Combo_Timer[ComboInt] = 1.00
-
Set Combo_Counter[ComboInt] = Combo_NCombos
-
Unit - Remove Combo_Sequence[Combo_SIndex[ComboInt]] from Combo_AddCaster[ComboInt]
-
Set Combo_SIndex[ComboInt] = (Combo_SIndex[ComboInt] + 1)
-
Unit - Add Combo_Sequence[Combo_SIndex[ComboInt]] to Combo_AddCaster[ComboInt]
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- End of Variable Setup --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-
-
Combo Continue
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Combo_Sequence[Combo_SIndex[ComboInt]]
-
-
Actions
-
Set Combo_Timing[ComboInt] = False
-
Set Combo_Timer[ComboInt] = 1.00
-
Unit - Remove Combo_Sequence[Combo_SIndex[ComboInt]] from Combo_AddCaster[ComboInt]
-
Set Combo_SIndex[ComboInt] = (Combo_SIndex[ComboInt] + 1)
-
Unit - Add Combo_Sequence[Combo_SIndex[ComboInt]] to Combo_AddCaster[ComboInt]
-
Set Combo_Timing[ComboInt] = True
-
-
This is the timer trigger that handles the delay on the next ability. I'm not quite sure about this trigger actually. I've kinda was confused and just experimented with trial and error
-
Combo Timer
-
Events
-
Time - Every 0.02 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer Combo_Loop) from 1 to Combo_MinSize, do (Actions)
-
Loop - Actions
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- This let look everything cleaner. --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Set ComboInt = Combo_Index[Combo_Loop]
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Condition... --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Combo_Timing[ComboInt] Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Combo_Timer[ComboInt] Greater than 0.00
-
-
Then - Actions
-
Set Combo_Timer[ComboInt] = (Combo_Timer[ComboInt] - 0.02)
-
-
Else - Actions
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Destroy handles --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Unit - Remove Combo_Sequence[Combo_SIndex[ComboInt]] from Combo_AddCaster[ComboInt]
-
Unit - Add Combo_Sequence[0] to Combo_AddCaster[ComboInt]
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- RecycleIndex --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
Set Combo_Index[Combo_Loop] = Damage_Index[Combo_MinSize]
-
Set Combo_Index[Combo_MinSize] = ComboInt
-
Set Combo_MinSize = (Combo_MinSize - 1)
-
Set Combo_Loop = (Combo_Loop - 1)
-
-
-
-
Else - Actions
-
-
-
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
-------- Turn the trigger again off if the index_size is below 0... --------
-
-------- --------------------------------------------------------------------------------------------------------------------------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Combo_MinSize Equal to 0
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
Trigger - Turn off Combo Continue <gen>
-
-
Else - Actions
-
-
-
Please and thank you!
