CAH Lightning Sword
Started by Hocaska, Mar 16 2010 10:43 PM
11 replies to this topic
#1
Posted 16 March 2010 - 10:43 PM
I'm trying to add Gandalfs lightning sword to the CAH powers
i have edited the following files:
Commandset.ini
Commandbutton.ini
CAH special powers and upgrades
but i'm stuck as what to put in the CAHgamedata file
thanx for the help
i have edited the following files:
Commandset.ini
Commandbutton.ini
CAH special powers and upgrades
but i'm stuck as what to put in the CAHgamedata file
thanx for the help
#2
Posted 16 March 2010 - 11:00 PM
...You should not have to put anything in the cah gamedata file... Unless i misunderstood what file you meant
Ridder Geel
#3
Posted 16 March 2010 - 11:18 PM
so what is this about
Token 'SPECIAL_GONDOR_GANDALF_LIGHTNING_SWORD' is not a
valid member of the index list
Errorparsing field 'Enum' in block 'SpecialPower' in file
'Data\INI\CreateAHeroSpecialPowers.ini', line 70.
Error parsing INI block ' Enum' in file
'Data\INI\ SpecialPowers.ini'.
Token 'SPECIAL_GONDOR_GANDALF_LIGHTNING_SWORD' is not a
valid member of the index list
Errorparsing field 'Enum' in block 'SpecialPower' in file
'Data\INI\CreateAHeroSpecialPowers.ini', line 70.
Error parsing INI block ' Enum' in file
'Data\INI\ SpecialPowers.ini'.
#4
Posted 17 March 2010 - 07:35 AM
...How is that possible... Does Gandalf's special power thing use that ENUM?
The enum should be...
SPECIAL_ARROW_STORM
Or something like that...
The enum should be...
SPECIAL_ARROW_STORM
Or something like that...
Ridder Geel
#5
Posted 18 March 2010 - 12:40 AM
its not crashing anymore thats sorted but the text is wrong and the you can click it before you hit the right lvl but nothing happens not radius or anything
#6
Posted 18 March 2010 - 07:07 AM
What does the commandbutton look like?
Ridder Geel
#7
Posted 18 March 2010 - 10:39 AM
exactly like gandalfs lightning sword
#8
Posted 18 March 2010 - 05:10 PM
Then how the heck did you try to make the CAH purchase the power??
Ridder Geel
#9
Posted 18 March 2010 - 10:59 PM
This is all the work ive done.
CAH gamedata
#define CREATE_A_HERO_LIGHTNING_SWORD_RANGE 750
#define CREATE_A_HERO_LIGHTNING_SWORD_START_RANGE 190
CAH special powers
SpecialPower SpecialAbilityCreateAHeroLightningSword
Enum = SPECIAL_ARROW_STORM
ReloadTime = 240000 ; in milliseconds
RadiusCursorRadius = 120.0
ViewObjectDuration = 5000
ViewObjectRange = 120
End
CAH upgrades
Upgrade Upgrade_CreateAHeroLightningSword
Type = OBJECT
End
Commandbutton.ini
CommandButton Command_CreateAHero_SpecialAbilityLightningSword
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityLightningSword
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CAH_LightningSword
ButtonImage = HSGandalfLightningSword
RadiusCursorType = LightningSwordRadiusCursor
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipLightningSword
AutoAbility = No
InPalantir = Yes
CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassHeroOfTheWest
CreateAHeroUIMinimumLevel = 2
CreateAHeroUICostIfSelected = CAH_LIGHTNINGSWORD_COST
End
gamedata.ini (CAH ability cost)
#define CAH_LIGHTNINGSWORD_COST 250
and i just realised i might have to add bits in the data\ini\object\CAH\.... files depending on the relevent ones. (bumma)
CAH gamedata
#define CREATE_A_HERO_LIGHTNING_SWORD_RANGE 750
#define CREATE_A_HERO_LIGHTNING_SWORD_START_RANGE 190
CAH special powers
SpecialPower SpecialAbilityCreateAHeroLightningSword
Enum = SPECIAL_ARROW_STORM
ReloadTime = 240000 ; in milliseconds
RadiusCursorRadius = 120.0
ViewObjectDuration = 5000
ViewObjectRange = 120
End
CAH upgrades
Upgrade Upgrade_CreateAHeroLightningSword
Type = OBJECT
End
Commandbutton.ini
CommandButton Command_CreateAHero_SpecialAbilityLightningSword
Command = SPECIAL_POWER
SpecialPower = SpecialAbilityLightningSword
Options = NEED_TARGET_POS CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CAH_LightningSword
ButtonImage = HSGandalfLightningSword
RadiusCursorType = LightningSwordRadiusCursor
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:ToolTipLightningSword
AutoAbility = No
InPalantir = Yes
CreateAHeroUIAllowableUpgrades = Upgrade_CreateAHero_ClassHeroOfTheWest
CreateAHeroUIMinimumLevel = 2
CreateAHeroUICostIfSelected = CAH_LIGHTNINGSWORD_COST
End
gamedata.ini (CAH ability cost)
#define CAH_LIGHTNINGSWORD_COST 250
and i just realised i might have to add bits in the data\ini\object\CAH\.... files depending on the relevent ones. (bumma)
#10
Posted 18 March 2010 - 11:28 PM
You do know that you cant define stuff in the gamedata.ini?
Unless u made a gamedata.ini in the object folder...
Unless u made a gamedata.ini in the object folder...
Ridder Geel
#11
Posted 27 October 2010 - 02:25 PM
Ridder been a long time since i have been here just got back into LOTR and have come across this i remember everthing i was trying to do but i can't fix this problem :
Unknown block 'AttackRange'.
Error parsing INI block'AttackRange' in file 'Data\INI\Weapon.ini'.
The bold is what i have done in the Weapon.ini
//------------------------------------------------------------------------------
Weapon CreateAHeroSpear
AttackRange = 300.0
LeechRangeWeapon = Yes
WeaponSpeed = 261 // dist/sec
MinWeaponSpeed = 161
MaxWeaponSpeed = 301 // dist/sec Upper limit on scaling, when attacking past nominal "max" range
FireFX = FX_EomerSpearThrow
ScaleWeaponSpeed = Yes // Used for lob weapons, scales speed proportional to range
HitPercentage = 100
ScatterRadius = 0.0 //When this weapon misses it can randomly miss by as much as this distance.
AntiAirborneVehicle = Yes
AntiAirborneMonster = Yes
PreAttackDelay = 1
PreAttackType = PER_SHOT // Do the delay each time we attack a new target
FiringDuration = 2000 // Duration of the archer firing shot is 500ms.
HoldAfterFiringDelay = 2000
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
End
//------------------------------------------------------------------------------
[b]Weapon GandalfLightningSwordBlastWeapon ; BALANCE GandalfStaffWeapon
AttackRange = GANDALF_LIGHTNING_RANGE ;600
WeaponSpeed = 801 ; dist/sec
HitPercentage = 100 ; When this weapon is used it will hit exactly 100% of the time.
DelayBetweenShots = 500 ; time between shots, msec
PreAttackDelay = 200
PreAttackType = PER_SHOT ; Do the delay each time we attack a new target
FireFX = FX_GandalfLightningSwordBlastWeapon
FiringDuration = 1
AntiAirborneVehicle = Yes
AntiAirborneMonster = Yes
RadiusDamageAffects = ENEMIES NOT_SIMILAR
DamageNugget ; A basic Nugget that just does damage
Damage = GANDALF_LIGHTNING_DAMAGE_FLAME
DamageType = FLAME
DamageFXType = ELECTRIC
DeathType = BURNED
End
DamageNugget ; A basic Nugget that just does damage
Damage = GANDALF_LIGHTNING_DAMAGE
DamageType = MAGIC
DamageFXType = ELECTRIC
DeathType = BURNED
End
End[b]
//------------------------------------------------------------------------------
Weapon CreateAHeroWordOfPower // Big Blue 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_CreateAHeroPreAttackBlast
FireFX = FX_GandalfBlast
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
//------------------------------------------------------------------------------
Would be great if we can this get working.
Thanx in advance
Unknown block 'AttackRange'.
Error parsing INI block'AttackRange' in file 'Data\INI\Weapon.ini'.
The bold is what i have done in the Weapon.ini
//------------------------------------------------------------------------------
Weapon CreateAHeroSpear
AttackRange = 300.0
LeechRangeWeapon = Yes
WeaponSpeed = 261 // dist/sec
MinWeaponSpeed = 161
MaxWeaponSpeed = 301 // dist/sec Upper limit on scaling, when attacking past nominal "max" range
FireFX = FX_EomerSpearThrow
ScaleWeaponSpeed = Yes // Used for lob weapons, scales speed proportional to range
HitPercentage = 100
ScatterRadius = 0.0 //When this weapon misses it can randomly miss by as much as this distance.
AntiAirborneVehicle = Yes
AntiAirborneMonster = Yes
PreAttackDelay = 1
PreAttackType = PER_SHOT // Do the delay each time we attack a new target
FiringDuration = 2000 // Duration of the archer firing shot is 500ms.
HoldAfterFiringDelay = 2000
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
ProjectileNugget // A Nugget that creates an Object and sends it to the target with a Warhead
ProjectileTemplateName = RohanEomerSpearProjectile
WarheadTemplateName = RohanEomerSpearWarhead
End
End
//------------------------------------------------------------------------------
[b]Weapon GandalfLightningSwordBlastWeapon ; BALANCE GandalfStaffWeapon
AttackRange = GANDALF_LIGHTNING_RANGE ;600
WeaponSpeed = 801 ; dist/sec
HitPercentage = 100 ; When this weapon is used it will hit exactly 100% of the time.
DelayBetweenShots = 500 ; time between shots, msec
PreAttackDelay = 200
PreAttackType = PER_SHOT ; Do the delay each time we attack a new target
FireFX = FX_GandalfLightningSwordBlastWeapon
FiringDuration = 1
AntiAirborneVehicle = Yes
AntiAirborneMonster = Yes
RadiusDamageAffects = ENEMIES NOT_SIMILAR
DamageNugget ; A basic Nugget that just does damage
Damage = GANDALF_LIGHTNING_DAMAGE_FLAME
DamageType = FLAME
DamageFXType = ELECTRIC
DeathType = BURNED
End
DamageNugget ; A basic Nugget that just does damage
Damage = GANDALF_LIGHTNING_DAMAGE
DamageType = MAGIC
DamageFXType = ELECTRIC
DeathType = BURNED
End
End[b]
//------------------------------------------------------------------------------
Weapon CreateAHeroWordOfPower // Big Blue 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_CreateAHeroPreAttackBlast
FireFX = FX_GandalfBlast
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
//------------------------------------------------------------------------------
Would be great if we can this get working.
Thanx in advance
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users