Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
New forum theme up and running!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
CMS problems
« previous
next »
Print
Pages: [
1
]
Author
Topic: CMS problems (Read 1843 times)
Leon_1990
Exemplar
Posts: 1,408
CMS problems
«
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
Logged
Sephiroth rocks
Acolyte
Posts: 479
(No subject)
«
Reply #1 on:
June 22, 2005, 10:58:40 AM »
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!)
Logged
Leon_1990
Exemplar
Posts: 1,408
(No subject)
«
Reply #2 on:
June 22, 2005, 01:05:41 PM »
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)
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
CMS problems