[en] - Modding Corner > General Modding Questions

Spell Books (coding)

<< < (4/7) > >>

KingThranduil:
Thanks you for help

KingThranduil:
How to pour in Edain a new spell book from another mod? (Which operations are necessary, which programs)

Prinz von Dol Amroth:
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.

KingThranduil:
Suladan on the fourth level builds Mumakil pen. How to replace this ability on the    
healing from spellbook?

Prinz von Dol Amroth:
In the science.ini you have to change the name of the spell, which you want to replace into the name you want.

--- Code: ---Science SCIENCE_forKingThranduil
[...]
End
--- Ende Code ---
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:

--- Code: ---Science SCIENCE_Anduril
  PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_Heal
  SciencePurchasePointCost = 7 ;GOOD_RANK_2_COST
  SciencePurchasePointCostMP = 7 ;10
  IsGrantable = Yes
End
--- Ende Code ---
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.

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln