Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Leon_1990 on June 22, 2005, 10:37:05 AM
-
ok, whilst coding my CMS, I have come across a few problems...
mainly how to show the hero's HP in figures.
I can't seem to manage it without coding about 9999 pages :S
-
It should look like this I think:
(Paralel process event on CMS map)
Set var ####:hero1 HP 1's equal to Hero 1's HP.
Set var ####:hero1 HP 10's equal to Hero 1's HP.
Set var ####:hero1 HP 100's equal to Hero 1's HP.
Set var ####:hero1 HP 1000's equal to Hero 1's HP.
var ####:hero1 HP 1's modulus 10
var ####:hero1 HP 10's modulus 100
var ####:hero1 HP 10's / 10
var ####:hero1 HP 100's modulus 1000
var ####:hero1 HP 100's / 100
var ####:hero1 HP 1000's modulus 10000
var ####:hero1 HP 1000's / 1000
Set var ####:hero1 total HP 1's equal to Hero 1's total HP.
Set var ####:hero1 total HP 10's equal to Hero 1's total HP.
Set var ####:hero1 total HP 100's equal to Hero 1's total HP.
Set var ####:hero1 total HP 1000's equal to Hero 1's total HP.
var ####:hero1 total HP 1's modulus 10
var ####:hero1 total HP 10's modulus 100
var ####:hero1 total HP 10's / 10
var ####:hero1 total HP 100's modulus 1000
var ####:hero1 total HP 100's / 100
var ####:hero1 total HP 1000's modulus 10000
var ####:hero1 total HP 1000's / 1000
and do that for each char (with other variables of course)
Then make a new event on the CMS status mep with a char that look like a 0 and set the trigger to be if variable Hero1 HP 1000's is 0. then make another page with the number 1 and so on. Then make an event for each digit in total and current HP for each character (this's why I don't make a costum status menu!)
-
but wont you end up having to do 9999 pages for the units that way? (I haven't tried what you gave me, im just assuming that's what I've done)