but there's an option in the spell tab in databse which allows you to chose wether it effects one or all enemies.
Not for Switch events, hence the point...
Well, for example... a skill that attacks each enemy, but not all at once (think PSI Thunder). The switch activates, and the spell is cast x number of times, hitting (or missing) an enemy each time.
In that case, for each enemy group you're going to have to make a seperate event. They'll all basically be edited versions of this kind of thing, though...
>Change Var: Var[xxxx: Random Monster Choice] Set Random: 0-1
>If Var[xxxx: Random Monster Choice] Equals 0 Then
>Show Battle Animation: Lightning: Monster 1
>Change Monster 1 HP: Some Value Here
>End If
>If Var[xxxx: Random Monster Choice Equals 1 Then
>Show Battle Animation: Lightning: Monster 2
>Change Monster 2 HP: Some Value Here
>End If
You just need to repeat this over as many times as you want the attack to hit, and remember to change the random choice so that it equals the right number of monsters and change the If statements so the right number are available... I guess that's kinda obvious. You could also use a loop rather than repeating the same thing over and over so you could reduce the number of things you need to change. Also, if you want the attack to hit a random number of times each time it is cast then you could modify the loop so that it happens a random number of times before dropping out. If you want something more like that I could show you that too.
Haha, I may well have to steal this idea...