Jump to content
Sign in to follow this  
ravage

Set PlayerSpecialPower's countdown timer in game?

Recommended Posts

I'm trying to set SpecialPower's countdown timer backward in game, with LUA code:

ExecuteAction("NAMED_SET_SPECIAL_POWER_COUNTDOWN", self, "SpecialPowerGDI_APCMinefield", 10);

it works fine with UnitAbility like APCMinefield, but doesn't affect PlayerSpecialPower like Ioncannon, nuke, etc. i guess it may has something to do with GDIPowerStore and/or PlayerSpellBook so i applied the same codes ---SpecialPower XMLs, and LUA scripts --- to them too, still not working. any ideas?

Share this post


Link to post
			<SpecialPower
				id="ModuleTag_Curse"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				UpdateModuleStartsAttack="true" />
			<CurseSpecialPower
				id="ModuleTag_CurseUpdate"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				TriggerSound="NOD_Redeemer_RageGeneratorMS"
				CurseFX="FX_TEMPLarge"
				CurseFactor="1.0">
				<AffectObjectFilter
					Relationship="ENEMIES NEUTRAL"
					Rule="NONE"
					Include="SUPER_WEAPON">
				</AffectObjectFilter>
			</CurseSpecialPower>

"Curse" is a leftover fom BFME that resets the targets specialpower. "CurseFactor" is the percentage, ie 1.0 sets it back by 100%, 0.5 sets it back to 50% (afaik).

 

Not sure how much it helps by whatever your traying, but it might be usefull.

Share this post


Link to post
22 hours ago, Stygs said:

			<SpecialPower
				id="ModuleTag_Curse"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				UpdateModuleStartsAttack="true" />
			<CurseSpecialPower
				id="ModuleTag_CurseUpdate"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				TriggerSound="NOD_Redeemer_RageGeneratorMS"
				CurseFX="FX_TEMPLarge"
				CurseFactor="1.0">
				<AffectObjectFilter
					Relationship="ENEMIES NEUTRAL"
					Rule="NONE"
					Include="SUPER_WEAPON">
				</AffectObjectFilter>
			</CurseSpecialPower>

"Curse" is a leftover fom BFME that resets the targets specialpower. "CurseFactor" is the percentage, ie 1.0 sets it back by 100%, 0.5 sets it back to 50% (afaik).

 

Not sure how much it helps by whatever your traying, but it might be usefull.

thanks, i'll take a look at this

Share this post


Link to post
23 hours ago, Stygs said:

			<SpecialPower
				id="ModuleTag_Curse"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				UpdateModuleStartsAttack="true" />
			<CurseSpecialPower
				id="ModuleTag_CurseUpdate"
				SpecialPowerTemplate="SpecialPower_CABAL_SystemReset"
				TriggerSound="NOD_Redeemer_RageGeneratorMS"
				CurseFX="FX_TEMPLarge"
				CurseFactor="1.0">
				<AffectObjectFilter
					Relationship="ENEMIES NEUTRAL"
					Rule="NONE"
					Include="SUPER_WEAPON">
				</AffectObjectFilter>
			</CurseSpecialPower>

"Curse" is a leftover fom BFME that resets the targets specialpower. "CurseFactor" is the percentage, ie 1.0 sets it back by 100%, 0.5 sets it back to 50% (afaik).

 

Not sure how much it helps by whatever your traying, but it might be usefull.

*sigh* still not working on PlayerSpecialPowers, only UnitAbility

Share this post


Link to post

It definitely works on player powers, I have just tested it. This is set up as a 'TargetedSpecialPower'

      <SpecialPower id="ModuleTag_SpecialPower" SpecialPowerTemplate="SpecialPower_CurseTest" UpdateModuleStartsAttack="true" />
      <CurseSpecialPower id="ModuleTag_CurseSpecialPower" SpecialPowerTemplate="SpecialPower_CurseTest" CurseFX="FX_IronCurtainHit" TriggerFX="FX_Allied_GrandCannonFire" CurseAllPlayerPowers="true" CurseFactor="1.0" UnpackTime="0.1s" PreparationTime="0.1s">
        <AffectObjectFilter Rule="ALL" />
      </CurseSpecialPower>
  <SpecialPowerTemplate id="SpecialPower_CurseTest" ReloadTime="3s" RadiusCursorRadius="9999" TargetType="LOCATION" Flags="RESPECT_RECHARGE_TIME_DISCOUNT IGNORE_MAP_EXTENTS" InitiateAtLocationSound="ALL_CenturyBomber_VoiceAttack" WaypointModeTerminal="false"></SpecialPowerTemplate>
  <LogicCommand Options="NEED_TARGET_POS" Type="SPECIAL_POWER" id="Command_CurseTest">
    <SpecialPower>SpecialPower_CurseTest</SpecialPower>
  </LogicCommand>

Now as you can see I tested it to effect everything, and not to target a specific structure.

Share this post


Link to post
12 hours ago, Madin said:

It definitely works on player powers, I have just tested it. This is set up as a 'TargetedSpecialPower'


      <SpecialPower id="ModuleTag_SpecialPower" SpecialPowerTemplate="SpecialPower_CurseTest" UpdateModuleStartsAttack="true" />
      <CurseSpecialPower id="ModuleTag_CurseSpecialPower" SpecialPowerTemplate="SpecialPower_CurseTest" CurseFX="FX_IronCurtainHit" TriggerFX="FX_Allied_GrandCannonFire" CurseAllPlayerPowers="true" CurseFactor="1.0" UnpackTime="0.1s" PreparationTime="0.1s">
        <AffectObjectFilter Rule="ALL" />
      </CurseSpecialPower>

  <SpecialPowerTemplate id="SpecialPower_CurseTest" ReloadTime="3s" RadiusCursorRadius="9999" TargetType="LOCATION" Flags="RESPECT_RECHARGE_TIME_DISCOUNT IGNORE_MAP_EXTENTS" InitiateAtLocationSound="ALL_CenturyBomber_VoiceAttack" WaypointModeTerminal="false"></SpecialPowerTemplate>
  <LogicCommand Options="NEED_TARGET_POS" Type="SPECIAL_POWER" id="Command_CurseTest">
    <SpecialPower>SpecialPower_CurseTest</SpecialPower>
  </LogicCommand>

Now as you can see I tested it to effect everything, and not to target a specific structure.

now it's working! looks like CurseAllPlayerPowers is the key, thanks

yet the caster itself cannot be effected, a bit dissatisfied...

Edited by ravage

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×