Jump to content


Photo

sarumans word of power

word of power saruman

Best Answer Trevor533, 19 August 2017 - 02:56 AM

i solved the problem :) ty 

Go to the full post


  • Please log in to reply
1 reply to this topic

#1 Trevor533

Trevor533
  • Members
  • 7 posts

Posted 18 August 2017 - 11:12 PM

Hello guys, im tryin to give Saruman the new Red word of power but im kinda stuck here could you help me out ? 

I used Kotw files and tried to put it in my bfme file(elven alliance).

Here are all the codes i edited.

 

I can play the game with all these codes but once i create Saruman, the power itself there is grey and i cannot click on it, like hed need something still.

Once he reaches level 10 it glows for a few secs but then its grey again. Couldnt activate the power anyways.

 

Any ideas fixing this ?

 

fxlist.ini

 

; ----------------------------------------------
; This is Saruman's Pre Attack Energy Gathering (version)
FXList FX_SarumanPreAttackBlast
  ParticleSystem
    Name = SarumanBlastInitialWave
    Offset = X:0.0 Y:0.0 Z:20.0
  End
  ParticleSystem
    Name = SarumanBlastInitialCenter
    Offset = X:0.0 Y:0.0 Z:20.0
  End
  ParticleSystem
    Name = SarumanBlastInitialVortex
    Offset = X:0.0 Y:0.0 Z:20.0
  End
  ParticleSystem
    Name = SarumanBlastRipple
    Offset = X:0.0 Y:0.0 Z:0.0
  End
  Sound
    Name = GandalfSpellVoice
  End
End
 
; ----------------------------------------------
; This is Saruman's Shockwave Blast Attack (version)
FXList FX_SarumanBlast
  ParticleSystem
    Name = SarumanBlastFinalLight
    Offset = X:0.0 Y:0.0 Z:60   ;Z:8.0
  End
  ParticleSystem
    Name = SarumanBlastFinalShockWave
    Offset = X:0.0 Y:0.0 Z:20.0
  End
  ParticleSystem
    Name = SarumanBlastDust
    Offset = X:0.0 Y:0.0 Z:15.0
  End
;    ViewShake
;    Type = CINE_EXTREME
;  End
  Sound
    Name = GandalfBlastWeapon
  End
End
 
fxparticlesystem.ini
 
