Ankündigung

Einklappen
Keine Ankündigung bisher.

neuer Spell !!!

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • neuer Spell !!!

    Hallo, habe einen neuen Spell für meine Mod gemacht. Haldir kann jetzt im Level 10 drei Battailone Noldor Krieger herbeirufen. Soweit klappt auch alles, bis auf die "minlifetime/ maxlifetime". Der Timer zählt zwar runter, jedoch lösen sich die Eiheiten nicht auf wie zB. bei den SummonedRihirrim/ SummonedDunedain etc. Ich denke derjenige, der selber Moded, der weiß schon wovon ich rede. Was muss ich in welcher ini ändern, damit sich die Einheiten zb. nach 2 min. auflösen?
    Gruß, rhcurly


    -----------------------------
    Hero.ini/Engenering Parameter
    -----------------------------

    //--------------------------------------------------------------------------
    // Spawn NoldorWarrior Horde
    //--------------------------------------------------------------------------
    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_NoldorWarriorHorde_Summoned
    SpecialPowerTemplate = SpecialAbilityNoldorWarriorHorde_Summoned
    TriggeredBy = Upgrade_NoldorWarriorHorde_Summoned
    End

    Behavior = OCLSpecialPower ModuleTag_OCL_NoldorWarriorHorde_Summoned
    SpecialPowerTemplate = SpecialAbilityNoldorWarriorHorde_Summoned
    OCL = OCL_NoldorWarriorHorde_Summoned
    TriggerFX = FX_DunedainSummon
    CreateLocation = CREATE_AT_LOCATION
    StartsPaused = Yes
    SetModelCondition = ModelConditionState:USER_1
    SetModelConditionTime = 8.1
    End

    ----------------
    SpecialPower.ini
    ----------------

    SpecialPower SpecialAbilityNoldorWarriorHorde_Summoned
    Enum = SPECIAL_SUMMON_ALLIES
    ReloadTime = 480000 // in milliseconds
    PublicTimer = No
    RadiusCursorRadius = 100.0
    InitiateAtLocationSound = CaH_CallReinforcementsGoodMS
    Flags = LIMIT_DISTANCE NO_FORBIDDEN_OBJECTS
    MaxCastRange = 800
    ForbiddenObjectFilter = NO_SUMMON_ALLIES_NEAR_THESE
    ForbiddenObjectRange = 50.0
    End

    -----------
    Upgrade.ini
    -----------

    Upgrade Upgrade_NoldorWarriorHorde
    Type = OBJECT
    End

    -------
    OCL.ini
    -------

    ObjectCreationList OCL_NoldorWarriorHorde_Summoned
    CreateObject
    ObjectNames = NoldorWarriorHorde_Summoned
    Count = 3
    FadeIn = Yes
    FadeTime = 8000
    IgnoreCommandPointLimit = Yes
    Disposition = SPAWN_AROUND ;ABSOLUTE_ANGLE
    DispositionAngle = 90 ;315 ;SpawnAround uses this as the arc between guys
    DispositionIntensity = 300 ; and this for distance from center
    ;UseJustBuiltFlag = Yes
    ;StartingBusyTime = 5000
    ;Offset = X:-40 Y:-10 Z:0
    End

    CreateObject
    ObjectNames = EnshroudingMistPing
    Disposition = ON_GROUND_ALIGNED USE_WATER_SURFACE USE_CLIFF
    Count = 1
    ParticleSystem = EnshroudingMist02
    End

    CreateObject
    ObjectNames = GlorfindelStarlightObject
    End

    End

    ObjectCreationList OCL_SpawnNoldorWarrior_SummonedEgg
    CreateObject
    ObjectNames = NoldorWarrior_SummonedEgg
    IgnoreCommandPointLimit = Yes
    Disposition = LIKE_EXISTING
    End
    End

    ;-----------------
    ;NoldorWarrior.ini
    ;-----------------

    ChildObject NoldorWarrior_Summoned NoldorWarrior
    IsTrainable = No
    CommandPoints = 0
    CommandSet = NoldorWarriorCommandSet
    EquivalentTo = NoldorWarrior

    Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
    ; This one does the work, but the one in the horde displays the timer
    MinLifetime = 180000
    MaxLifetime = 180000
    DeathType = FADED
    End

    Behavior = SlowDeathBehavior ModuleTag_FadeDeath
    DeathTypes = NONE +FADED
    FadeDelay = 0
    FadeTime = 4000
    DestructionDelay = 4000
    DeathFlags = DEATH_2
    FX = INITIAL FX_RohirrimAlliesUnsummon
    Sound = INITIAL SpellGenericUnsummonFasterMS
    End
    End

    ;----------------------------------------
    ;------Horde.ini/noldorwarriorhorde------
    ;----------------------------------------

    ChildObject NoldorWarriorHorde_Summoned NoldorWarriorHorde
    IsTrainable = No
    CommandPoints = 0
    CommandSet = NoldorWarriorHordeCommandSet
    EquivalentTo = NoldorWarriorHorde
    KindOf = SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT INFANTRY HORDE ARCHER ARMY_SUMMARY LARGE_RECTANGLE_PATHFIND SUMMONED

    Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
    // This one displays the timer, but the one in the uint does the work
    MinLifetime = 180000
    MaxLifetime = 180000
    DeathType = FADED
    End
    End

    --------------
    Commandset.ini
    --------------

    CommandSet ElvenHaldirCommandSet
    1 = Command_ToggleStance
    2 = Command_ToggleHaldirWeapon
    3 = Command_HaldirFakeLeadershipButton
    4 = Command_HaldirGoldenArrow
    5 = Command_NoldorWarriorHorde_Summoned
    12 = Command_CaptureBuilding
    13 = Command_AttackMove
    14 = Command_Stop
    16 = Command_SetStanceBattle
    17 = Command_SetStanceAggressive
    18 = Command_SetStanceHoldGround
    End

    -----------------
    commandbutton.ini
    -----------------

    CommandButton Command_NoldorWarriorHorde_Summoned
    Command = SPECIAL_POWER
    SpecialPower = SpecialAbilityNoldorWarriorHorde_Summoned
    TextLabel = CONTROLBAR:ConstructNoldorWarriorHorde
    ButtonImage = BEElvenBarracks_NoldorWarriorsIcon
    Options = NEED_TARGET_POS CONTEXTMODE_COMMAND
    RadiusCursorType = SummonOathBreakersRadiusCursor
    CursorName = Bombard
    InvalidCursorName = GenericInvalid
    ButtonBorderType = ACTION
    ;DescriptLabel = CONTROLBAR:TooltipSoSSummonAllies_Level4
    InPalantir = Yes
    // UnitSpecificSound = AragornVoiceSummonOathbreakers
    // AutoAbility = Yes //
    // TriggerWhenReady = Yes //

    End

    -------------------
    Experiencelevel.ini
    -------------------

    ;-----------------------------------
    ExperienceLevel NoldorWarriorHorde_Summoned
    TargetNames = NoldorWarriorHorde_Summoned
    RequiredExperience = 1
    ExperienceAward = 50
    Rank = 10
    ;Upgrades =
    SelectionDecal
    Texture = decal_G_level4
    Texture2 = decal_good_CO
    Style = SHADOW_MERGE_DECAL
    OpacityMin = 80%
    OpacityMax = 100%
    MinRadius = HORDE_DECAL_MIN_RADIUS
    MaxRadius = 200
    MaxSelectedUnits = 40
    End
    End
    ;----------------------------------
    ExperienceLevel HaldirLevel3
    TargetNames = ElvenHaldir
    RequiredExperience = HALDIR_LVL3_EXP_NEEDED
    ExperienceAward = HALDIR_LVL3_EXP_AWARD
    AttributeModifiers = HeroLevelUpDamage2
    Rank = 3
    LevelUpFx = FX:GandalfLevelUp1FX
    Upgrades = Upgrade_HaldirLeadership
    ;LevelUpOCL = OCL_GandalfLevelUp1OCL
    SelectionDecal
    Texture = decal_hero_good
    Style = SHADOW_ALPHA_DECAL
    OpacityMin = 50%
    OpacityMax = 100%
    MinRadius = 40 ;16
    MaxRadius = 200 ;16
    MaxSelectedUnits = 40 ;1
    End
    END

    ExperienceLevel HaldirLevel5
    TargetNames = ElvenHaldir
    RequiredExperience = HALDIR_LVL5_EXP_NEEDED
    ExperienceAward = HALDIR_LVL5_EXP_AWARD
    AttributeModifiers = HeroLevelUpDamage4
    Rank = 5
    LevelUpFx = FX:GandalfLevelUp1FX
    Upgrades = Upgrade_HaldirGoldenArrow ;Upgrade_HaldirLeadership
    ;LevelUpOCL = OCL_GandalfLevelUp1OCL
    SelectionDecal
    Texture = decal_hero_good
    Style = SHADOW_ALPHA_DECAL
    OpacityMin = 50%
    OpacityMax = 100%
    MinRadius = 40 ;16
    MaxRadius = 200 ;16
    MaxSelectedUnits = 40 ;1
    End
    END
    ExperienceLevel HaldirLevel7
    TargetNames = ElvenHaldir
    RequiredExperience = HALDIR_LVL7_EXP_NEEDED
    ExperienceAward = HALDIR_LVL7_EXP_AWARD
    AttributeModifiers = HeroLevelUpDamage6
    Rank = 7
    LevelUpFx = FX:GandalfLevelUp1FX
    ;LevelUpOCL = OCL_GandalfLevelUp1OCL
    Upgrades = Upgrade_NoldorWarriorHorde_Summoned ;Upgrade_HaldirGoldenArrow
    ;Upgrades = Upgrade_LegolasArrowWind
    SelectionDecal
    Texture = decal_hero_good
    Style = SHADOW_ALPHA_DECAL
    OpacityMin = 50%
    OpacityMax = 100%
    MinRadius = 40 ;16
    MaxRadius = 200 ;16
    MaxSelectedUnits = 40 ;1
    End
    END
    Zuletzt geändert von rhcurly; 11.04.2007, 11:24.
Lädt...
X