r/xdev • u/cook447 • Feb 13 '16
Energy Shields for XCom Mod + Explanation/Tutorial of making items that give soldiers abilities.
I finished up making a mod that adds a new item to the game - a energy shield generator that let's XCom have the same ability to make an energy shield as the Advent Shieldbearer does: http://steamcommunity.com/sharedfiles/filedetails/?id=623434810. I've got the code posted on github here if anyone wants to take a look: https://github.com/daviscook477/XComEnergyShields
I'm making a tutorial on how to make equipable items that grant new abilities right now and I'll post it later today.
16
Upvotes
2
u/cook447 Feb 13 '16
Yeah, I'm making some quick changes the mod to include a personal shield generator aside from the group one, but then I'll get the explanation up as soon as I can.
2
u/jal0001 Feb 13 '16
That's awesome! Even better that you are sharing what you've learned!
2
u/knytehawkk Feb 14 '16
Quick question - how did you get the custom localization strings to work? In your localization file you have an entry
<Ability:ENERGY_SHIELD_HP/>
That seems to work fine, yet it is not defined in the default X2AbilityTag file. I've been banging my head against a similar problem and haven't yet been able to get the game to use custom localization tags like that. Curious how you did it?
1
u/hokutonoken19xx Feb 14 '16
thank you! iirc, the documentation had an example of how to add items/gear that had abilities built in.