New weapon
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
New weapon
Hello, I'm trying to enhance a hero in my tale but giving him superior stats, but It's not working. Could someone please point out what I'm doing wrong? None of what I put is taking affect to the hero, and yes, I spelt his name correctly.
Code: Select all
[event]
name=turn 1
[object]
[filter]
side=1
id=Kasadin
[/filter]
id=High_class_training_sword
name= _ "High class training sword"
image=attacks/sword-steel.png
duration=forever
description= _ "This sword was passed on generation beyond generation is Kasadin's family, it's craftmanship is outstanding."
[effect]
apply_to=attack
name=Enchanted Sword
description= _ "Holy sword"
image=attacks/sword-steel.png
type=arcane
range=melee
damage=16
number=4
[set_specials]
{WEAPON_SPECIAL_MAGICAL}
[/set_specials]
[/effect]
[/object]
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
Re: New weapon
Assuming you want to add a melee attack (which is easier and the way it's usually done), change "
apply_to=attack
" to "apply_to=new_attack
".Co-Creator of The Fellowship of the Clay (BfW 1.10) ~~ Maintainer of the German Code of Conduct
How to isolate problematic WML code ~~ WML error messages and their reasons
How to isolate problematic WML code ~~ WML error messages and their reasons
- Luke the Flaming
- Posts: 215
- Joined: October 18th, 2006, 6:25 pm
Re: New weapon
(Also, as a non-WML side note: "it's" --> "its".)
O, Wind, if Winter comes, can Spring be far behind?
Re: New weapon
Thanks Ceres.
"In peace, sons bury their fathers. In war, fathers bury their sons." -Herodotus
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein
"Two things are infinite, the universe and Human stupidity. Although, I'm not sure about the universe. -Albert Einstein