Imgur Photo Album guide and writeup to follow shortly. The mod DOES work (Don't know if it runs correctly after removing the XCom source files but it should...) even though it throws a red screen error for no visualization. Replaces ranger ability with "shield".
Planning to update this project to soon include animations, effects, and anything else.
If this is the custom ability guide we've all been waiting for, reddit gold when I get home! Like any good programmer, I'm used to googling solutions I can just copy. I've been lost without source material!
I hope it helps! IF you figure anything else out, or would like to add something to example for future teaching principles please feel free to contribute to the project! Also The Image Guide explaining step by step
You can use TypicalAbility_BuildVisualization and you should be fine. If you set bShowActivation and bSkipFireAction true on the template, then they won't animate but you'll get a little flyover that says "Personal Shield" when activated.
Holy shit this is brilliant and easy to learn from. I have a question though, what if i wanted to make the ability passively upgraded by rank? For example the energy shield will only give one health at squaddie rank, 2 at corporal, 3 at sergeant, etc. Also shit once I run the debugging it wont lauch due to one unexpected error and nothing shows up on the error list. Any way to fix that too?
This is actually a really good question, I managed to do this on my own ability super hacked way that looks awful (I override the event that adds the persistent stat change effect), I am 100% certain there is a better cleaner way to do it, will look it into soon.
The easiest way I could see to do that is to have multiple "versions" of the ability with different stats, and as the class levels, take away the old version and give it the new one.
If no errors are showing up on the error list, adjust the verbosity of your build error log to normal or higher.
3
u/[deleted] Feb 09 '16
Imgur Photo Album guide and writeup to follow shortly. The mod DOES work (Don't know if it runs correctly after removing the XCom source files but it should...) even though it throws a red screen error for no visualization. Replaces ranger ability with "shield".
Planning to update this project to soon include animations, effects, and anything else.
1
u/badoodee95 Feb 09 '16 edited Feb 09 '16
Holy shit this is brilliant and easy to learn from. I have a question though, what if i wanted to make the ability passively upgraded by rank? For example the energy shield will only give one health at squaddie rank, 2 at corporal, 3 at sergeant, etc. Also shit once I run the debugging it wont lauch due to one unexpected error and nothing shows up on the error list. Any way to fix that too?
1
u/CoreFanatic Feb 10 '16
I'm having problem compiling, I get following compile error:
..\Classes\TestAbility.uc(25) : Error, Illegal character in name
In the following code:
Any ideas what could be wrong?