If (variable = x && notetag = 'this') ????
the syntaxe are not ok !
PHP:
if(variable===x&¬etag === 'this'){
//stuff
}
I know this, like I said, it wouldn't look exactly like that. Lol
I don't mind using simple notetags but it would stilll need to act like a multiline one. For example:
<this: 1, 2, 3, 4, 5>
<this: 2, 4, 6, 8, 10>
This would have to push the data from BOTH into an object. If it makes it easier for you guys to understand what I'm trying to do. I'm trying to push enemy actions based on a variable, and notetags (I already know how to push action Objects so they are counted in the list, I just need to figure out how to use notetags, then implement them into the code itself.)
I know there is '.meta', but from what I could read from other plugins, its mostly pre-made arguments, such as skill_id, etc etc.
EDIT:
Okay so I've figured out how to use notetags, kind of.
I have it:
<easy: 9, 3, 0, 0, 0> which is weird, because if I call: easy[0] you would think it would be 9, but it is the first space. Then the counting from the there gets a little ridiculous. But that is not the only problem I am having. If I push the values with easy[x] that correspond to the numbers in the array. It LOOKS like it pushes it, but the enemy just stops attacking. I know this works normal because if I change it to normal numbers it works fine.
Code:
(function() {
var diffSetting = 0;
//Enemy Actions
Game_Enemy.prototype.makeActions = function() {
Game_Battler.prototype.makeActions.call(this);
if (diffSetting === 0)
var enemy = this.enemy();
var easy = enemy.meta.easy;
this.enemy().actions.push(
{"conditionParam1":easy[13],
"conditionParam2":easy[10],
"conditionType":easy[7],
"rating":easy[4],
"skillId":easy[1]});
if (this.numActions() > 0) {
var actionList = this.enemy().actions.filter(function(a) {
return this.isActionValid(a);
}, this);
if (actionList.length > 0) {
this.selectAllActions(actionList);
}
}
this.setActionState('waiting');
};
})(); // DO NOT TOUCH
The other issue I'm having is it just keeps pushing it into the list, I need to figure out how to do it in battle start rather than by turn. (Which shouldn't be hard). I am assuming its not just going to push multiple lines of <easy: blah blah blah> either, so I'll have to do that as well.