23. Aug 2017, 11:57 Hallo Gast.
Willkommen Gast. Bitte einloggen oder registrieren. Haben Sie Ihre Aktivierungs E-Mail übersehen?

Einloggen mit Benutzername, Passwort und Sitzungslänge


Select Boards:
 
Language:
 

News:



Autor Thema: Spell Books (coding)  (Gelesen 6342 mal)

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Spell Books (coding)
« am: 13. Apr 2013, 13:04 »
How to replace in Edain Mod (3.8.1) spell books?

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #1 am: 16. Apr 2013, 08:16 »
In Imladris I added Gil-Galad. He is in SpellBook(Last Alliance).

I want to remove he from the SpellBook, but I don't know how to do it.

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #2 am: 16. Apr 2013, 08:56 »
In FinalBig you mau find the obhectcreationlist.inc
In this file search for Gil-Galad and if you find his code-lines then just comment it out with ";" like this:
; Object = Gil-Galad

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #3 am: 16. Apr 2013, 10:33 »
In obhectcreationlist.inc about Gil-Galad I found the following lines:

1) ObjectCreationList OCL_GilGaladAeglos
CreateObject
ObjectNames = GilGaladAeglosSchockwelle
Count = 1
Disposition     = LIKE_EXISTING
End

2) CreateObject
ObjectNames = LothlorienGilGalad_Summoned
Count = 1
        FadeIn = Yes
        FadeTime = 2000
        UseJustBuiltFlag = Yes
        StartingBusyTime = 2000
IgnoreCommandPointLimit = Yes
    End
End

3) ObjectCreationList GilgaladBombardSeed
CreateObject
ObjectNames = GilgaladRainBombardSeed
Count = CREATE_A_HERO_BOMBARD_COUNT_L3
SpreadFormation = Yes
MinDistanceAFormation = 10.0
MinDistanceBFormation = CREATE_A_HERO_BOMBARD_RADIUS_L3
MaxDistanceFormation = CREATE_A_HERO_BOMBARD_RADIUS_L3
End
End

; ---------------------------------------------------------------------------------------
ObjectCreationList OCL_GilgaladBombardProjectile
CreateObject
ObjectNames = GilgaladBombardProjectile
Disposition = RELATIVE_ANGLE USE_WATER_SURFACE ; same angle as parent.
DispositionAngle = 0
IssueMoveAfterCreation = No
IgnoreAllObjects = Yes ; Don't try and adjust position according to existing objects.
End
End

4) CreateObject
ObjectNames = LothlorienGilGalad_Summoned
Count = 1
FadeIn = Yes
FadeTime = 8000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionAngle = 90 ;SpawnAround uses this as the arc between guys
DispositionIntensity = 50 ; and this for distance from center
End
End

5) ObjectCreationList OCL_SpawnGilGalad
CreateObject
ObjectNames = LothlorienGilGalad
Count = 1
FadeIn = Yes
FadeTime                 = 4000
;IgnoreCommandPointLimit = No
Disposition = LIKE_EXISTING
DispositionAngle = 120 ;SpawnAround uses this as the arc between guys
DispositionIntensity = 200 ; and this for distance from center
End
End

6) CreateObject
ObjectNames = ArnorGilGalad_Summoned
        Count                    = 1
        FadeIn                    = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit    = Yes
        Disposition                = ABSOLUTE_ANGLE
        DispositionAngle        = 270
        UseJustBuiltFlag        = Yes
        StartingBusyTime        = 5000
        Offset                    = X:-30 Y:-60 Z:0
        ForbiddenUpgrades = Upgrade_ImladrisFaction
        RequiredUpgrades  = Upgrade_ArnorFaction
    End
    CreateObject
ObjectNames = BruchtalGilGalad_Summoned
        Count                    = 1
        FadeIn                    = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit    = Yes
        Disposition                = ABSOLUTE_ANGLE
        DispositionAngle        = 270
        UseJustBuiltFlag        = Yes
        StartingBusyTime        = 5000
        Offset                    = X:-30 Y:-60 Z:0
        ForbiddenUpgrades = Upgrade_ArnorFaction
        RequiredUpgrades  = Upgrade_ImladrisFaction
    End

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #4 am: 16. Apr 2013, 10:40 »
Number 1 and 3 are abillities of Gil-Galad.
Number 2,4,5 and 6 are all posible.
But because the spell is nearly the same for Imladris and Arnor, I believe it is 6 and the other ones are older versions.

So just change Nr. 6 to this. Just set the count of the Gil-Galads for Bruchtal to 0:
Zitat
CreateObject
    ObjectNames = ArnorGilGalad_Summoned
        Count                    = 1
        FadeIn                    = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit    = Yes
        Disposition                = ABSOLUTE_ANGLE
        DispositionAngle        = 270
        UseJustBuiltFlag        = Yes
        StartingBusyTime        = 5000
        Offset                    = X:-30 Y:-60 Z:0
        ForbiddenUpgrades = Upgrade_ImladrisFaction
        RequiredUpgrades  = Upgrade_ArnorFaction
    End
    CreateObject
    ObjectNames = BruchtalGilGalad_Summone d
        Count                    = 0
        FadeIn                    = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit    = Yes
        Disposition                = ABSOLUTE_ANGLE
        DispositionAngle        = 270
        UseJustBuiltFlag        = Yes
        StartingBusyTime        = 5000
        Offset                    = X:-30 Y:-60 Z:0
        ForbiddenUpgrades = Upgrade_ArnorFaction
        RequiredUpgrades  = Upgrade_ImladrisFaction
    End

