I was wondering if there is a character/letter limit for RPG maker vx ace. I hope there is no limit to this, at least 1 million limit. It takes over 2,000 characters in one conditional branch.
[ACE] Conditional Branch script limit
RPG Maker VXAce Supporteverything has limits
but if you say that you need 2000 characters for one conditional branch, then you're doing something wrong. I strongly suggest that you start rethinking your logic
and if you need help with that, post an example of your long conditions and we will try to simplify them for you.
but if you say that you need 2000 characters for one conditional branch, then you're doing something wrong. I strongly suggest that you start rethinking your logic
and if you need help with that, post an example of your long conditions and we will try to simplify them for you.
Well, that's 2000 characters in total. Here are my examples:
I use Victor's Pixel Movement script. Ignore [id], imagine those as [5].
I assumed as much, because that is the only way how anything would be able to that many characters.
and that is easy to bypass and becomes better readable in the process:
simply use multiple conditional branches.
two nested conditional branches means that the innermost process is only executed on both conditions being true (same as &&)
two independent conditional branches handle similar to OR (||)
You only have to take care with sorting the conditions to stay logically together and you can split that into several conditional branches.
and that is easy to bypass and becomes better readable in the process:
simply use multiple conditional branches.
two nested conditional branches means that the innermost process is only executed on both conditions being true (same as &&)
two independent conditional branches handle similar to OR (||)
You only have to take care with sorting the conditions to stay logically together and you can split that into several conditional branches.
At least one direction like that could be enough. If I did hit the limit, I'll insert another conditional Branch and post on this website for the character cap.
By the way, I used Notepad to calculate before copy-pasting.
I would like to close this for now.
By the way, I used Notepad to calculate before copy-pasting.
I would like to close this for now.
For the record, you can condense this down to
Ruby:
p = $game_player; ev = $game_map.events[id]; [0, 0.125, 0.250, 0.375, 0.500, 0.625, 0.750, 0.875].any? { |offset| p.x == ev.x - offset || p.x == ev.x + offset } && p.y - 1 == ev.y && ev.human?
For the record, you can condense that down as a new script
Then use a script call
Ruby:
def long_condition_call(id)
p = $game_player
ev = $game_map.events[id]
return [0, 0.125, 0.250, 0.375, 0.500, 0.625, 0.750, 0.875].any? { |offset| p.x == ev.x - offset || p.x == ev.x + offset } && p.y - 1 == ev.y && ev.human?
end
Ruby:
long_condition_call(5)
Is it true that too many characters say 2000 add up more KB than 50 characters? As in KB, I mean storage size/kilobytes.
This is a real discussion.
This is a real discussion.
Original thread: https://forums.rpgmakerweb.com/threads/ace-conditional-branch-script-limit.166665/