[en] - Modding Corner > General Modding Questions

Spell Books (coding)

<< < (6/7) > >>

KingThranduil:
I changed the spell book of Lorien, in place  riders of Mirkwood put Elven Forest. That's all I did in the Commandbutton.inc

But in ObjectCreationList not found OCL_ of Elven Forest.

Tell me what to do. where do I find OCL_ of Elven Forest.

I do not know the code name of OCL_ Elven Forest.

Help please!

Prinz von Dol Amroth:
The Elven Forest is an old spell from RotW so the OCL is in the objectcreationlist.ini not inc.
The name is: OCL_ElvenWoodSeed

KingThranduil:
Added repair in Rohan, but doesn't work. Help fix


--- Code: ---CommandButton Command_PurchaseSpellBaumeisterRohan
    Command = PURCHASE_SCIENCE
    ButtonBorderType = UPGRADE
    ButtonImage = SBGood_Baumeister
    Science = SCIENCE_RebuildMenRohan
    TextLabel = CONTROLBAR:BaumeisterRohan
    DescriptLabel = CONTROLBAR:TooltipBaumeisterRohan
End

CommandButton Command_SpellBookBaumeisterRohan
Command = SPELL_BOOK
    SpecialPower = SpellBookRebuildRohan
    ButtonImage = SBGood_Baumeister
Options = NEED_TARGET_POS
TextLabel = CONTROLBAR:BaumeisterRohan
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipBaumeisterRohan
RadiusCursorType        = WiederaufbauEdainRadiusCursor
InvalidCursorName = GenericInvalid
End
--- Ende Code ---


--- Code: ---SpecialPower SpellBookRebuildRohan
    Enum                    = SPECIAL_SPELL_BOOK_REBUILD
    Flags                    = WATER_OK RESPECT_RECHARGE_TIME_DISCOUNT
    ReloadTime                = SPELL_RECHARGE_TIME_TIER_2
    RadiusCursorRadius        = SPELL_REBUILD_RADIUS_CURSOR
    RequiredSciences        = SCIENCE_RebuildMenRohan
    InitiateAtLocationSound = SpellRebuild
End
--- Ende Code ---


--- Code: ---    Behavior = SpecialPowerModule    SpellBookRebuild_ModuleTag2
        SpecialPowerTemplate        = SpellBookRebuildRohan
        AttributeModifier            = SpellBookBuildingHeal
        AttributeModifierRange        = 200
        AttributeModifierAffects    = ANY +STRUCTURE
        TriggerFX                    = FX_Industry
        UpdateModuleStartsAttack    = No
        AvailableAtStart            = No
        RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
        RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
    End
--- Ende Code ---


--- Code: ---ModifierList SpellBookBuildingHeal
    Category = SPELL
    Modifier = AUTO_HEAL 50   
    Modifier = PRODUCTION 200%        // Production increased 2x
    Duration = 120000                // 2 min worth of modifiers
    //ModelCondition = UPGRADE_ECONOMY_BONUS            // UPGRADE_ECONOMY_BONUS is used in draw module to fire particle FX
End
--- Ende Code ---

Ealendril der Dunkle:
Science.ini?

KingThranduil:

--- Code: ---Science SCIENCE_RebuildMenRohan
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN
  SciencePurchasePointCost = GOOD_RANK_1_COST
  SciencePurchasePointCostMP = 5
  IsGrantable = Yes
End
--- Ende Code ---

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln