29. Mär 2024, 01:14 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge. Hierbei werden gemäß Datenschutzerklärung Benutzername und Passwort verschlüsselt für die gewählte Dauer in einem Cookie abgelegt.


Select Boards:
 
Language:
 


Autor Thema: Spell Books (coding)  (Gelesen 13466 mal)

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #15 am: 16. Apr 2013, 23:35 »
Thanks you for help

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #16 am: 26. Jun 2013, 18:28 »
How to pour in Edain a new spell book from another mod? (Which operations are necessary, which programs)

Prinz von Dol Amroth

  • Edain Ehrenmember
  • Held von Helms Klamm
  • *****
  • Beiträge: 1.262
Re:Spell Books (coding)
« Antwort #17 am: 26. Jun 2013, 19:29 »
You need Final Big
You have to copy the Codes of the other mod and paste the Codes in Edain Mod.
For coding a new spell you need this files:
data\ini\science.ini
data\ini\object\system\system.ini
data\ini\specialpower.ini
data\ini\commandbutton.ini
data\ini\commandset.ini
maybe data\ini\fxlist.ini and data\ini\fxparticlesystem.ini, but only if there is a new fx.
If your spell is a modifier, you'll need the attributemodifier.ini or if your spell is ocl, you'll need the objectcreationlist.ini.
Ich bin der selbst ernannte Herrscher, oberster Befehlshaber und noch vieles anderes von Dol Amroth
oft in tunngle zu finden

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #18 am: 26. Jun 2013, 20:31 »
Suladan on the fourth level builds Mumakil pen. How to replace this ability on the    
healing from spellbook?
« Letzte Änderung: 26. Jun 2013, 21:22 von KingThranduil »

Prinz von Dol Amroth

  • Edain Ehrenmember
  • Held von Helms Klamm
  • *****
  • Beiträge: 1.262
Re:Spell Books (coding)
« Antwort #19 am: 26. Jun 2013, 21:02 »
In the science.ini you have to change the name of the spell, which you want to replace into the name you want.
Science SCIENCE_forKingThranduil
[...]
End
And you have to change other spells, which need your spell for beeing able to buy, the old name into you name you want.
For example:
Science SCIENCE_Anduril
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_Heal
  SciencePurchasePointCost = 7 ;GOOD_RANK_2_COST
  SciencePurchasePointCostMP = 7 ;10
  IsGrantable = Yes
End
If you want to change the spell Heal you have to change by all other Spells, like Anduril in line "PrerequisiteSciences "SCIENCE_Heal" to for example "SCIENCE_ForKingThranduil" , but the thame name you have already chosen.


Then you look for a spell, which is alike your spell, you want to do. For example the LoneTowerSpell, which is a summon of a structure, too.
You have to look the alike spell in the files, I have already written and in the objectcreatiolinst.ini ,because you have a summon.
After that you can do your own spell, with new Commandbuttons.
At the end you have to change the Commandset of the Spellbook and there you replace the Commandbutton of the old spell with the new Commandbutton of your own spell.
« Letzte Änderung: 26. Jun 2013, 21:07 von Prinz von Dol Amroth »
Ich bin der selbst ernannte Herrscher, oberster Befehlshaber und noch vieles anderes von Dol Amroth
oft in tunngle zu finden

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #20 am: 26. Jun 2013, 22:28 »
Thank you but I couldn't do it all.

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #21 am: 8. Jul 2013, 01:13 »
How to make so that Radagast was hired without a spell book?

Ealendril der Dunkle

  • Gast
Re:Spell Books (coding)
« Antwort #22 am: 8. Jul 2013, 09:28 »
Change this button like this:

CommandButton Command_RadagastReviveSlot
    Command                = REVIVE
    Options                = CANCELABLE HIDE_WHILE_DISABLED       ;Hides button while disabled.
    TextLabel            = CONTROLBAR:GenericReviveHero
    ;ButtonImage        = ***Filled in automatically! No need to specify a button image.
    ButtonBorderType    = BUILD
    DescriptLabel        = CONTROLBAR:ToolTipGenericReviveHero
    InPalantir            = No
    Radial                = Yes
End

And King Thranduil.....plz try something for you own!

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #23 am: 8. Jul 2013, 10:01 »
Thank you!

Zitat
plz try something for you own!

I'm writing here after I was unable to do or don't know how to do

You that it is hard to answer my questions?

If I knew how to do I didn't ask for help

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #24 am: 11. Jul 2013, 09:01 »
I can not find OCL_ of Elven Wood(SpellBook).

Help please.
 

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #25 am: 11. Jul 2013, 13:29 »
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

  • Edain Ehrenmember
  • Held von Helms Klamm
  • *****
  • Beiträge: 1.262
Re:Spell Books (coding)
« Antwort #26 am: 13. Jul 2013, 20:30 »
The Elven Forest is an old spell from RotW so the OCL is in the objectcreationlist.ini not inc.
The name is: OCL_ElvenWoodSeed
« Letzte Änderung: 13. Jul 2013, 20:34 von Prinz von Dol Amroth »
Ich bin der selbst ernannte Herrscher, oberster Befehlshaber und noch vieles anderes von Dol Amroth
oft in tunngle zu finden

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #27 am: 13. Jan 2014, 08:50 »
Added repair in Rohan, but doesn't work. Help fix

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

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

    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

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

Ealendril der Dunkle

  • Gast
Re:Spell Books (coding)
« Antwort #28 am: 13. Jan 2014, 10:14 »
Science.ini?

KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #29 am: 13. Jan 2014, 11:21 »
Science SCIENCE_RebuildMenRohan
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN
  SciencePurchasePointCost = GOOD_RANK_1_COST
  SciencePurchasePointCostMP = 5
  IsGrantable = Yes
End