salut cdd
et merci de ta patience
bon j'ai repris ton tuto qui est trés bon
le probléme c'est moi qui comprend pas tout
donc je te mets tout ce que j'ai fait comme ça d'un coup d'oeil tu verra les erreures que j'ai pus faire.
je reprend dans le meme ordre que toi et j'ai fait deux post parce que trop long
dans science ini
Science SCIENCE_ROHAN
PrerequisiteSciences = None
SciencePurchasePointCost = 0 ; note that this means "not purchasable", NOT "free"!
IsGrantable = No
End
plus tout en bas
Science SCIENCE_Heal_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN
SciencePurchasePointCost = GOOD_RANK_1_COST
SciencePurchasePointCostMP = 5
IsGrantable = Yes
End
Science SCIENCE_Rebuild_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_Heal_rohan
SciencePurchasePointCost = GOOD_RANK_2_COST
SciencePurchasePointCostMP = 5
IsGrantable = Yes
End
Science SCIENCE_DwarvenRiches_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_Rebuild_rohan
SciencePurchasePointCost = GOOD_RANK_2_COST
SciencePurchasePointCostMP = 5
IsGrantable = Yes
End
Science SCIENCE_ArrowVolleyGood_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_DwarvenRiches_rohan
SciencePurchasePointCost = 1
SciencePurchasePointCostMP = 10
IsGrantable = Yes
End
Science SCIENCE_TomBombadil_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_ArrowVolleyGood_rohan
SciencePurchasePointCost = GOOD_RANK_2_COST
SciencePurchasePointCostMP = 10
IsGrantable = Yes
End
Science SCIENCE_ElvenWood_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_TomBombadil_rohan
SciencePurchasePointCost = GOOD_RANK_1_COST
SciencePurchasePointCostMP = 10
IsGrantable = Yes
End
Science SCIENCE_MenOfDaleAllies_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_ElvenWood_rohan
SciencePurchasePointCost = GOOD_RANK_2_COST
SciencePurchasePointCostMP = 10
IsGrantable = Yes
End
Science SCIENCE_RohanAllies_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_MenOfDaleAllies_rohan
SciencePurchasePointCost = 1
SciencePurchasePointCostMP = 15
IsGrantable = Yes
End
Science SCIENCE_Bombard_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_RohanAllies_rohan
SciencePurchasePointCost = GOOD_RANK_3_COST
SciencePurchasePointCostMP = 15
IsGrantable = Yes
End
Science SCIENCE_DunedainAllies_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_Bombard_rohan
SciencePurchasePointCost = 1
SciencePurchasePointCostMP = 15
IsGrantable = Yes
End
Science SCIENCE_Earthquake_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_DunedainAllies_rohan
SciencePurchasePointCost = GOOD_RANK_4_COST
SciencePurchasePointCostMP = 25
IsGrantable = Yes
End
Science SCIENCE_Sunflare_rohan
PrerequisiteSciences = SCIENCE_GOOD OR SCIENCE_ROHAN SCIENCE_Earthquake_rohan
SciencePurchasePointCost = GOOD_RANK_4_COST
SciencePurchasePointCostMP = 25
IsGrantable = Yes
End
la déja j'ai du faire des erreures
ensuite dans system ini j'ai créé le spellbook tout en bas comme suit
tu remarquera le double End à la fin qui m'as été demandé de mettre aprés un crashgame
la j'ai pas trop compris mais bon il là pris
Object RohanSpellBook
EditorSorting = SYSTEM
; *** ART Parameters ***
Draw = W3DDefaultDraw ModuleTag_01
;nothing
End ; Never drawn
CommandSet = RohanSpellBookCommandSet
RadarPriority = NOT_ON_RADAR
KindOf = SPELL_BOOK IMMOBILE IGNORES_SELECT_ALL INERT
Behavior = PlayerHealSpecialPower ModuleTag_Heal
SpecialPowerTemplate = SpellBookHealROHAN
HealAffects = INFANTRY CAVALRY MONSTER MACHINE SHIP DOZER
HealAmount = 0.6 ;1.0 ; 0.5 = 50% of maximum health
HealRadius = SPELL_HEAL_RADIUS_UNIT_SCAN
HealFX = FX_SpellHealUnitHealBuff ;FX_DefaultUnitHealBuff
; To replenish hordes a bit
HealOCL = OCL_HealSpellHordeReplenishPing
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = PlayerHealSpecialPower ModuleTag_Rebuild
SpecialPowerTemplate = SpellBookRebuildROHAN
HealAffects = STRUCTURE
HealAsPercent = No
HealAmount = 4000
HealRadius = SPELL_REBUILD_RADIUS_STRUCTURE_SCAN
HealFX = FX_SpellRebuild
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = SpecialPowerModule ModuleTag_DwarvenRiches
SpecialPowerTemplate = SpellBookDwarvenRichesROHAN
AttributeModifier = SpellBookDwarvenRiches
AttributeModifierRange = DWARVENRICHES_EFFECT_RADIUS
AttributeModifierAffects = INDUSTRY_TYPE_SPELL_OBJECT_FILTER
TriggerFX = FX_DwarvenRiches
UpdateModuleStartsAttack = No
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_ArrowVolleyGood
SpecialPowerTemplate = SpellBookArrowVolleyGoodROHAN
OCL = OCL_SpellBookArrowVolley
CreateLocation = USE_SECONDARY_OBJECT_LOCATION
NearestSecondaryObjectFilter = NONE SAME_PLAYER +CASTLE_KEEP
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_TomBombadil
SpecialPowerTemplate = SpellBookTomBombadilROHAN
OCL = OCL_SpawnTomBombadilEgg
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = ElvenWoodSpecialPower ModuleTag_ElvenWood
SpecialPowerTemplate = SpellBookElvenWoodROHAN
ElvenGroveObject = ElvenGrove
ElvenWoodRadius = SPELLBOOK_TAINT_RADIUS
ElvenWoodFX = FX_ElvenWoodSpellFX
ElvenWoodOCL = OCL_ElvenWoodSeed
; CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_MenOfDaleAllies
SpecialPowerTemplate = SpellBookMenOfDaleAlliesROHAN
OCL = OCL_SpawnMenOfDaleEgg
TriggerFX = FX_DunedainSummon
CreateLocation = CREATE_AT_LOCATION
UpgradeName = Upgrade_MenOfDaleAllies
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_SummonRohan
SpecialPowerTemplate = SpellBookRohanAlliesROHAN
OCL = OCL_SpawnRohanRohirrimEgg
TriggerFX = FX_RohirimSummon
CreateLocation = CREATE_AT_LOCATION
UpgradeName = Upgrade_RohanAllies
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_Bombard
SpecialPowerTemplate = SpellBookBombardROHAN
OCL = OCL_SpellBookBombardSeed
CreateLocation = USE_SECONDARY_OBJECT_LOCATION
NearestSecondaryObjectFilter = NONE SAME_PLAYER +CASTLE_KEEP
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_SummonDunedain
SpecialPowerTemplate = SpellBookDunedainAlliesROHAN
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
Behavior = OCLSpecialPower ModuleTag_Earthquake
SpecialPowerTemplate = SpellBookEarthquakeROHAN
OCL = OCL_SpellBookEarthquake
;TriggerFX = FX_ElvenAlliesSummon
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
Behavior = OCLSpecialPower ModuleTag_Sunflare
SpecialPowerTemplate = SpellBookSunflareROHAN
OCL = OCL_SpecialPowerSunflare
CreateLocation = CREATE_AT_LOCATION
AvailableAtStart = No
AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES
ReEnableAntiCategory = Yes
AttributeModifierWeatherBased = Yes
WeatherDuration = SPELL_SUNFLARE_DURATION
ChangeWeather = SUNNY
RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
End
End
je n'ais pas fait les modules pour l'IA pour l'instant
ensuite dans le commandset j'ai mis sous celui des nains
CommandSet RohanSpellBookCommandSet
1 = Command_SpellBookHeal_rohan
2 = Command_SpellBookRebuild_rohan
3 = Command_SpellBookDwarvenRiches_rohan
4 = Command_SpellBookArrowVolleyGood_rohan
5 = Command_SpellBookTomBombadil_rohan
6 = Command_SpellBookElvenWood_rohan
7 = Command_SpellBookMenOfDaleAllies_rohan
8 = Command_SpellBookRohanAllies_rohan
9 = Command_SpellBookBombard_rohan
10 = Command_SpellBookDunedainAllies_rohan
11 = Command_SpellBookEarthquake_rohan
12 = Command_SpellBookSunflare_rohan
End
CommandSet RohanSpellStoreCommandSet
1 = Command_PurchaseSpellHeal_rohan
2 = Command_PurchaseSpellRebuild_rohan
3 = Command_PurchaseSpellDwarvenRiches_rohan
4 = Command_PurchaseSpellArrowVolleyGood_rohan
5 = Command_PurchaseSpellTomBombadil_rohan
6 = Command_PurchaseSpellElvenWood_rohan
7 = Command_PurchaseSpellMenOfDaleAllies_rohan
8 = Command_PurchaseSpellRohanAllies_rohan
9 = Command_PurchaseSpellBombard_rohan
10 = Command_PurchaseSpellDunedainAllies_rohan
11 = Command_PurchaseSpellEarthquake_rohan
12 = Command_PurchaseSpellSunflare_rohan
End