Modding Union
[en] - Modding Corner => Mapping => Thema gestartet von: lord_ellessar am 9. Mär 2016, 11:41
-
i would like to know how, with the map ini i can change the reinforcements of the man of west CaH to units of Arnor? :)
-
Yes, look for the OCLs, and change it there.
Else you can also create complete new OCLs and change the entry in the summon abilitiy of the CaH.
-
but it doesn't include to change the data.big to do that? :/
-
No, you can do it by map.ini
ObjectCreationList OCL_CaHGoodSummon1
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
MinLifetime = 30000
MaxLifetime = 30000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionIntensity = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
Offset = X:0 Y:0 Z:0
ForbiddenUpgrades = Upgrade_Heerführer
End
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
MinLifetime = 60000
MaxLifetime = 60000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionIntensity = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
Offset = X:0 Y:0 Z:0
ForbiddenUpgrades = Upgrade_ObjectLevel4
RequiredUpgrades = Upgrade_Heerführer
End
End
Object CreateAHero
ReplaceModule ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1
Behavior = OCLSpecialPower ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1New
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWSummonAllies_Level1
OCL = OCL_CaHGoodSummon1
TriggerFX = FX_SummonFog
CreateLocation = CREATE_AT_LOCATION
StartsPaused = Yes
SetModelCondition = ModelConditionState:USER_1
SetModelConditionTime = 8.1
End
End
End
This is the code I used, for changing the summon on a map to something different.
-
Thanks :)
-
It doesn't work :/
this is the code i've putted
PlayerAIType MenAI
LibraryMap = "Libraries\ki arnor\ki arnor.map"
End
PlayerAIType MenSkirmishAI
LibraryMap = "Libraries\ki arnor\ki arnor.map"
End
PlayerTemplate FactionMen
StartingUnit1 = ArnorFighterHorde
StartingUnitOffset1 = X:30 Y:200 Z:0
StartingUnit0 = ArnorFighterHorde
StartingUnitOffset0 = X:1 Y:130 Z:0
SpellBook = GoodSpellBook
SpellBookMp = ArnorSpellBook
PurchaseScienceCommandSet = GoodSpellStoreCommandSet
PurchaseScienceCommandSetMP = ArnorSpellStoreCommandSet
IntrinsicSciences = SCIENCE_GOOD
IntrinsicSciencesMP = SCIENCE_ARNOR
DisplayName = INI:FactionArnor
MultiSelectionPortrait = UPArnor_Army
InitialUpgrades = Upgrade_MenFaction Upgrade_AllFactionUpgrade Upgrade_ArnorFaction
BuildableHeroesMP = CreateAHero ArnorCaptainStealthless_mod ArnorAraphant ArnorAranarthDunedain GondorArvedui GondorGandalf_mod_forFornost ImladrisGlorfindel_forArnor LothlorienCirdan
BuildableRingHeroesMP = RingHeroDummy
End
Object GondorCastleUpgrade
ReplaceModule ModuleTag_MenTreb
Behavior = ObjectCreationUpgrade ModuleTag_MenTrebforFornost
TriggeredBy = Upgrade_HasWallTrebuchet
ConflictsWith = Upgrade_PosternGate Upgrade_OpenGarrison
Delay = 0.0
RemoveUpgrade = Upgrade_WallTrebuchetButtonEnable
ThingToSpawn = ArnorTrebuchetWall
Offset = X:50.0 Y:0.0 Z:68
FadeInTime = 1000
End
End
End
Object GondorForge
CommandSet = ArnorForgeCommandSet
ReplaceModule ModueTag_EconomyLevel2CommandSet_Produktionserhöhung
Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Produktionserhöhung_Arnor
TriggeredBy = Upgrade_EdainEconomyProduktionserhöhung
ConflictsWith = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager
CommandSet = ArnorForgeCommandSetLevel2_Produktionserhöhung
End
End
ReplaceModule ModueTag_EconomyLevel2CommandSet_Verteidigungsmaßnahmen
Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Verteidigungsmaßnahmen_Arnor
TriggeredBy = Upgrade_EdainEconomyVerteidigungsmaßnahmen
ConflictsWith = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager
CommandSet = ArnorForgeCommandSetLevel2_Verteidigungsmaßnahmen
End
End
ReplaceModule ModueTag_EconomyLevel2CommandSet_Vorratslager
Behavior = CommandSetUpgrade ModueTag_EconomyLevel2CommandSet_Vorratslager_Arnor
TriggeredBy = Upgrade_EdainEconomyVorratslager
ConflictsWith = Upgrade_EdainEconomyVerbesserteProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager
CommandSet = ArnorForgeCommandSetLevel2_Vorratslager
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteProduktionserhöhung
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteProduktionserhöhung_Arnor
TriggeredBy = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbesserteProduktionserhöhung
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbesserteProduktionserhöhung
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen_Arnor
TriggeredBy = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbesserteVerteidigungsmaßnahmen
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbessertesVorratslager
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Produktionserhöhung_VerbessertesVorratslager_Arnor
TriggeredBy = Upgrade_EdainEconomyProduktionserhöhung Upgrade_EdainEconomyVerbessertesVorratslager
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Produktionserhöhung_VerbessertesVorratslager
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung_Arnor
TriggeredBy = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbesserteProduktionserhöhung
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbesserteProduktionserhöhung
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen_Arnor
TriggeredBy = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbesserteVerteidigungsmaßnahmen
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbessertesVorratslager
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Verteidigungsmaßnahmen_VerbessertesVorratslager_Arnor
TriggeredBy = Upgrade_EdainEconomyVerteidigungsmaßnahmen Upgrade_EdainEconomyVerbessertesVorratslager
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Verteidigungsmaßnahmen_VerbessertesVorratslager
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteProduktionserhöhung
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteProduktionserhöhung_Arnor
TriggeredBy = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbesserteProduktionserhöhung
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Vorratslager_VerbesserteProduktionserhöhung
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteVerteidigungsmaßnahmen
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbesserteVerteidigungsmaßnahmen_Arnor
TriggeredBy = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbesserteVerteidigungsmaßnahmen
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Vorratslager_VerbesserteVerteidigungsmaßnahmen
End
End
ReplaceModule ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbessertesVorratslager
Behavior = CommandSetUpgrade ModueTag_EconomyLevel3CommandSet_Vorratslager_VerbessertesVorratslager_Arnor
TriggeredBy = Upgrade_EdainEconomyVorratslager Upgrade_EdainEconomyVerbessertesVorratslager
RequiresAllTriggers = Yes
CommandSet = ArnorForgeCommandSetLevel3_Vorratslager_VerbessertesVorratslager
End
End
End
Object GondorBuildingFoundation
SelectPortrait = BRArnorFoundation
CommandSet = ArnorGondorFoundationCommandSet
ReplaceModule ModuleTag_Draw2
Draw = W3DScriptedModelDraw ModuleTag_Draw2_Arnor
DefaultModelConditionState
Model = OBBFoundationX
End
ModelConditionState = WORLD_BUILDER
Model = GBSizeTemplate
End
End
End
ReplaceModule ModuleTag_Draw
Draw = W3DFloorDraw ModuleTag_Draw_Arnor
ModelName = ABFoundationX
End
End
End
Object GondorBaseDefenceFoundation
SelectPortrait = BRArnorFoundation
ReplaceModule ModuleTag_Draw2
Draw = W3DScriptedModelDraw ModuleTag_Draw2_Arnor
DefaultModelConditionState
Model = OBBFoundationX
End
ModelConditionState = WORLD_BUILDER
Model = GBBtlTwrM
End
End
End
ReplaceModule ModuleTag_Draw
Draw = W3DFloorDraw ModuleTag_Draw_Arnor
ModelName = ABFoundationM
End
End
End
Object GondorCastleBaseKeep
CommandSet = ArnorGondorCastleBaseKeepCommandSet
ReplaceModule MakeTheFreeTreb2
Behavior = ObjectCreationUpgrade MakeTheFreeTreb2_Arnor
TriggeredBy = Upgrade_PurchaseUpgradeMalbeth
Delay = 3000.0
RemoveUpgrade = Upgrade_WallTrebuchetButtonEnable
ThingToSpawn = ArnorMalbeth
Offset = X:28 Y:0.8 Z:35
FadeInTime = 500
End
End
End
Object GondorStable
CommandSet = GondorStablesCommandSet_forFornost
ReplaceModule ModueTag_StableLevel2CommandSet
Behavior = CommandSetUpgrade ModueTag_StableLevel2CommandSet_Arnor
TriggeredBy = Upgrade_GondorStructureLevel2
ConflictsWith = Upgrade_GondorStructureLevel3
CommandSet = GondorStablesCommandSetLevel2_forFornost
End
End
ReplaceModule ModueTag_StableLevel3CommandSet
Behavior = CommandSetUpgrade ModueTag_StableLevel3CommandSet_Arnor
TriggeredBy = Upgrade_GondorStructureLevel3
CommandSet = GondorStablesCommandSetLevel3_forFornost
End
End
End
Object GondorWorkshop
CommandSet = GondorWorkshopCommandSet_forFornost
ReplaceModule ModuleTag_GondorWorkshopLevel2CommandSet
Behavior = CommandSetUpgrade ModueTag_GondorWorkshopLevel2CommandSet_Arnor
TriggeredBy = Upgrade_GondorStructureLevel2
ConflictsWith = Upgrade_GondorStructureLevel3
CommandSet = GondorWorkshopCommandSetLevel2_forFornost
End
End
ReplaceModule ModuleTag_GondorWorkshopLevel3CommandSet
Behavior = CommandSetUpgrade ModueTag_GondorWorkshopLevel3CommandSet_Arnor
TriggeredBy = Upgrade_GondorStructureLevel3
CommandSet = GondorWorkshopCommandSetLevel3_forFornost
End
End
End
Object GondorRangerTents
Description = OBJECT:ArnorRangerTentsDescription
ReplaceModule ModuleTag_SpawnFighters
Behavior = SpawnBehavior ModuleTag_SpawnFighters_Neu
TriggeredBy = Upgrade_StructureLevel1
ConflictsWith = Upgrade_ObjectUnderAIControl
SpawnNumber = 3
InitialBurst = 3
SpawnTemplateName = DunedainRangerMod_SlavedCreep
SpawnReplaceDelay = 30000
CanReclaimOrphans = Yes
End
End
CommandSet = ArnorRangerTentsCommandSet
End
Object SnowTrollLairSnow
ReplaceModule ModuleTag_Spawn
Behavior = SpawnBehavior ModuleTag_Spawnneu
SpawnNumber = 3
InitialBurst = 3
SpawnTemplateName = SnowTroll_Slaved
SpawnReplaceDelay = 100000
CanReclaimOrphans = Yes
End
End
End
Object DireWolfLair
ReplaceModule ModuleTag_Spawn
Behavior = SpawnBehavior ModuleTag_Spawnneu
SpawnNumber = 2
InitialBurst = 2
SpawnTemplateName = AngmarWeißerWarg_Slaved
SpawnReplaceDelay = 30000
CanReclaimOrphans = Yes
End
End
End
ObjectCreationList OCL_CaHGoodSummon1
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
MinLifetime = 30000
MaxLifetime = 30000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionIntensity = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
Offset = X:0 Y:0 Z:0
ForbiddenUpgrades = Upgrade_Heerführer
End
CreateObject
ObjectNames = GondorFighter_Summoned
Count = 5
FadeIn = Yes
FadeTime = 8000
MinLifetime = 60000
MaxLifetime = 60000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionIntensity = 100
DispositionAngle = 72 ;SpawnAround uses this as the arc between guys
Offset = X:0 Y:0 Z:0
ForbiddenUpgrades = Upgrade_ObjectLevel4
RequiredUpgrades = Upgrade_Heerführer
End
End
Object CreateAHero
ReplaceModule ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1
Behavior = OCLSpecialPower ModuleTag_OCLSpecialPowerHotWSummonAllies_Level1New
SpecialPowerTemplate = SpecialAbilityCreateAHeroHotWSummonAllies_Level1
OCL = OCL_CaHGoodSummon1
TriggerFX = FX_SummonFog
CreateLocation = CREATE_AT_LOCATION
StartsPaused = Yes
SetModelCondition = ModelConditionState:USER_1
SetModelConditionTime = 8.1
End
End
and this is the message :
(http://i.imgur.com/prPEUKa.png)
-
Look at the error message ;)
It seems that I created the FX_SummonFog just for this map. The original FX is FX_DunedainSummon. If you replace it, it should work.
Also you should change the code in the OCL, because I just copied my code, which does something completly diferent.
-
okay thanks a lot :)
-
Did you copy the code from the arnorforge or why does the "l" miss at: Replace Module ModuleTag_Economy....?? [uglybunti]
-
I would like to make that the power taint stay the whole skirmish, what code have I to do :)
-
I would also like to how to enlarge the radius effect of devastation :)