MUNINN'S PROFILE
Muninn
2233
Programmer. Amateur Author (non-published, so nothing really to be impressed over). Game Designer.
Has many stories to tell you, and games to give out. If only there were enough time to finish them all...
Has many stories to tell you, and games to give out. If only there were enough time to finish them all...
Search
Filter
Fable of Heroes II: The Dark Ritual
There's a random door on the first floor of the castle at Drayn. Entering it leads to an underground area, and upon coming up you find yourself in a snowy area (Syra?) with no teleport crystals and enemies that only take 1 damage and kill you in one attack. I assume this is probably a bug?
Droid Age!
I'm getting this error when I try to start the program:
author=Error
Couldn't start:
"D:\Games\RPGMaker\2015-10_No-RPGMaker-Entries\Droid Age!\Droid Age!\WindowsNoEditor\MyThirdPersonGame\Binaries\Win32\MyThirdPersonGame.exe"
CreateProcess() returned 2.
A child's dream
Uchioniko
Disclaimer: I've not actually worked in RPGMaker, so this is going to be extrapolated based on what I know as a programmer.
What's probably happening is that each variable can only store values that are integers. (If RPGMaker variables can store non-integral values, than this entire post is likely useless). Most programming languages that don't automatically cast variables to a type capable of handling nonintegers will simply drop the problematic component when necessary. Thus, code such as this:
Will simply drop the decimal, and be functionally identical to code such as this:
The problem in your code is that you perform the necessary math, store the result of said math in a variable (which results in the decimal component being eliminated as per the "floor" command), then call the desired operation on the resulting variable, which has no additional effect because the decimal component has already been eliminated. If you change the code to something like this:
Or even shortening it further:
The code should give you the proper output.
What's probably happening is that each variable can only store values that are integers. (If RPGMaker variables can store non-integral values, than this entire post is likely useless). Most programming languages that don't automatically cast variables to a type capable of handling nonintegers will simply drop the problematic component when necessary. Thus, code such as this:
$example_variable = 2.5
Will simply drop the decimal, and be functionally identical to code such as this:
$example_variable = 2
The problem in your code is that you perform the necessary math, store the result of said math in a variable (which results in the decimal component being eliminated as per the "floor" command), then call the desired operation on the resulting variable, which has no additional effect because the decimal component has already been eliminated. If you change the code to something like this:
#At the beggining of each battle, each character has TP equal to one-quarter of that charater's level. Rounded up? $game_variables[1] = ($game_actors[17].level / 4).ceil $game_actors[17].tp = $game_variables[1] $game_variables[1] = ($game_actors[18].level / 4).ceil $game_actors[18].tp = $game_variables[1]
Or even shortening it further:
$game_actors[17].tp = ($game_actors[17].level / 4).ceil $game_actors[18].tp = ($game_actors[18].level / 4).ceil
The code should give you the proper output.
Uchioniko
author=Marrend
I've been fiddling with the "floor", "ceil" and "round" functions to this end. However, they all seem to do the same thing? Not sure what that means.
It seems that "Floor" should always eliminate a decimal component by rounding down, "Ceil" should always round up, and "round" should go to whichever is closer.
What's the exact line of code that you're working with?
Primeforce
author=Roy
Font not working....can talk to people but nothing when accessing menu. Also when opening any chest, the game freezes.
Did you download the extra font that Lymment posted on the previous page of comments? I used to have the same problems that you're having, but getting that font fixed them.
Primeforce
author=Clareain_Christopher
Also fix an error in the scene after the fire boss.
The game's missing a "Zelda Twilight Princess Snow Peaks" BGM.
How'd you get there? I thought I'd explored everywhere except for the part that I mentioned earlier where the game was crashing.
Primeforce
New Error: Upon leaving the "Hellion Temple B7" map in a northward direction, game crashed with the following error:
Unable to find file Graphics/Characters/!Crystal.
Unable to find file Graphics/Characters/!Crystal.
Primeforce
Primeforce
Pages:
1