Issue happens with the ''Zenvirzan'' script :/ division by 0
I don't have the graphic files to test it.
But the divided by 0 thing, if it's like trying to divide a variable like width or height when it's possible they could be 0 just change it to multiplication
divided by 2 | Multiply by 0.5
divided by 3 | Multiply by 0.33
divided by 4 | Multiply by 0.25
(something.width * 0.5)
remember to write decimals with 0 in front because ".5" is a syntax error.
edit:
Oh and that fact that it's trying to draw something on screen that has 0 width or height could be a clue.
i didn't have this issue before and it's the SP bar, i can send you the graphics files if you want.
Reeeeeeeee
I keep finding stuff wrong with the battle system
Both Defend and Escape didn't work, crashing the game. I think I fixed it.
Then I discovered if you cancel out from target-select you don't go back to the command window, you're just stuck. So I'm looking into that now.
Wow really thanks guys for the help, it's well appreciated :D
Also ZenVirZan since he's doing the battlescript perhaps you could try the Time HUD with the Daily Life script...
And perhaps have a way to show ''Region Of Map'' instead of ''Map Name'' in location...If you want ^^.
No, I don't think I fixed the root of the problem.
Like, 'defend' and 'escape' weren't ending the turn. The command window comes up for same character again and selecting anything the second time crashed the game; unless you pressed 'Right' then it would go to the next character and perform the command you selected the first time.
So I just rigged it in a way that made sure an action was made and the turn ended.
I got the command window to come back after canceling from the enemy select.
But when I cancel an attack and choose defend, I'm getting the same error message again 'undefined method "current_action" for nil.'
And if I try to select 'escape' after canceling an attack, it doesn't do anything. Like it's not coded to do anything.
I'm thinking by canceling an attack the game script returned to an older method, because there are measures in place to not do anything in instances of nil.
But yet the script editor shows it stopped on the aliased method. So I'm not sure what's going on.
Remove the Old ZenVirZan Script?
Regions work fine! Thanks.
Now for the Time HUD and the Battle system...
Coyote would it be easier for you to make a new one aslong as i have the same features.?
All i need is Active Time Bar (Based on the Speed Stat (Agility in RMXP's stats)
I need it to calculate turns (so that i can script events that happen at the turn i want it to.
It needs to handle ''Double Attack'' (Which I've made a skill+ common event for a character) : Common event raises speed to max, perform attack, twice (forced action) then reset speed to normal... Idk if theres a better method for a skill to do that.
If you can fix this one then everything is fine too,
I added the Battle System Script,
Skills/Stats/Party AND battle crashes line 40 div by 0 error ZenVirZan (the new one, unless I'm supposed to have the old ZenVirZan Script in it too?)
# Draw sp bar
bitmap = RPG::Cache.acms_menusprite("SP")
rect = Rect.new(x + BAR_PADDING, y, (width - 2 * BAR_PADDING) * actor.sp / actor.maxsp, bitmap.height)
self.contents.stretch_blt(rect, bitmap, Rect.new(0, 0,
bitmap.width * actor.sp / actor.maxsp, bitmap.height), opacity)
bitmap = RPG::Cache.acms_menusprite("Gauge")
rect = []
Is always the div by 0 error :/
idgi if it works on your end, whats stopping mind from working?
It must be that one of your characters has 0 max sp
You can change line 104 of Zen's script to
draw_actor_sp(@actor, 64, 64, 192, true) if @actor.maxsp != 0
the character will be missing the SP guage in this case.
Or just make sure the character has maxSP. [001/001 SP]
You could put in other safe guards for other unusual cases of actors with 0 maxhp or no name. But then, just don't do that.
By all means you are correct O_O Thanks alot for your support here and helping out, you also made the battle script less buggy too :D
Now all i need to do is figure out Time HUD and Lock/Unlock party members in the party page and I'm good to go :O
It looks like the party menu has a "mandatory" array that's like [true,false,false,false,false]
But there's no comments or anything so I have to look around to understand how it works.
Stat distribution doesnt give me points on level up
ALso when i level up i gain +1random stat in ever stats, which i dislike completely.
theres no (#tag) to any of my weapons, just raw names, and they are single attack weapons...
and theres no way to tell if i have a status effect or not.
I'm not sure how to replicate it since I don't know what weapons you're using.
Btw, were you able to go to the equip screen from the menu? I had to add an argument in one place so it wouldn't crash. There's so many scripts using different versions of the same method; It's like untangling Christmas lights when something isn't working.