It would be also possible to delete the whole part for Imladris, but if you want to rechange it, it is better have the old codes still there.

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #5 am: 16. Apr 2013, 10:47 »
Remove? CreateObject
    ObjectNames = BruchtalGilGalad_Summone d
        Count                    = 0
        FadeIn                    = Yes
        FadeTime                = 8000
        IgnoreCommandPointLimit    = Yes
        Disposition                = ABSOLUTE_ANGLE
        DispositionAngle        = 270
        UseJustBuiltFlag        = Yes
        StartingBusyTime        = 5000
        Offset                    = X:-30 Y:-60 Z:0
        ForbiddenUpgrades = Upgrade_ArnorFaction
        RequiredUpgrades  = Upgrade_ImladrisFaction
    End
or replace these lines on ; Object = Gil-Galad

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #6 am: 16. Apr 2013, 10:52 »
I think setting the count to 0 is quite fine, but if you want, it you can remove the whole code, by commenting it out with ;

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #7 am: 16. Apr 2013, 11:31 »
I did as you said, but there was a problem:

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #8 am: 16. Apr 2013, 11:37 »
This error hasn't to do anything with the codes above.
The error just states that you have twice the same name for a module, but this name has to be unique.

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #9 am: 16. Apr 2013, 12:16 »
I did what I wanted. Thanks for the help.

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #10 am: 16. Apr 2013, 12:56 »
I want to add in Rohan Aragorn, Legolas and Gimli, but they are in SpellBook. How do I change this ability to another? (I do not want to remove the time. I want to replace it with another)

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #11 am: 16. Apr 2013, 17:58 »
With which ability do you want to replace the Spell? That is the most important thing.
It would be easiest to just change the effect an summon something else instead.

Offline KingThranduil

  • Gastwirt zu Bree
  • **
  • Beiträge: 107
Re:Spell Books (coding)
« Antwort #12 am: 16. Apr 2013, 19:18 »
1) I want to replace with spell "Friends of the Old Forest"(Tom Bombadil and Goldberry).

2) possible instead them(Aragorn, Legolas and Gimli) do Gandalf for a while?

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #13 am: 16. Apr 2013, 20:13 »
1 and 2 are the same for coding.
The easiest way is, you look for the OCL of the Spell with Aragorn Legolas un Gimli:
ObjectCreationList OCL_SpawnBandderGefährten
CreateObject
ObjectNames = GondorAragornEntwicklung2_Summoned
Count = 1
FadeIn = Yes
FadeTime = 10000
IgnoreCommandPointLimit = Yes
Disposition = SPAWN_AROUND
DispositionAngle = 90 ;SpawnAround uses this as the arc between guys
DispositionIntensity = 0 ; and this for distance from center
End
CreateObject
ObjectNames = LothlorienLegolas_SummonedGefährten
Count = 1
FadeIn = Yes
FadeTime = 10000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 90 ;SpawnAround uses this as the arc between guys
                Offset                          = X:30 Y:-30 Z:0
End
CreateObject
ObjectNames = DwarvenGimli_SummonedGefährten
Count = 1
FadeIn = Yes
FadeTime = 10000
IgnoreCommandPointLimit = Yes
Disposition = ABSOLUTE_ANGLE
DispositionAngle = 90 ;SpawnAround uses this as the arc between guys
                Offset                          = X:-30 Y:30 Z:0
End
End

And you replace everything, but the OCL name with the OCL of Tom Bombadil so you get:
ObjectCreationList OCL_SpawnBandderGefährten
    CreateObject
        ObjectNames                    = TomBombadil_Summoned
        Count                        = 1
        FadeIn                        = Yes
        FadeTime                    = 4000
        IgnoreCommandPointLimit        = Yes
        Disposition                    = LIKE_EXISTING
        DispositionAngle            = 120    ;SpawnAround uses this as the arc between guys
        DispositionIntensity        = 200 ; and this for distance from center
    End
    CreateObject
        ObjectNames                    = GasthausGoldbeere_Summoned
        Count                        = 1
        FadeIn                        = Yes
        FadeTime                    = 4000
        IgnoreCommandPointLimit        = Yes
        Disposition                    = LIKE_EXISTING
        DispositionAngle            = 120    ;SpawnAround uses this as the arc between guys
        DispositionIntensity        = 200 ; and this for distance from center
        Offset = X:20.0 Y:0.0 Z:0.0
    End
End

And in addition you replace the Image and the Label in the Commandbutton:
CommandButton Command_SpellBookBandderGefährten
    Command = SPELL_BOOK
    SpecialPower = SpellBookBandderGefährten
    ButtonImage         = HSGoldbeereandBombadil
    Options = NEED_TARGET_POS ; Huh, you can't have this flag and a radius cursor: CONTEXTMODE_COMMAND
    TextLabel         = CONTROLBAR:SummonTomBombadilundGoldbeere
    ButtonBorderType         = ACTION
    DescriptLabel = CONTROLBAR:TooltipSummonTomBombadilundGoldbeere
    RadiusCursorType         = DunedainAlliesRadiusCursor
    CursorName                  = AttackObj
    InvalidCursorName           = GenericInvalid
End

CommandButton Command_PurchaseSpellBandderGefährten
    Command = PURCHASE_SCIENCE
    ButtonBorderType         = UPGRADE
    ButtonImage = HSGoldbeereandBombadil
    Science = SCIENCE_DieDreiJäger
    TextLabel = CONTROLBAR:SummonTomBombadilundGoldbeere
    DescriptLabel = CONTROLBAR:TooltipSummonTomBombadilundGoldbeere
End

All in all you get the exactly the other spell, but the reload time stays the same.

Offline Lostir

  • Elbischer Pilger
  • **
  • Beiträge: 180
Re:Spell Books (coding)
« Antwort #14 am: 16. Apr 2013, 23:02 »
The OCL is in the data\ini\includes\objectcreationlist.inc
The Commandbuttons are in the  data\ini\includes\commandbutton.inc