So y'all remember how i made things like variable cells, so that you can set a character into a variable based on what the value is?
for example if you make <Var Cell: 15> and variable 15 = 30
then it'll display actor 30 there. otherwise it functions like a normal actor placement cell.
I just added one for <Switch Cell: x>
So what this does is, if the switch x is ON, then it'll display the actor there.
for instance:
<Switch Cell: 18>
This will display actor 18 if switch 18 is turned on.
This works great for big battles using FlippelyFlips Large Troops script(see my earlier post to fix it)
I plan on having a 50 enemy battle, versus the player's 5 character party.
What I can do now, is make a bunch of Random <Switch Cell: x> cells, and make it so if you recruit characters as mercenaries for the battle, they'll show up.
Just wish <Enemy Cell: x> would pull the enemy with the id x
Like <Enemy Cell: 129> would pull the enemy from your enemies list in.
This would let you make large battles without any addon scripts.
<EnemyID Cell> could be added then...
I'm gonna look into seeing if this is possible
EDIT: Here's my full If statement for checking what kind of cell it is:
Spoiler: Spoiler
Code:
if (note.match(/<Enemy Cell>/i)) {
data.type = "enemy";
} else if (note.match(/<Enemy Cell\s?:\s?(.+)>/i)) {
data.type = "enemy";
data.fixed = Number(RegExp.$1);
} else if (note.match(/<Actor Cell>/i)) {
data.type = "actor";
} else if (note.match(/<Actor Cell\s?:\s?(.+)>/i)) {
data.type = "actor";
data.fixed = Number(RegExp.$1);
} else if (note.match(/<Var Cell\s?:\s?(.+)>/i)) {
data.type = "actor";
var varcellval = Number(RegExp.$1);
data.fixed = $gameVariables.value(varcellval);
} else if (note.match(/<Switch Cell\s?:\s?(.+)>/i)) {
data.type = "actor";
var switchVal = Number(RegExp.$1);
var result = $gameSwitches.value(switchVal) ? switchVal : 0
data.fixed = result
}
The awesome thing is if in any of these:
<Var Cell: x> <Actor Cell: x> <Switch Cell: x>
if the data.fixed = 0, it'll function like a normal actor placement cell, which makes it easy to zero these spots out (Just set the respective variables to 0 and set the switches to OFF)
EDIT 2: I understand I probably shouldn't be editing the javascript, but I don't really plan on updating my LETBS scripts until at least .80,
I'm so lazy that I really don't want to have to redo my 200+ enemies' configurations to use the new format of sprite image config.