I'm trying to change attack speed from different types of weapons. I change argn1 value on @HitTry and on melee weapons it works perfectly, but with any bows or crossbows, changes in argn1 value and nothing happens, ranged attack speed always the same.
I try use 0.56c release or latest 0.56d
In sphere.ini:
Code:
CombatDamageEra=0
CombatSpeedEra=0
SpeedScaleFactor=0
bow script:
Code:
[itemdef test_bow]
id=i_bow
name=test bow
tdata3=i_arrow
tdata4=i_arrow_x
type=t_weapon_bow
flip=1
skill=Archery
dam=10,20
value=50
weight=20.0
reqstr=30
speed=50
twohands=y
tevents=t_tooltips
resources=30 i_ingot_iron
skillmake=blacksmithing 30.0
category=Weapons
subsection=Professions - Blacksmith - Bows
description=Bow
On=@Create
hitpoints=25
If i try change
Code:
on=@hittry
if (<action> == skill_swordsmanship) || (<action> == skill_macefighting) || (<action> == skill_fencing)
argn1 = 4.0
sysmessage Speed: <fval(<argn1>)>
endif
All ok and changes in argn1 value work fine
But for ranged weapons:
Code:
if (<action> == skill_archery)
argn1 = 4.0
sysmessage <fval(<argn1>)>
endif
or
if (<findlayer(layer_hand2).type>==t_weapon_bow) ||(<findlayer(layer_hand2).type>==t_weapon_xbow)
sysmessage WEAPON: <argo.name>
argn1=4.0
sysmessage <fval(<argn1>)>
endif
nothing happen, ranged speed always same and too fast
Please help, what could be the problem?