trollebror
Developer
What I want to do is that any wand/rod/bow/sword (any weapon) that I point to a script in the weapons.xml should behave like they normally do (like if I would not have pointed a script to this weapon).
Why do I want this? Let's say I want to apply this "somescript.lua" to 100 different weapons, then I don't want to write all the different combatObjects to fit all these different weapon type/effect/damage calculation etc.
Hope the explanation is good enough!
- - - Updated - - -
Limos?
Code:
<melee id="2376" function="default" [COLOR="#FF0000"]script="somescript.lua"[/COLOR] />
<distance id="2456" function="default" [COLOR="#FF0000"]script="somescript.lua"[/COLOR] />
<wand id="13759" level="35" mana="15" min="60" max="90" type="death" [COLOR="#FF0000"]script="somescript.lua"[/COLOR] >
<vocation name="Druid"/>
<vocation name="Sorcerer"/>
</wand>
Why do I want this? Let's say I want to apply this "somescript.lua" to 100 different weapons, then I don't want to write all the different combatObjects to fit all these different weapon type/effect/damage calculation etc.
Hope the explanation is good enough!
- - - Updated - - -
Limos?