I'm working in 2.5.1, creating my own tileset using Dance of Remembrance (Hybrid) as a base. My overall objective, is to create a form of action-RPG. (Like say, Secret of Mana.) To do this, requires a larger amount of scripting.
I've developed a system which works for switching character appearances and stats, though I haven't bothered to set up individual items and abilities yet. And I've created a script which sets up the HP and MP of each character to be randomly selected upon start and increase by a random amount when they level up.
My current trouble is translating damage between Link and the character. Perhaps some code would shed more light on this. I'm having to store it elsewhere, since the code is so long. This is a test quest, with the code in the buffer.
RPG Code Test Quest
I know that it is rather long and complex, but for the most part it works. The only thing which doesn't seem to function is the changes to the character's HP and MP. I can tell they're getting hurt (the sound is made) but the current HP doesn't alter.
Strange as it may sound, right now it appears that Link is never being hurt, even when he has four hearts and is being struck by a Death Knight. Since I don't manipulate Link->HP at any point this puzzles me.
This is obviously only the beginning of what will likely be a long and complex project, for which I will likely have many requests; so I'll probably place them all here. Right now, I'd be satisfied with making the character's actually take damage correctly.
Edited by ywkls, 07 November 2015 - 09:11 AM.