Anyway, I have been a bit busy with some other unrelated and related things. I've been helping some SWGEmu staff members fix some things concerning TC:Nova just so the players can have something to do (look for it in the following weeks), but recently I have had a chance to sit down and play around with ANH code!
I decided to implement Force Healing skills, well to start it off, really. Since my first project in ANH was working with medic, I thought that it would be a bit easier since I'm a bit used to healing. Kronos has done a wonderful job with medic thus far, please give him salutes when you can.
For healing, the first thing I did was create a jedi skill manager of sorts, that I will be utilizing in the future (possibly) for other jedi-related skills. The first function in this manager is dealing with Force Healing of self damage.
Now, if you never played a jedi or just forgot, healing is very vital to a jedi. Self heals concern the 1st tree in Force Healing (one of the 5 hidden force discipline professions.) While it doesn't use stimpacks, each heal a jedi makes takes points from their force power bar, so use with caution!
Now, back to the coding side. At first I was perplexed on how to implement this. I then used a switch for each heal, but unfortunately using the opcode for each command did not work. So I just assigned a simple integer (number for you non coding folk) to each heal skill, to do different things.
Think of switches like a router switch. There's 8 jedi heals, 2 for each pool, and 2 all pool heals. healallself1 would be number 1 on the switch, if they did another skill (healhealthself2 maybe?) then you (or the server in this case) would flip the switch to that corresponding number!
Also, I learned more indepth how to send system messages to the player and how to assign the vars. In force healing self now, it utilizes the stf for each component of the message! There's 2, one is the main message which holds the %TO var, and the %TO var message itself, which changes depending on what pool you're healing!
Without further audeu, I leave you a YouTube video of how it all looks ingame!
http://www.youtube.com/watch?v=D1KgX2NdOec
As time progresses I am learning more and more with ANH's core, and C++ in general! Here's hoping more code's on the way!
(Note: For those of you interested in looking at the code, here's my git branch of it, pending review: http://github.com/swganh/mmoserver/tree ... DamageSelf )

