I learned a tad bit of actionscript a few decades back but thats about the extent of my coding know how
I'm having a horrible time with a straight forward way to handle this.
I can make what I want work after battle with conditional tree's to and using straight text windows but that is cumbersome and pretty ridiculous with a system built to show loot gained
I've tried multiple variations with both
$Game_Enemy.prototype.makeDropItems
and
BattleManager._rewards.items
BattleManager.displayDropItems();
BattleManager.gainDropItems();
both of them from both just a non battle map screen, and from inside of combat via eventing or script on the Battle Event page in the troops tab.
for each of them I tried setting up arrays(badly probably)
$gameVariables.setValue(35, []);
$gameVariables.setValue(35)[0] = [];
$gameVariables.setValue(35)[1]= [];
$gameVariables.setValue(35)[2]= [];
$gameVariables.setValue(35)[3]= [];
$gameVariables.setValue(35)[0][0] = 3;
$gameVariables.setValue(35)[0][1] = 7;
$gameVariables.setValue(35)[1][0] = 2;
$gameVariables.setValue(35)[1][1] = 41;
$gameVariables.setValue(35)[2][0] = 1;
$gameVariables.setValue(35)[2][1] = 6;
or objects via script (had no clue what var name any object might have but saw others just input a 2 variable input of itemType(1 2 3) and itemID(# on list))
var curShove = [];
var curItem = {1, 7}; //these will set dynamically but static to test concept
var curWpn = {2, 41};
var curArmor = {3, 7};
var curEpic = {3, 108};
curShove.push(curItem);
curShove.push(curWpn);
curShove.push(curArmor);
curShove.push(curEpic);
$gameVariables.setValue(35, curShove);
any point in a helpful direction would be great, or if the dog wont hunt thats useful info too.
******
solved
******
I'm dumb, didnt think about making $Game_Enemy.prototype.makeDropItems a function with a return, way outta practice.
I'm having a horrible time with a straight forward way to handle this.
I can make what I want work after battle with conditional tree's to and using straight text windows but that is cumbersome and pretty ridiculous with a system built to show loot gained
I've tried multiple variations with both
$Game_Enemy.prototype.makeDropItems
and
BattleManager._rewards.items
BattleManager.displayDropItems();
BattleManager.gainDropItems();
both of them from both just a non battle map screen, and from inside of combat via eventing or script on the Battle Event page in the troops tab.
for each of them I tried setting up arrays(badly probably)
$gameVariables.setValue(35, []);
$gameVariables.setValue(35)[0] = [];
$gameVariables.setValue(35)[1]= [];
$gameVariables.setValue(35)[2]= [];
$gameVariables.setValue(35)[3]= [];
$gameVariables.setValue(35)[0][0] = 3;
$gameVariables.setValue(35)[0][1] = 7;
$gameVariables.setValue(35)[1][0] = 2;
$gameVariables.setValue(35)[1][1] = 41;
$gameVariables.setValue(35)[2][0] = 1;
$gameVariables.setValue(35)[2][1] = 6;
or objects via script (had no clue what var name any object might have but saw others just input a 2 variable input of itemType(1 2 3) and itemID(# on list))
var curShove = [];
var curItem = {1, 7}; //these will set dynamically but static to test concept
var curWpn = {2, 41};
var curArmor = {3, 7};
var curEpic = {3, 108};
curShove.push(curItem);
curShove.push(curWpn);
curShove.push(curArmor);
curShove.push(curEpic);
$gameVariables.setValue(35, curShove);
any point in a helpful direction would be great, or if the dog wont hunt thats useful info too.
******
solved
******
I'm dumb, didnt think about making $Game_Enemy.prototype.makeDropItems a function with a return, way outta practice.