cant figure out [set_specials]

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
User avatar
LordAwsomeness
Posts: 93
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

cant figure out [set_specials]

Post by LordAwsomeness » October 11th, 2019, 11:01 pm

Hi I am trying to find a way to give an attack a weapon special but it doesn't seem to be working. here is the code:

Code: Select all

[object]
duration=forever
take_only_once=no

[effect] 
apply_to=attack
[set_specials]
{WEAPON_SPECIAL_{SPECIAL}}
[/set_specials]
[/effect]
[/object]
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure

User avatar
Ravana
Forum Moderator
Posts: 2209
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: cant figure out [set_specials]

Post by Ravana » October 12th, 2019, 7:31 am

:inspect how the object looks in unit WML.

User avatar
LordAwsomeness
Posts: 93
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: cant figure out [set_specials]

Post by LordAwsomeness » October 12th, 2019, 4:22 pm

Ravana wrote:
October 12th, 2019, 7:31 am
:inspect how the object looks in unit WML.
Solved it! Thank you!
- Been playing Wesnoth since 2004 and the 1.0.x versions.
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure

Post Reply