FXParticleSystem SarumanBlastDust
  System
    Priority = CRITICAL
    Shader = ALPHA
    ParticleName = EXSmokePuf07.tga
    PerParticleAttachedSystem = GandalfBlastDustCore
    Lifetime = 100 100
    SystemLifetime = 5
    Size = 1 2
    BurstCount = 25 50
    InitialDelay = 5 5
  End
  Color = DefaultColor
    Color1 = R:181 G:190 B:196 0
  End
  Alpha = DefaultAlpha
    Alpha1 = 0.2 0.3 0
    Alpha2 = -2 0 100
  End
  Update = DefaultUpdate
    SizeRate = 2 15
    SizeRateDamping = 0.8 0.8
    AngleZ = 0 7
    AngularRateZ = -0.1 -0.1
    AngularDamping = 0.92 0.94
    Rotation = ROTATE_V
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.92 0.94
    DriftVelocity = X:0.032 Y:0.064 Z:0.15
  End
  EmissionVelocity = OutwardEmissionVelocity
    Speed = 20 20
  End
  EmissionVolume = CylinderEmissionVolume
    Radius = 12
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastDustCore
  System
    Priority = AREA_EFFECT
    Shader = ALPHA
    ParticleName = EXCloud01.tga
    Lifetime = 100 100
    SystemLifetime = 15
    Size = 5 10
    BurstDelay = 20 20
    BurstCount = 1 1
    InitialDelay = 15 15
  End
  Color = DefaultColor
    Color1 = R:255 G:243 B:230 0
    Color2 = R:236 G:238 B:240 30
  End
  Alpha = DefaultAlpha
    Alpha1 = 0.1 0.1 0
    Alpha2 = 0.2 0.2 5
    Alpha3 = 0 0 100
  End
  Update = DefaultUpdate
    SizeRate = 3 8
    SizeRateDamping = 0.9 0.85
    AngleZ = -0.25 0.25
    AngularRateZ = -0.1 0.1
    AngularDamping = 0.95 0.94
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.9 0.92
    DriftVelocity = X:0 Y:0 Z:0.1
  End
  EmissionVelocity = OrthoEmissionVelocity
    X = -2 2
    Y = -1 2
    Z = 0 4
  End
  EmissionVolume = CylinderEmissionVolume
    Radius = 24
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastFinalLight
  System
    Priority = ALWAYS_RENDER
    ParticleName = EXexplo01.tga
    Lifetime = 10 10
    SystemLifetime = 5
    Size = 10 10
    BurstCount = 2 2
  End
  Color = DefaultColor
    Color1 = R:231 G:67 B:91 0
    Color2 = R:0 G:0 B:0 10
  End
  Update = DefaultUpdate
    SizeRate = 80 160
    SizeRateDamping = 0.8 0.7
    AngleZ = -1 1
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    Gravity = 1
    VelocityDamping = 1 1
  End
  EmissionVelocity = OutwardEmissionVelocity
    Speed = 1 1
  End
  EmissionVolume = PointEmissionVolume
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastFinalShockWave
  System
    Priority = ALWAYS_RENDER
    ParticleName = EXRing01.tga
    Lifetime = 40 40
    SystemLifetime = 5
    Size = 1 1
    BurstCount = 1 1
    IsGroundAligned = Yes
  End
  Color = DefaultColor
    Color1 = R:200 G:26 B:52 0
    Color2 = R:0 G:0 B:0 40
    ColorScale = -5 0
  End
  Update = DefaultUpdate
    SizeRate = 35 35
    SizeRateDamping = 1 1
    AngleZ = -1 1
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.8 0.8
  End
  EmissionVelocity = OutwardEmissionVelocity
  End
  EmissionVolume = PointEmissionVolume
    IsHollow = Yes
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastHitFlare
  System
    Priority = AREA_EFFECT
    ParticleName = EXexplo01.tga
    Lifetime = 10 10
    SystemLifetime = 20
    Size = 10 10
    StartSizeRate = -0.2 -0.2
    BurstDelay = 1 1
    BurstCount = 4 4
    InitialDelay = 5 5
  End
  Color = DefaultColor
    Color1 = R:211 G:90 B:100 0
    Color2 = R:0 G:0 B:0 10
  End
  Update = DefaultUpdate
    SizeRate = 5 10
    SizeRateDamping = 0.8 0.7
    AngleZ = -3 3
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    Gravity = 0.08
    VelocityDamping = 0.8 0.85
  End
  EmissionVelocity = OutwardEmissionVelocity
  End
  EmissionVolume = PointEmissionVolume
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastInitialCenter
  System
    Priority = ALWAYS_RENDER
    ParticleName = EXLnzFlar1.tga
    Lifetime = 40 40
    SystemLifetime = 20
    Size = 5 5
    BurstDelay = 5 5
    BurstCount = 1 1
    InitialDelay = 20 20
  End
  Color = DefaultColor
    Color2 = R:218 G:46 B:50 20
    Color3 = R:0 G:0 B:0 40
  End
  Update = DefaultUpdate
    SizeRate = 2 2
    SizeRateDamping = 1.03 1.03
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.75 0.8
  End
  EmissionVelocity = OutwardEmissionVelocity
  End
  EmissionVolume = LineEmissionVolume
    StartPoint = X:0 Y:0 Z:8
    EndPoint = X:0 Y:0 Z:8
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastInitialVortex
  System
    Priority = ALWAYS_RENDER
    ParticleName = EXLnzFlar2.tga
    Lifetime = 40 40
    SystemLifetime = 20
    Size = 5 5
    BurstDelay = 1 1
    BurstCount = 20 20
    IsParticleUpTowardsEmitter = Yes
  End
  Color = DefaultColor
    Color2 = R:242 G:21 B:54 5
  End
  Update = DefaultUpdate
    SizeRateDamping = 1 1
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    VelocityDamping = 1.1 1.1
  End
  EmissionVelocity = OutwardEmissionVelocity
    Speed = -0.4 -0.4
  End
  EmissionVolume = CylinderEmissionVolume
    IsHollow = Yes
    Radius = 240
    Length = 16
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastInitialWave
  System
    Priority = ALWAYS_RENDER
    ParticleName = EXRing01.tga
    Lifetime = 25 25
    SystemLifetime = 45
    Size = 400 400
    StartSizeRate = 1 1
    BurstDelay = 2 2
    BurstCount = 1 1
    IsGroundAligned = Yes
  End
  Color = DefaultColor
    Color2 = R:134 G:13 B:31 10
    Color3 = R:0 G:0 B:0 22
  End
  Update = DefaultUpdate
    SizeRate = -10 -10
    SizeRateDamping = 1.05 1.05
    AngleZ = -180 180
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.75 0.8
  End
  EmissionVelocity = OutwardEmissionVelocity
    Speed = -4 -4
    OtherSpeed = -4 -4
  End
  EmissionVolume = LineEmissionVolume
    IsHollow = Yes
    StartPoint = X:0 Y:0 Z:-8
    EndPoint = X:0 Y:0 Z:10
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastRipple
  System
    Priority = CRITICAL
    Shader = ALPHA
    ParticleName = SMUDGE.tga
    Lifetime = 25 25
    SystemLifetime = 25
    Size = 5 5
    BurstCount = 2 3
    InitialDelay = 15 15
  End
  Color = DefaultColor
    Color1 = R:255 G:255 B:255 0
  End
  Alpha = DefaultAlpha
    Alpha1 = 1 1 0
  End
  Update = DefaultUpdate
    SizeRate = 3 3
    SizeRateDamping = 1 1
    AngleZ = 0.01 0.02
    AngularDamping = 1 1
  End
  Physics = DefaultPhysics
    VelocityDamping = 0.96 0.97
    DriftVelocity = X:0 Y:0 Z:1
  End
  EmissionVelocity = CylindricalEmissionVelocity
    Radial = 1 2
    Normal = 1 1
  End
  EmissionVolume = CylinderEmissionVolume
    Radius = 32
    Length = 50
  End
  Draw = DefaultDraw
  End
