here's an example chunk...
a = $data_system.party_members[0]
if $game_variables[13] == 7
$game_actors[a].element7 += 1
end
if $game_variables[13] == 8
$game_actors[a].element8 += 1
end
if $game_variables[13] == 9
$game_actors[a].element9 += 1
end
considering I've got element1-18,
and each one is about to be revised to look like this
a = $data_system.party_members[0]
if $game_variables[13] == 1
$game_actors[a].element1 += 1
end
$game_actors[a].mod_aff -=
$game_actors[a].element1
I really need a way of cutting it down. What's really bothering me is I don't want characters spending points they don't have, but I can't figure out how to put in a conditional branch that asks if player 1's aff attribute
$game_actors[a].aff
is equal to or higher than than player1's element attribute
if i could stick this
a = $data_system.party_members[0]
inside the conditional script box along with the statement
$game_actors[a].aff >= $game_actors[a].element1
it would simplify the code. But I think I'm babbling at this point, as that's unrelated to your question and I apologize. Usually by the time I get a reply to a question i've already run into another problem.