I am trying to make a set of battles using past enemies but I do not want EXP or Items to be earned from this fight. Is there a solution to this?
Can I toggle something on turn 0 that makes the enemies here not drop their loot?
I am trying to make a set of battles using past enemies but I do not want EXP or Items to be earned from this fight. Is there a solution to this?
Can I toggle something on turn 0 that makes the enemies here not drop their loot?
I think you could do this with a Script command on turn 0. Set the battle event page condition to Turn 0, set Span to Battle, and put this in the Script command:
$gameTroop.members().forEach(enemy => {
enemy.exp = () => 0;
enemy.makeDropItems = () => [];
});
It only changes the enemies in that fight, so your other battles and the enemies in the database aren’t touched. It should work in both MZ and MV. If you want gold gone too, add enemy.gold = () => 0; inside there as well.
The other way would be to duplicate those enemies in the database with 0 EXP and no drop items, then use the copies in these troops.
I forgot to specify vxace mb
In the RM system, what a player receives after winning a battle typically depends on the settings configured under the “Enemies” section.
You could simply create an enemy that offers no rewards to the player, or use the “Abort Battle” command to force the battle to end.
Alternatively, you could use the method of switching the enemy.
VX Ace runs on Ruby, so the script from before won’t work there, but you can still do the turn 0 toggle with a switch. Open the Script Editor (F11), insert a new slot under Materials and paste this in:
class Game_Troop < Game_Unit
NO_REWARD_SWITCH = 10
alias no_reward_exp_total exp_total
def exp_total
$game_switches[NO_REWARD_SWITCH] ? 0 : no_reward_exp_total
end
alias no_reward_gold_total gold_total
def gold_total
$game_switches[NO_REWARD_SWITCH] ? 0 : no_reward_gold_total
end
alias no_reward_make_drop_items make_drop_items
def make_drop_items
$game_switches[NO_REWARD_SWITCH] ? [] : no_reward_make_drop_items
end
alias no_reward_on_battle_end on_battle_end
def on_battle_end
no_reward_on_battle_end
$game_switches[NO_REWARD_SWITCH] = false
end
end
Change the 10 to a switch you aren’t using. Then in the troop’s battle event, set the condition to Turn 0 + 0 * X, set Span to Battle and use Control Switches to turn that switch ON. The switch turns itself back off when the battle ends.
If you still want them to get gold from these fights, just take out the gold_total part.