If I add this it crashes: Behavior = ModelConditionUpgrade ModuleTag_MakeMeLordSauron TriggeredBy = Upgrade_RingHero Upgrade_FortressRingHero ;;;Upgrade_MordorFaction AddConditionFlags = I_HAVE_THE_RING Permanent = Yes End ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; If I add this it crashes: Behavior = RemoveUpgradeUpgrade ModuleTag_MakeMeLordSauron TriggeredBy = Upgrade_RingHero Upgrade_FortressRingHero UpgradeToRemove = Upgrade_FienxRingHackPart RemoveFromAllPlayerObjects = Yes SuppressEvaEventForRemoval = Yes ; Hack -- this is to avoid the Eva event about 'Gollum stole our ring' ; when we are actually losing the upgrade because we built the ring hero End Behavior = ModelConditionUpgrade ModuleTag_IamTheSpiritOfSauron TriggeredBy = Upgrade_FienxRingHackPart AddConditionFlags = USER_77 Permanent = Yes End ALONG WITH ANY ATTEMPT TO HACK BY GRANTING A GENERAL UPGRADE THAT GETS REMOVE BY HAVING THE RING AND PREVENTING AN ABILITY BY HAVING THE GENRAL ABILTIY ;;;FOR INSTANCE;;;... ... --> Behavior = SpecialAbilityUpdate ModuleTag_08 ... RejectedConditions = USER_77 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; And if I use it in the command button then the ability is greyed out, but never unlocks when getting the ring... CommandButton Command_PowerWhatever Command = SPECIAL_POWER Options = NEED_UPGRADE NeededUpgrade = Upgrade_RingHero Upgrade_FortressRingHero ;;;this upgrade... TextLabel = CONTROLBAR:Blahbblahblah ButtonImage = Whatever ButtonBorderType = ACTION ;whatever it would normally say for a special power DescriptLabel = CONTROLBAR:ToolTipblahblahblah InPalantir = Yes Radial = Yes End
Unlock Special Powers Based on Having the Ring
Started by fienx001, Jul 29 2011 04:06 PM
2 replies to this topic
#1
Posted 29 July 2011 - 04:06 PM
I've tried this three ways and it crashes or doesn't work. I'm trying to make special powers available only if the player is holding the ring.
#2
Posted 11 August 2011 - 03:05 AM
I've tried this three ways and it crashes or doesn't work. I'm trying to make special powers available only if the player is holding the ring.
If I add this it crashes: Behavior = ModelConditionUpgrade ModuleTag_MakeMeLordSauron TriggeredBy = Upgrade_RingHero Upgrade_FortressRingHero ;;;Upgrade_MordorFaction AddConditionFlags = I_HAVE_THE_RING Permanent = Yes End ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; If I add this it crashes: Behavior = RemoveUpgradeUpgrade ModuleTag_MakeMeLordSauron TriggeredBy = Upgrade_RingHero Upgrade_FortressRingHero UpgradeToRemove = Upgrade_FienxRingHackPart RemoveFromAllPlayerObjects = Yes SuppressEvaEventForRemoval = Yes ; Hack -- this is to avoid the Eva event about 'Gollum stole our ring' ; when we are actually losing the upgrade because we built the ring hero End Behavior = ModelConditionUpgrade ModuleTag_IamTheSpiritOfSauron TriggeredBy = Upgrade_FienxRingHackPart AddConditionFlags = USER_77 Permanent = Yes End ALONG WITH ANY ATTEMPT TO HACK BY GRANTING A GENERAL UPGRADE THAT GETS REMOVE BY HAVING THE RING AND PREVENTING AN ABILITY BY HAVING THE GENRAL ABILTIY ;;;FOR INSTANCE;;;... ... --> Behavior = SpecialAbilityUpdate ModuleTag_08 ... RejectedConditions = USER_77 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; And if I use it in the command button then the ability is greyed out, but never unlocks when getting the ring... CommandButton Command_PowerWhatever Command = SPECIAL_POWER Options = NEED_UPGRADE NeededUpgrade = Upgrade_RingHero Upgrade_FortressRingHero ;;;this upgrade... TextLabel = CONTROLBAR:Blahbblahblah ButtonImage = Whatever ButtonBorderType = ACTION ;whatever it would normally say for a special power DescriptLabel = CONTROLBAR:ToolTipblahblahblah InPalantir = Yes Radial = Yes End
Look, the CommandButton part should work as far as i see, i think there is a easier way to do all of this.
Fortess give to upgrades when the ring enters, Upgrade_RingHero and Upgrade_FortressRingHero, "Upgrade_FortressRingHero" its a Object upgrade and its no usefull for what you want, but Upgrade_RingHero its a player upgrade, so, you can use it for power unloking.
I suggest you to do it like EA normaly does, by:
;---- POWER UNPAUSE ---- Behavior = UnpauseSpecialPowerUpgrade ModuleTag_KnifeEnabler SpecialPowerTemplate = SpecialAbilityGimliHeroMode TriggeredBy = Upgrade_RingHero End ;---- AND THE POWER ----- Behavior = WeaponModeSpecialPowerUpdate ModuleTag_KnifeFighterPowerUpdate SpecialPowerTemplate = SpecialAbilityGimliHeroMode Duration = 25000 ; ;30000 ; Needs to match SpecialAbilityGimliHeroMode AttributeModifier = Slayer ;LockWeaponSlot = SECONDARY WeaponSetFlags = WEAPONSET_TOGGLE_1 StartsPaused = Yes ;InitiateSound = AragornBladeMaster ;this doesn't work End
instead of use NeededUpgrade in CommandButton. Try doing it this way. Beside, use common model condition flags, like "FORTRESS_IMPROVEMENT_8" that no unit use it, but its a valid flag, so it won't make any trouble. I hope it help.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users