[en] - Modding Corner > Mapping
How to change an spellbook spell's OCL in the map.ini ?
(1/1)
H4lbarad:
Hey, it's me again :P
I'm trying to change the ObjectCreationList of the Arnor Power "Gondor reinforcements" (OCL_SpawnSBStreitmachtGo ndors) but it doesn't work. :( I did like that, it worked with another power (Isengard Orcs of the spellbook) in the same way, but there it doesn't. In game, when I use the power, there is the "fog" but no units appear...
--- Code: ---Object SpawnSBStreitmachtGondorsEgg
ReplaceModule ModuleTag_HatchProcess
Behavior = SlowDeathBehavior ModuleTag_HatchProcess_ROHAN
DestructionDelay = 2000
OCL = FINAL OCL_SpawnSBStreitmachtGondors_ROHAN
End
End
End
ObjectCreationList OCL_SpawnSBStreitmachtGondors_ROHAN
CreateObject
ObjectNames = GondorArcherHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:-100 Y:140 Z:0
End
CreateObject
ObjectNames = GondorArcherHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:0 Y:140 Z:0
End
CreateObject
ObjectNames = GondorArcherHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:100 Y:140 Z:0
End
CreateObject
ObjectNames = GondorFighterHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:-100 Y:60 Z:0
End
CreateObject
ObjectNames = GondorTowerShieldGuardHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:0 Y:60 Z:0
End
CreateObject
ObjectNames = GondorFighterHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:100 Y:60 Z:0
End
CreateObject
ObjectNames = GondorKnightHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:-100 Y:-20 Z:0
End
CreateObject
ObjectNames = GondorKnightHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:0 Y:-20 Z:0
End
CreateObject
ObjectNames = GondorKnightHorde
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:100 Y:-20 Z:0
End
CreateObject
ObjectNames = GondorBoromir_mod
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 270
UseJustBuiltFlag = Yes
StartingBusyTime = 5000
Offset = X:0 Y:-60 Z:0
End
End
--- Ende Code ---
The first paragraph comes from the ini file "ProjectileEggs.ini", and the second comes from "objectcreationlist.inc". Do I have to change something in another file ?
Thank you very much for help :)
FG15:
The map.ini is read by the game from the top. Therefore, you have to define the OCL before using it.
H4lbarad:
So I have to put it before the commandset ? or before the egg ?
FG15:
Before the place where it is used. In this case the egg
H4lbarad:
Thank you, it works :D
Navigation
[0] Themen-Index
Zur normalen Ansicht wechseln