End
 
FXParticleSystem SarumanBlastTier1
  System
    Priority = WEAPON_TRAIL
    ParticleName = EXFire04.tga
    Lifetime = 25 25
    Size = 50 50
    StartSizeRate = -0.16 -0.16
    BurstCount = 1 1
  End
  Color = DefaultColor
    Color1 = R:134 G:13 B:31 0
    Color2 = R:0 G:0 B:0 25
  End
  Update = DefaultUpdate
    SizeRate = 2 2
    SizeRateDamping = 0.9 0.9
    AngleZ = -2 2
    AngularRateZ = -0.01 0.01
  End
  Physics = DefaultPhysics
    VelocityDamping = 1 1
  End
  EmissionVelocity = OrthoEmissionVelocity
  End
  EmissionVolume = LineEmissionVolume
    StartPoint = X:0 Y:0 Z:8
    EndPoint = X:0 Y:0 Z:10
  End
  Draw = DefaultDraw
  End

 

upgrade.ini

 

;---------EVIL LVL 10--------;

Upgrade Upgrade_EvilHeroLV10Ability
  Type              = OBJECT
End
 
specialpower.ini

 

SpecialPower SpecialAbilitySarumanWordOfPower
    Enum            = SPECIAL_WORD_OF_POWER
    ReloadTime        = 360000
    PublicTimer        = No
End
 

experiencelevels.ini

 

ExperienceLevel    SarumanLevel10

    TargetNames                = IsengardSaruman
    RequiredExperience    = SARUMAN_LVL10_EXP_NEEDED 
    ExperienceAward          =    SARUMAN_LVL10_EXP_AWARD    
    AttributeModifiers    = HeroLevelUpDamage9
    Rank                        = 10
    Upgrades                    = Upgrade_EvilHeroLV10Ability
    LevelUpFx                  =    FX:GandalfLevelUp1FX
    SelectionDecal
        Texture                    = decal_hero_evil
        Style                      =    SHADOW_ALPHA_DECAL
        OpacityMin              =    50%    
        OpacityMax              =    100%
        MinRadius                = 40
        MaxRadius                = 200
        MaxSelectedUnits    = 40
    End    
END
 
commandbutton.ini
 
CommandButton Command_SpecialAbilitySarumanWordOfPower
  Command                 = SPECIAL_POWER 
  SpecialPower            = SpecialAbilitySarumanWordOfPower
;  Options                 = 
  TextLabel               = CONTROLBAR:WordofPower
  ButtonImage             = Gandolf_radcircle
  ButtonBorderType        = ACTION 
  DescriptLabel           = CONTROLBAR:ToolTipWordofPower
  AutoAbility              = Yes
  PresetRange              = 120.0
  UnitSpecificSound       = 
  InPalantir              = Yes
End
 
commandset.ini
 
