Science SCIENCE_DunedainAllies PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES SciencePurchasePointCost = 1 SciencePurchasePointCostMP = 1 IsGrantable = Yes End SpecialPower SpellBookDunedainAllies Enum = SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES RequiredSciences = SCIENCE_DunedainAllies ReloadTime = 10000; in milliseconds InitiateAtLocationSound = SpellSummonDunedainAllies RadiusCursorRadius = 100.0 Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER ForbiddenObjectRange = 100.0 END CommandSet MenSpellBookCommandSet 1 = Command_SpellBookHeal 2 = Command_SpellBookRallyingCall 3 = Command_SpellBookDunedainAllies 4 = Command_SpellBookTomBombadil 5 = Command_SpellBookHobbitAllies 6 = Command_SpellBookLoneTower 7 = Command_SpellBookArrowVolleyGood 8 = Command_SpellBookCloudBreak 9 = Command_SpellBookRohanAllies 10 = Command_SpellBookElvenWoodMP;;Command_SpellBookRebuild 11 = Command_SpellBookArmyoftheDead 12 = Command_SpellBookEarthquake CommandSet MenSpellStoreCommandSet 1 = Command_PurchaseSpellHeal 2 = Command_PurchaseSpellRallyingCallMP 3 = Command_PurchaseSpellDunedainAllies 4 = Command_PurchaseSpellLoneTowerMen;; Command_PurchaseSpellHobbitAllies 5 = Command_PurchaseSpellArrowVolleyGood 6 = Command_PurchaseSpellTomBombadil 7 = Command_PurchaseSpellHobbitAllies;;Command_PurchaseSpellLoneTowerMen 8 = Command_PurchaseSpellRohanAllies;;Command_PurchaseSpellElvenWoodMP;;Command_PurchaseSpellRebuild 9 = Command_PurchaseSpellCloudBreak 10 = Command_PurchaseSpellElvenWoodMP;;Command_PurchaseSpellRebuild;;Command_PurchaseSpellRohanAllies 11 = Command_PurchaseSpellArmyoftheDead 12 = Command_PurchaseSpellEarthquake End CommandSet ElvesSpellBookCommandSet 1 = Command_SpellBookRallyingCall 2 = Command_SpellBookDunedainAllies 3 = Command_SpellBookFarsight 4 = Command_SpellBookHeal 5 = Command_SpellBookTomBombadil 6 = Command_SpellBookEnshroudingMist 7 = Command_SpellBookArrowVolleyGood 8 = Command_SpellBookElvenWood 9 = Command_SpellBookCloudBreak 10 = Command_SpellBookEntAllies 11 = Command_SpellBookEagleAllies 12 = Command_SpellBookFlood 13 = Command_SpellBookSunflare End CommandSet ElvesSpellStoreCommandSet 1 = Command_PurchaseSpellRallyingCallMP 2 = Command_PurchaseSpellDunedainAllies 3 = Command_PurchaseSpellFarsight 4 = Command_PurchaseSpellHeal 5 = Command_PurchaseSpellEnshroudingMistMP 6 = Command_PurchaseSpellArrowVolleyGood 7 = Command_PurchaseSpellElvenWood 8 = Command_PurchaseSpellTomBombadil 9 = Command_PurchaseSpellEntAllies 10 = Command_PurchaseSpellCloudBreak 11 = Command_PurchaseSpellEagleAllies 12 = Command_PurchaseSpellSunflare 13 = Command_PurchaseSpellFlood End
Is This Right?
#1
Posted 19 October 2007 - 01:01 AM
#3
Posted 12 November 2007 - 12:14 PM
Dain: Arr Nertea: yarrrr Dain: haharrrr Nertea: graaawwwr Dain: oaaaaaaaarr Nertea: .... honk?
#4
Posted 12 November 2007 - 02:23 PM
92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature
.:.('.').:.
I was born to be the best, No1 and nothing less...
Jobs in modelling and skinning availlable in Battle for Heaven and Hell.Click here to join.
#7
Posted 12 November 2007 - 10:03 PM
Be patient. This isn't a chat room.
lol posted nearly 3 weeks ago
i think mh is right
#9
Posted 13 November 2007 - 01:43 AM
Science SCIENCE_DunedainAllies PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES SciencePurchasePointCost = 1 SciencePurchasePointCostMP = 1 IsGrantable = Yes End SpecialPower SpellBookDunedainAllies Enum = SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES RequiredSciences = SCIENCE_DunedainAllies ReloadTime = 50000; in milliseconds InitiateAtLocationSound = SpellSummonDunedainAllies RadiusCursorRadius = 100.0 Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER ForbiddenObjectRange = 100.0 END CommandSet MenSpellBookCommandSet_Overide 1 = Command_SpellBookHeal 2 = Command_SpellBookRallyingCall 3 = Command_SpellBookDunedainAllies 4 = Command_SpellBookTomBombadil 5 = Command_SpellBookHobbitAllies 6 = Command_SpellBookLoneTower 7 = Command_SpellBookArrowVolleyGood 8 = Command_SpellBookCloudBreak 9 = Command_SpellBookRohanAllies 10 = Command_SpellBookElvenWoodMP 11 = Command_SpellBookArmyoftheDead 12 = Command_SpellBookEarthquake END CommandSet MenSpellStoreCommandSet_overide 1 = Command_PurchaseSpellHeal 2 = Command_PurchaseSpellRallyingCallMP 3 = Command_PurchaseSpellDunedainAllies 4 = Command_PurchaseSpellLoneTowerMen 5 = Command_PurchaseSpellArrowVolleyGood 6 = Command_PurchaseSpellTomBombadil 7 = Command_PurchaseSpellHobbitAllies 8 = Command_PurchaseSpellRohanAllies 9 = Command_PurchaseSpellCloudBreak 10 = Command_PurchaseSpellElvenWoodMP 11 = Command_PurchaseSpellArmyoftheDead 12 = Command_PurchaseSpellEarthquake End Object MenSpellBook_Override CommandSet = MenSpellBookCommandSet_Override RadarPriority = NOT_ON_RADAR KindOf = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT END PlayerTemplate FactionMen PurchaseScienceCommandSetMP = MenSpellStoreCommandSet_Override SpellBookMp = MenSpellBook_Override End CommandSet ElvesSpellBookCommandSet_overide 1 = Command_SpellBookRallyingCall 2 = Command_SpellBookDunedainAllies 3 = Command_SpellBookFarsight 4 = Command_SpellBookHeal 5 = Command_SpellBookTomBombadil 6 = Command_SpellBookEnshroudingMist 7 = Command_SpellBookArrowVolleyGood 8 = Command_SpellBookElvenWood 9 = Command_SpellBookCloudBreak 10 = Command_SpellBookEntAllies 11 = Command_SpellBookEagleAllies 12 = Command_SpellBookFlood 13 = Command_SpellBookSunflare End CommandSet ElvesSpellStoreCommandSet_overide 1 = Command_PurchaseSpellRallyingCallMP 2 = Command_PurchaseSpellDunedainAllies 3 = Command_PurchaseSpellFarsight 4 = Command_PurchaseSpellHeal 5 = Command_PurchaseSpellEnshroudingMistMP 6 = Command_PurchaseSpellArrowVolleyGood 7 = Command_PurchaseSpellElvenWood 8 = Command_PurchaseSpellTomBombadil 9 = Command_PurchaseSpellEntAllies 10 = Command_PurchaseSpellCloudBreak 11 = Command_PurchaseSpellEagleAllies 12 = Command_PurchaseSpellSunflare 13 = Command_PurchaseSpellFlood End Object ElvesSpellBook_Override CommandSet = ElvesSpellBookCommandSet_Override RadarPriority = NOT_ON_RADAR KindOf = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT END PlayerTemplate FactionElves PurchaseScienceCommandSetMP = ElvesSpellStoreCommandSet_Override SpellBookMp = ElvesSpellBook_Override End
#10
Posted 13 November 2007 - 07:51 PM
ROFL, Dain just got pwntlol posted nearly 3 weeks agoBe patient. This isn't a chat room.
On Topic:
SpellBook Editing is a NIGHTMARE, not because the coding is hard, but because there is so much to edit. Doing it via map.ini is even worse. Basically, the entire code you have there is wrong, wrong, all wrong...
OK, here is a walk through to map.ini spellbook editing.
First off, you need to change the spell book. So, we would have a code block like this:
PlayerTemplate FactionElves PurchaseScienceCommandSetMP = ElvesSpellStoreCommandSet_Override SpellBookMp = ElvesSpellBook_Override End
Now, we actually need to create that object. You can't simply make a new object with nothing in it, or none of your other spells will work. You need a childobject of the old spellbook.
ChildObject ElvesSpellBook ElvesSpellBook_Override CommandSet = ElvesSpellBookCommandSet_Override AddModule Behavior = OCLSpecialPower ModuleTag_SummonDunedain SpecialPowerTemplate = SpellBookDunedainAllies OCL = OCL_SpawnDunedainRangersEgg TriggerFX = FX_DunedainSummon CreateLocation = CREATE_AT_LOCATION UpgradeName = Upgrade_DunedainAllies AvailableAtStart = No RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End End //Other Codes will go here, ie if you want to edit OCLs or any other fun stuff. You can find the original object //code in data/ini/system/system.ini Feel free to tweak! End
Edit your special power for the time:
SpecialPower SpellBookDunedainAllies Enum = SPECIAL_SPELL_BOOK_DUNEDAIN_ALLIES RequiredSciences = SCIENCE_DunedainAllies ReloadTime = 50000; in milliseconds InitiateAtLocationSound = SpellSummonDunedainAllies RadiusCursorRadius = 100.0 Flags = NO_FORBIDDEN_OBJECTS RESPECT_RECHARGE_TIME_DISCOUNT ForbiddenObjectFilter = NO_SUMMON_NEAR_OBJECT_FILTER ForbiddenObjectRange = 100.0 END
Now is where you get to start "Having Fun". This is where spell book editing goes crazy (Sorta). You have to arrange ALL SCIENCES relating to your new science to reflect each other, depending on where you want to put it. OK, I phrased that horribly. Here is what I mean:
First off, say we are replacing "Rallying Call" with Summon Dunedain. We would have to find all elven spells that have "Rallying Call" as a prerequisite and edit them.
//This is a tier 1 spell, so it goes first Science SCIENCE_DunedainAllies PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_MEN OR SCIENCE_ELVES SciencePurchasePointCost = 1 SciencePurchasePointCostMP = 1 IsGrantable = Yes End //Next Power that wants it is is Arrow Volley Science SCIENCE_ArrowVolleyGood PrerequisiteSciences = SCIENCE_ELVES SCIENCE_DunedainAllies OR SCIENCE_GOOD OR SCIENCE_MEN SCIENCE_Heal OR SCIENCE_MEN SCIENCE_RallyingCallMP OR SCIENCE_ELVES SCIENCE_Heal OR SCIENCE_ELVES SCIENCE_RallyingCallMP SciencePurchasePointCost = 1 SciencePurchasePointCostMP = 10 IsGrantable = Yes End
Seeing as Arrow Volley is the only one that requires Rallying Call as a prerequisite, we can leave it at that. Now we edit the commandsets:
CommandSet ElvesSpellBookCommandSet_Override 1 = Command_SpellBookDunedainAllies 2 = Command_SpellBookHeal 3 = Command_SpellBookFarsight 4 = Command_SpellBookTomBombadil 5 = Command_SpellBookEnshroudingMist 6 = Command_SpellBookArrowVolleyGood 7 = Command_SpellBookElvenWood 8 = Command_SpellBookCloudBreak 9 = Command_SpellBookEntAllies 10 = Command_SpellBookEagleAllies 11 = Command_SpellBookFlood 12 = Command_SpellBookSunflare End CommandSet ElvesSpellStoreCommandSet_Override 1 = Command_PurchaseSpellDunedainAllies 2 = Command_PurchaseSpellHeal 3 = Command_PurchaseSpellFarsight 4 = Command_PurchaseSpellEnshroudingMistMP 5 = Command_PurchaseSpellArrowVolleyGood 6 = Command_PurchaseSpellElvenWood 7 = Command_PurchaseSpellTomBombadil 8 = Command_PurchaseSpellEntAllies;;Command_PurchaseSpellEagleAllies 9 = Command_PurchaseSpellCloudBreak 10 = Command_PurchaseSpellEagleAllies;;Command_PurchaseSpellEntAllies 11 = Command_PurchaseSpellSunflare 12 = Command_PurchaseSpellFlood End
This is all the necessary code, BUT WAIT! We aren't finished yet! The Game engine needs to parse everything in a certain order, or it won't work in-game. I don't know what that certain order is, but this works for me:
PlayerTemplates at the top
Objects (Including the new spell book)
Special Powers
Command Buttons
Command Sets
Sciences
For an example map.ini that goes with my map "The Hill of the Gods", check this out:
map.ini 50.74KB 22 downloads
Happy Modding
Edited by Fingulfin, 14 November 2007 - 08:55 PM.
#11
Posted 13 November 2007 - 08:13 PM
great work fingulfin
#14
Posted 14 November 2007 - 08:55 PM
ChildObject ElvesSpellBook ElvesSpellBook_Override CommandSet = ElvesSpellBookCommandSet_Override AddModule Behavior = OCLSpecialPower ModuleTag_SummonDunedain SpecialPowerTemplate = SpellBookDunedainAllies OCL = OCL_SpawnDunedainRangersEgg TriggerFX = FX_DunedainSummon CreateLocation = CREATE_AT_LOCATION UpgradeName = Upgrade_DunedainAllies AvailableAtStart = No RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC End End //Other Codes will go here, ie if you want to edit OCLs or any other fun stuff. You can find the original object //code in data/ini/system/system.ini Feel free to tweak! End
Have fun
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users