Game Development Community

Mana System

by Stephen King · in Torque 3D Beginner · 10/16/2014 (3:27 pm) · 3 replies

Hello. I am trying to change a few things. I wanna change the Energy System into a Health System, I wanna implement a mana system that is similar to the health system. And I wanna implement a energy system in which jump/sprint will run off of. I know it would require editing the shapeBase source and header file as well as the player source file and probably more than that. I tried a few things and could only get to main menu and on enter would crash. I had to revert back to a backup. Those we the first changes I made to the source. So it's all the original code. So basically what I am seeing is if someone could give me a little pointer to exactly what I need to change and what not. I couldn't get much back from a search, plus I'd rather ask the question personally.

#1
10/16/2014 (5:50 pm)
If you're using Visual Studio, doing a 'find all references' on mEnergy or mDamageLevel (I think that's what the members are called) should give you an overview of how energy and damage are handled currently, and give you some ideas of what you'll need to add to make our own similar system.

If you fork the engine on GitHub and commit your changes to your own branch, we can review your code and make suggestions!
#2
10/16/2014 (6:16 pm)
Alright, thank you very much.
#3
10/17/2014 (1:36 pm)
I think I may post my code example around once done, after following every reference to energy. I see it's alot and I have implemented mana and changed the name to health. Yet, still there's so much more. I couldn't imagine the struggles of some people. lol