CommandSet SarumanCommandSet
    1  = Command_SpecialAbilityIsengardWizardBlast
    2  = Command_SarumanFireball
    3  = Command_SpecialAbilityDominateEnemy
    4  = Command_SpecialAbilitySpeechCraft
    5  = Command_SarumanLeadership
    6  = Command_SpecialAbilitySarumanWordOfPower
    13 = Command_AttackMove
    14 = Command_Stop
    15 = Command_Guard
End
 
File with Saruman.ini - Animation
 
;;; WORD OF POWER SPECIAL POWER ;;;
        AnimationState          = SPECIAL_WEAPON_THREE
            Animation            
                AnimationName        = IUSaruman_SKL.IUSaruman_ATNA
                AnimationMode        = ONCE
            End
            FrameForPristineBonePositions = 27
        End
        
        ; --- Attacking Anims [Weapon_A]
        AnimationState        = FIRING_OR_PREATTACK_A            
            Animation           = IUSaruman_ATKC
                AnimationName     = IUSaruman_SKL.IUSaruman_ATKC
                AnimationMode     = ONCE
                UseWeaponTiming        =    Yes    
            End
            
            Animation           = IUSaruman_ATKD
                AnimationName     = IUSaruman_SKL.IUSaruman_ATKD 
                AnimationMode     = ONCE
                UseWeaponTiming        =    Yes    
            End            
        End
 
 
 
File with Saruman.ini - Engineering parameters
 
 
;;; WORD OF POWER (RED RING BLAST) SPELL ;;;
    Behavior = UnpauseSpecialPowerUpgrade ModuleTag_WordEnablerstw23
        SpecialPowerTemplate = SpecialAbilitySarumanWordOfPower
        TriggeredBy = Upgrade_EvilHeroLV10Ability
    End
    Behavior = SpecialPowerModule ModuleTag_WordStarterstw24       
        SpecialPowerTemplate      = SpecialAbilitySarumanWordOfPower
        UpdateModuleStartsAttack  = Yes
        StartsPaused                = Yes
;        InitiateSound            = SarumanWordOfPower
    End
    Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_WordWeaponFireUpdatestw25   
        SpecialPowerTemplate    = SpecialAbilitySarumanWordOfPower
        WhichSpecialWeapon        = 3
        SkipContinue            = Yes
 
        UnpackTime              = 1000 ;;;1500 
        PackTime                = 1        
        FreezeAfterTriggerDuration = 2000 ;;;2500 ; Hold AI for this long after we fire.
        
        AwardXPForTriggering    = 0        
        StartAbilityRange        = 80.0
        
        SpecialWeapon            = SarumanWordOfPower
    End
 
weapon.ini
 
;------------------------------------------------------------------------------
Weapon SarumanWordOfPower ; Big Red Ring Blast
IdleAfterFiringDelay = 0
AttackRange = GANDALF_WORD_OF_POWER_RANGE
MinimumAttackRange = 0.8
WeaponSpeed = 401         ; dist/sec 
MinWeaponSpeed = 241
MaxWeaponSpeed = 601      ; dist/sec Upper limit on scaling, when attacking past nominal "max" range
ScaleWeaponSpeed = Yes ; Used for lob weapons, scales speed proportional to range
RadiusDamageAffects = ENEMIES NOT_SIMILAR
DelayBetweenShots = 5000               ; time between shots, msec
PreAttackDelay        = 2600
PreAttackType         = PER_ATTACK ; Do the delay each time we attack a new target
PreAttackFX           = FX_SarumanPreAttackBlast
FireFX                = FX_SarumanBlast
FiringDuration      = 1400
DamageNugget                        ; A basic Nugget that just does damage
Damage = GANDALF_WORD_OF_POWER_DAMAGE
Radius = 250.0
DamageType = MAGIC
DamageFXType = MAGIC
DeathType = EXPLODED
DamageSpeed = 700.0 ; must match the ShockWaveSpeed below
End
MetaImpactNugget                    ; A Nugget that throws things back with force
HeroResist = .75
ShockWaveAmount   = 70.0
ShockWaveRadius   = 500.0
ShockWaveTaperOff = 1.0
ShockWaveZMult    = 1.000
ShockWaveSpeed  = 700.0 
End
End

Edited by Trevor533, 19 August 2017 - 02:13 AM.


#2 Trevor533

Trevor533
  • Members
  • 7 posts

Posted 19 August 2017 - 02:56 AM   Best Answer

i solved the problem :) ty 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users