[en] - Modding Corner > Coding

No-time limit Submod: Issues and Bugs

<< < (3/5) > >>

The_Necromancer0:
I'll have a look at the duplication issue this weekend, I find it weird that these battalions seem to escape the rule.

I think removing the timers on the Huorns and Ered Luin's secondary heroes should probably be fine. Unless there is a specific reason you didn't want to?

Also, have you considered leaving the time on the Oathbreakers and on the King of the Dead? I think that a permanent Army of the Dead sounds fun at first but since it's basically an automatic win button it might lose its savour quite quickly.

EDIT:
So I stumbled on something interesting while playing around in the map.ini, I made a child object from Grimbold's horde, removed the timer, added MaxSimultaneousOfType and replaced the horde in the OCL with the child object. When I tested it in the game that seemed to do the trick to prevent multiple instances from spawning. So might be worth playing around with child objects.


--- Code: ---ChildObject GetreueReiterHordeGrimbold_SummonedMax GetreueReiterHordeGrimbold_Summoned
    RemoveModule ModuleTag_LifetimeUpdate
    MaxSimultaneousOfType = 1
End
--- Ende Code ---

Miaulë:
Thanks. I immediately go to try this.

About oath breakers, yes they seem indestructible but 1 attack of sauron in armor destroys them; or a combination of tower fire arrows with garrison.

about huorns, they are immobile and I thinked it could create an excessive ground occupation.
For ered luin heroes I thinked there would be a no complete company because bombur remains "to cook" but probably I will remove their timers anyway

Miaulë:
Now the duplication of Elfelm and Grimbold hordes are now solved. I added the codeline under their childobject in the rohanhorde file.
Without your help It would have taken a lot longer.
Thanks!

The secondary ered luin heroes are summoned like "slave" so there is the same  problem of ghan-buri-ghan. Also they have some powers blocked. What should I do to make them available?

The_Necromancer0:
With ghan-buri-ghan the way I did is that I replaced the OCL it spawns in the GoodSpellbook (it's module ModuleTag_SummonDruedain Allies). For fixing the duplicates the only way I figured out how to fix was a child object again.

To make the powers available you'll have to remove their requirement. There is usually a "starter" module that you have to remove and then in the specialpower module you have to switch StartsActive to Yes.

Here's my map.ini code for ghan-buri-ghan

--- Code: ---ChildObject GasthausGhanBuriGhan_SummonedMax GasthausGhanBuriGhan_Summoned

    MaxSimultaneousOfType = 1
    RemoveModule ModuleTag_Slave
    RemoveModule ModuleTag_LifetimeUpdate
    KindOf = +HERO
End


Object DruedainKrieger_Summoned
    RemoveModule ModuleTag_LifetimeUpdate
End

Object DruedainKriegerHorde_Summoned
    RemoveModule ModuleTag_Slave
    RemoveModule ModuleTag_LifetimeUpdate
End

ObjectCreationList OCL_SpawnDruedainAlliesMax
    CreateObject
        ObjectNames             = GasthausGhanBuriGhan_SummonedMax
        UseJustBuiltFlag        = Yes
        Count                   = 1
        FadeIn                  = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit = Yes
        Disposition             = ABSOLUTE_ANGLE
        DispositionAngle        = 90
        Offset                  = X:0 Y:0 Z:0
    End
    CreateObject
        ObjectNames             = DruedainKriegerHorde_Summoned
        Count                   = 2
        FadeIn                  = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit = Yes
        Disposition             = SPAWN_AROUND
        DispositionAngle        = 120    ;SpawnAround uses this as the arc between guys
        DispositionIntensity    = 300 ; and this for distance from center
    End
End

ChildObject RohanSpellBookMax RohanSpellBook
    ReplaceModule ModuleTag_SummonDruedainAllies
        Behavior = OCLSpecialPower ModuleTag_SummonDruedainAllies2
            SpecialPowerTemplate = SpellBookDruedainAllies
            OCL                  = OCL_SpawnDruedainAlliesMax
            TriggerFX            = FX_RohirimSummon
            CreateLocation       = CREATE_AT_LOCATION
            AvailableAtStart     = No
            RequirementsFilterMPSkirmish = SPELL_BOOK_REQUIREMENTS_FILTER
            RequirementsFilterStrategic = SPELL_BOOK_REQUIREMENTS_FILTER_STRATEGIC
        End
    End
End

PlayerTemplate FactionRohan
    SpellBookMp                  = RohanSpellBookMax
End
--- Ende Code ---

Miaulë:
I solved the problem with your advice.
It was the  OCL= OCL_SpawnDruedainAlliese gg in the  objectcreationlist.inc

I have replaced it with summondruedainalliesMax like you did and I modified the Ghanburighan.ini, systemgood.inc, objectcreationlist.inc. Now he is unique on camp after other summons.

Now I try this for ered luin secondary heroes.

Navigation

[0] Themen-Index

[#] Nächste Seite

[*] Vorherige Sete

Zur normalen Ansicht wechseln