Wrda
Spell Reviewer
- Joined
- Nov 18, 2012
- Messages
- 2,010
What is supposed to happen when Whelp Carrying Red Dragon dies? The other interceptors die and de-index or?
Yes, I switch the whelp units, their point and set -1 to their integer. But first I wasn't able to fire the actions properly because, as you wrote, the double array was considered as one.What is supposed to happen when Whelp Carrying Red Dragon dies? The other interceptors die and de-index or?
I'm not sure I understand that, but maybe I've already done that. All variables like CarrierTrained and the InterceptorArrayGroup (more) are pointing to the corresponding to an index, if you're trying to reference to a every from the intereceptorgroup with a variable then don't, since you can just pick every unit in the group and do what you want with them.OK, I guess the integer with an array means the same mistake as before but how will I be able to make a specific integer for this specific chain (carrier and its interceptors)
Why this? It wasn't necessary in the non-MUI version or any loops I've made for it?
Set CarrierLoop = (CarrierMaxIndex + 1)![]()
Why not loop integer after =?
![]()
![]()
![]()
![]()
![]()
Set CarrierInterceptorIndexInteger[InterceptorDieLoop] = (CarrierInterceptorIndexInteger[InterceptorDieLoop] - CarrierInterceptorIndexInteger[InterceptorDieLoop])![]()
![]()
![]()
![]()
![]()
![]()
Set InterceptorMoveOrderInteger[InterceptorDieLoop] = (InterceptorMoveOrderInteger[InterceptorDieLoop] - 1)![]()
![]()
![]()
![]()
![]()
![]()
Set InterceptorCarrierPositionItgr[InterceptorDieLoop] = InterceptorCarrierPositionItgr[InterceptorDieLoop]![]()
it isn't necessary but makes the loop exit when we found which carrier casted the spell, so if we know the [index] we do other actions and make it exit loop so it doesn't need to check more indexes and conditionsWhy this? It wasn't necessary in the non-MUI version or any loops I've made for it?
now it's fixed.
I wishFixed.
Well, you didn't have that so Interceptor Clear MUI didn't even run because the 2nd index of the group didn't even exist XDNow my question is... did you initialize the groups? InterceptorArrayGroup[some high value]? Otherwise, in a map initialization trigger do it:Because you can't add units to a group that doesn't even exist.
Custom Script: call set udg_InterceptorArrayGroup[loop] = CreateGroup()
But I have no such problem with the shield triggers, possibly because I only use one unit group where all shield bearing units are included?Note that array unit groups and similars like player groups are NOT initialized, meaning only the first index is, if you want to use more indexes then increase the size of the variable on the variable dialog:
Obviously, why I seek help.I still think you're kind of lost in all of this dynamic indexing logic xD
Hey, thanks again!Any way, It seems finally work 100% after playing around.
Hmm, I have this trigger and it kills all my spiders instead of the one actually close to the target:3: Yes, because pick every unit action has "Kill - Picked Unit" and that will "pause" the actions queue and fire again because the event is "A unit dies", and then it fires all those unnecessary actions.
SL_Loop_Integer as the name suggest, is a loop integer. So, if you notice the loop trigger, it is used there.Alright, so i followed this guide and its incredible in so many ways and i have now learnt way more than i had anticipated..
Im hoping someone still looks at this and might be able to help me, since there is 1 thing i just cannot fathom.
Im guessing its an integer variable, but what is its initial value? when is it set? where and how does it stay "above 0" when i can only see that we remove 1 from the value, but never set it up again? = (SL_Loop_Integer) ??
Is it just an integer with an initial value of 1 or smth?
Yes thanks i got that much, so the variable itself, what is its initial value?SL_Loop_Integer as the name suggest, is a loop integer. So, if you notice the loop trigger, it is used there.
For SL_Loop_Integer from 1 to X means that the value for the variable will Loop from 1 to X
Initial Value of SL_Loop_Integer is 0 of Integer type.Yes thanks i got that much, so the variable itself, what is its initial value?
I understand its purpose but not if i need to do anything but create it?
Thank you very much!Initial Value of SL_Loop_Integer is 0 of Integer type.