cant figure out [set_specials]

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

cant figure out [set_specials]

Post by LordAwsomeness »

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
- Creator of LA_RPG ERA
User avatar
Ravana
Forum Moderator
Posts: 2950
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: cant figure out [set_specials]

Post by Ravana »

:inspect how the object looks in unit WML.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: cant figure out [set_specials]

Post by LordAwsomeness »

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
- Creator of LA_RPG ERA
Post Reply