- Joined
- Jul 19, 2010
- Messages
- 309
Hello! I'm working on something and will post the answer here if I find it - but someone else may already have it. Does anyone know how I would structure a loop that tracks a spell ( Spell[spells_total] ) but also tracks a variable number of special effects ( 4 ) that are attached to said spell? I believe I know how to write it, but I'm having trouble deindexing it (More specifically: Handling items in the subloop).
For Each LoopCount from 1 - Spelltotal
Deal damage of spell
That's my basic idea, if that's even readable to anyone. I only listed the special effect since that's the only thing having problems in my current iteration. Thanks for checking in!
For Each LoopCount from 1 - Spelltotal
Deal damage of spell
|> For each Subloopcount from LoopCount to (LoopCount + Subloopcount)
|> Destroy Special Effect [LoopCount +SubLoopCount]
|> Exit when (LoopCount + SubLoopCount) = (LoopCount + EffectsOnThisSpell[LoopCount])|> Destroy Special Effect [LoopCount +SubLoopCount]
That's my basic idea, if that's even readable to anyone. I only listed the special effect since that's the only thing having problems in my current iteration. Thanks for checking in!