Jump to content

Restoring Ability Charges


Gawesome

Recommended Posts

I'm just making my first attempts at ability/class modding, so apologies if this is a dumb question with an answer I should have found already.

 

I'm trying to see if there's a way to grant a charge to a charge-based ability. I'd like to make a passive ability that does the following: If the player begins an attack from out of enemy LOS (like Shadowstrike, or via Concealment), and kills that enemy during his turn, he will be granted one extra charge to his Conceal ability. Conceal should only ever have a max of 1 charge.

 

I've spent a number of days combing through scripts and trying to get a sense of how everything works, which is slow-going because I'm not familiar with C++ or Unrealscript, but... I'm making progress.

Link to comment
Share on other sites

I'm pretty familiar with the XCOM wiki (having written up much of it), and I do not recall anyone attempting anything like "charges". Which is not to say they might have been something in an "R&D" thread I missed, but I followed those pretty closely as they led to most of the wiki articles. All I can suggest is you take a look at the article "Projectile and damage functionality". You need to tap into "step 5" from that article's overview.

 

Once you have digested that, ask again and I'll see if I can point you to anything you need more info on.

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...