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:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
Easy CBS HP system
« previous
next »
Print
Pages: [
1
]
Author
Topic: Easy CBS HP system (Read 2483 times)
Pythis
Setsujin - Dark Crystal
Acolyte
Posts: 435
I..am Pythiros and I will kill you..
Easy CBS HP system
«
on:
August 19, 2005, 03:11:48 AM »
If a word is surrounded by *'s that means its a variable, I names it that you can name it waht you want.
Go into to commen events and make an event called HP or whatever. Make it a parallel process. In the event commands make a branch(Fork in RM2k) Make it If *Heros HP* is 10 or whatever number your Heroes HP has when its full. In paint or whatever picture program you use make an HP Bar. make one for each time the heroes HP goes down by a monster attack the hero. In the branch make a show picture event with the coordinates 105 and 5. Make another branch if the heroes HP is the number below the max. Hopefully by now you've figured out you have to make an HP bar for each loss of HP. In the picture event put the next bar. Do one for each loss of HP. Heres what it should look like
Logged
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #1 on:
August 19, 2005, 03:36:52 AM »
No offence, but thats a very poor way of doing it. That would only work if the hero's hp was a specific amount, and you'd have to a new one for every level the hero could be on.
A much better way to do it is by the % of life the hero has left. Lets say you have 10 pictures for the hero hp meter, you'll need to split the hero's hp's % into 10 groups. Basically if its 0% it would be an empty meter, if it was 10% it would be an almost empty meter, and if it was 100% it would be a full meter.
So heres what you would have to do. For all you algebra fans, you would have to cross multiply.
-Make a variable 'var1' and set it equal to the hero's current hp.
-Multiply 'var1' by 10 [10 means there it will split the hero's hp's % into 10 groups, you can change this number for however many groups you want.
-Devide 'var1' by the hero's total hp.
Then you make all the conditional branches under that, heres what it'll look like. (variable 221 was set to the heros current hp, I had 30 groups, and variable 228 was set to the heros maximum hp.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
Pythis
Setsujin - Dark Crystal
Acolyte
Posts: 435
I..am Pythiros and I will kill you..
(No subject)
«
Reply #2 on:
August 19, 2005, 03:45:32 AM »
...This is for a CBS right? By the way it works fine. In my game the heros max HP is 10 and when the hero is attacked the bar goes down. I would show you the test of the bse of the system but I dont know how to show zip files.
Logged
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #3 on:
August 19, 2005, 03:52:50 AM »
Oh, I see. Yeah, your system would work fine you your game then
I just dount many people have games with hero's only having 10 hp the whole time.
And yeah it was for a cbs, though now that I think about it, you're system would be a lot easier to use for an ABS where numbers don't really matter. The one I posted is probably best for a general purpose cbs.
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
Pythis
Setsujin - Dark Crystal
Acolyte
Posts: 435
I..am Pythiros and I will kill you..
(No subject)
«
Reply #4 on:
August 19, 2005, 04:10:08 AM »
It should be easier, I thought of it and Im not a very good coder.
Logged
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
Tutorials
»
Easy CBS HP system