Best Answer NewErr, 11 December 2017 - 09:25 AM
I placed the OCL in the code snippet above (that it's in Gimli's ini).
Go to the full postBest Answer NewErr, 11 December 2017 - 09:25 AM
I placed the OCL in the code snippet above (that it's in Gimli's ini).
Go to the full postPosted 09 December 2017 - 11:13 PM
Hey all, got another question, i added undermine to Gimli but the thing doesn't want to work.
It goes in game, shows the button, cooldown also when used, the problem is just nothing spawns where it should. Like the thing i referenced to be spawned doesn't exist but i copied the undermine OCL like it is when working through spellbook.
OCL
ObjectCreationList OCL_GimliUndermine CreateObject ObjectNames = DwarvenMineShaftForUndermine Count = 1 FadeIn = Yes FadeTime = 2000 Disposition = RELATIVE_ANGLE DispositionAngle = 315 UseJustBuiltFlag = Yes JustBuiltDuration = 1500 ; hold it for a second while it's playing its buildup ClearRemovables = Yes End End
special power
SpecialPower SpecialAbilityGimliUndermine Enum = SPECIAL_SPELL_BOOK_UNDERMINE ;RequiredSciences = SCIENCE_Undermine ReloadTime = SPELL_RECHARGE_TIME_TIER_2 ; in milliseconds RadiusCursorRadius = SPAWN_UNDERMINE_DECAL_RADIUS 95.0 Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ForbiddenObjectFilter = NO_SUMMON_UNDERMINE_NEAR_OBJECT_FILTER ForbiddenObjectRange = SPAWN_UNDERMINE_DECAL_RADIUS InitiateAtLocationSound = SpellUndermine End
gimli
Behavior = OCLSpecialPower ModuleTag_GimliUndermine SpecialPowerTemplate = SpecialAbilityGimliUndermine CreateLocation = CREATE_AT_LOCATION AvailableAtStart = Yes ;RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER ;RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
commandbutton
CommandButton Command_SpecialAbilityGimliUndermine Command = SPECIAL_POWER SpecialPower = SpecialAbilityGimliUndermine TextLabel = CONTROLBAR:Undermine ButtonImage = SBGood_Undermine ButtonBorderType = ACTION Options = NEED_TARGET_POS CONTEXTMODE_COMMAND RadiusCursorType = UndermineRadiusCursor CursorName = AttackObj InvalidCursorName = GenericInvalid ButtonBorderType = ACTION DescriptLabel = CONTROLBAR:TooltipUndermine InPalantir = Yes End
commandset
4 = Command_SpecialAbilityGimliUndermine
I didnt include the unpause module as as far as i can tell that only works with explevels and i havent entered anything there making the ability available immediately for testing purposes.
Thanks for any answers
Posted 10 December 2017 - 01:27 AM
Hah, you forgot to add the OCL in the OCLSpecialPower, I mean he doesn't even know what to spawn because as you can see there is no reference of the OCL in any other place.
Behavior = OCLSpecialPower ModuleTag_GimliUndermine SpecialPowerTemplate = SpecialAbilityGimliUndermine OCL = OCL_GimliUndermine CreateLocation = CREATE_AT_LOCATION AvailableAtStart = Yes ;RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER ;RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
Posted 10 December 2017 - 10:30 AM
Hah, you forgot to add the OCL in the OCLSpecialPower, I mean he doesn't even know what to spawn because as you can see there is no reference of the OCL in any other place.
Behavior = OCLSpecialPower ModuleTag_GimliUndermine SpecialPowerTemplate = SpecialAbilityGimliUndermine OCL = OCL_GimliUndermine CreateLocation = CREATE_AT_LOCATION AvailableAtStart = Yes ;RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER ;RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
Can yu be more specific pls? I tried addin OCL in a few places and nothing seemed to help. :(
Posted 11 December 2017 - 09:25 AM Best Answer
I placed the OCL in the code snippet above (that it's in Gimli's ini).
Posted 12 December 2017 - 11:13 AM
I placed the OCL in the code snippet above (that it's in Gimli's ini).
Hey hey, many thanks.
I don't want to sound like the guy who got offered the hand and took an arm but would it be too much to explain to me error of this:
It doesn't unpause...
gimli
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GimliMine SpecialPowerTemplate = GimliUndermine TriggeredBy = Upgrade_GimliMine End Behavior = OCLSpecialPower ModuleTag_GimliUndermine SpecialPowerTemplate = SpecialAbilityGimliUndermine OCL = OCL_GimliUndermine CreateLocation = CREATE_AT_LOCATION StartsPaused = Yes ;RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER ;RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
explevels
Upgrades = Upgrade_GimliMine
Upgrades:
Upgrade Upgrade_GimliMine Type = OBJECT End
I'll try to be more receptive this time lol, so i don't miss obvious solutions offered.
Edited by RoccoTheStiff, 12 December 2017 - 11:16 AM.
Posted 12 December 2017 - 12:03 PM
You have different SpecialPowerTemplate in the UnpauseSpecialPowerUpgrade and OCLSpecialPower. It should be SpecialAbilityGimliUndermine I guess.
Posted 12 December 2017 - 05:26 PM
You have different SpecialPowerTemplate in the UnpauseSpecialPowerUpgrade and OCLSpecialPower. It should be SpecialAbilityGimliUndermine I guess.
Awesome dude, many thanks. Posting the working code if some poor sob like me wants to upgrade Gimli
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GimliMine SpecialPowerTemplate = SpecialAbilityGimliUndermine TriggeredBy = Upgrade_GimliMine End Behavior = OCLSpecialPower ModuleTag_GimliUndermine SpecialPowerTemplate = SpecialAbilityGimliUndermine OCL = OCL_GimliUndermine CreateLocation = CREATE_AT_LOCATION StartsPaused = Yes ;RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER ;RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_GimliUndermine
and
Behavior = OCLSpecialPower ModuleTag_GimliUndermine
Thanks again for the help, wish i could pick your brain apart a bit, i'd do so many cool things with your coding knowledge
0 members, 1 guests, 0 anonymous users