New weapon

The place to post your WML questions and answers.

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.
Post Reply
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

New weapon

Post by tribes45 »

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
Ceres
Forum Regular
Posts: 620
Joined: September 18th, 2010, 7:56 pm
Location: Germany

Re: New weapon

Post by Ceres »

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".
User avatar
Luke the Flaming
Posts: 215
Joined: October 18th, 2006, 6:25 pm

Re: New weapon

Post by Luke the Flaming »

(Also, as a non-WML side note: "it's" --> "its".)
O, Wind, if Winter comes, can Spring be far behind?
tribes45
Posts: 123
Joined: June 24th, 2010, 12:40 am

Re: New weapon

Post by tribes45 »

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
Post Reply