need help creating custom [status]

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.

need help creating custom [status]

Post by LordAwsomeness »

so I am curious if there is a way to create my own custom status effect. I want to create several that have different functions. For example, I would like to create a status effect called "frost" or "frozen" that is similar to petrifies. I am hoping that I can change the colors around a bit to make it more frozen themed rather than the standard gray color. If anybody knows if you can do this please let me know! the wiki doesn't say anything about it but I still hope that is possible.
- 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
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: need help creating custom [status]

Post by josteph »

Yes, it's possible. Run wesnoth -t and look at the Thief at 12,8, it has a custom "entangled" status.

There was recently a bug where custom statuses wouldn't show in the sidebar, but it's been fixed, see #4376.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

josteph wrote: October 13th, 2019, 12:49 am Yes, it's possible. Run wesnoth -t and look at the Thief at 12,8, it has a custom "entangled" status.

There was recently a bug where custom statuses wouldn't show in the sidebar, but it's been fixed, see #4376.
where would I find wesnoth -t?
- 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
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: need help creating custom [status]

Post by josteph »

I wish we'd have a sticky thread that explains this, but until then, what OS do you use and how do you usually start wesnoth?
User avatar
Ravana
Forum Moderator
Posts: 2997
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: need help creating custom [status]

Post by Ravana »

Test scenario would help to see it, but it is available as documentation example too https://wiki.wesnoth.org/LuaWML/Display ... heme_items
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

josteph wrote: October 13th, 2019, 6:25 am I wish we'd have a sticky thread that explains this, but until then, what OS do you use and how do you usually start wesnoth?
I run wesnoth on Windows 10 and usually I run it through a custom exe that allows me to save the user_data on a portable drive, but the root folder for the PC's I use run through steam usually that way I dont have to constantly check for the newest stable version of wesnoth; it just downloads on my different PC's.
wesnoth exe.PNG
Ravana wrote: October 13th, 2019, 9:13 am Test scenario would help to see it, but it is available as documentation example too https://wiki.wesnoth.org/LuaWML/Display ... heme_items
Thank you! I'll check it out.
- 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: 2997
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: need help creating custom [status]

Post by Ravana »

Note that Lua is only needed for status icon, unit coloring and status effect you can do in WML.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

Ravana wrote: October 13th, 2019, 3:17 pm Note that Lua is only needed for status icon, unit coloring and status effect you can do in WML.
where would I find how to do the wml parts of it?
- 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: 2997
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: need help creating custom [status]

Post by Ravana »

That part does not have anything special, so just from reference.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

Ravana wrote: October 13th, 2019, 4:11 pm That part does not have anything special, so just from reference.
so how would I make my own status?
do I just store the unit, affect the status of the unit, unstore the unit with the status modification and work it as a dummy status?
- 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: 2997
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: need help creating custom [status]

Post by Ravana »

Yes.
User avatar
lhybrideur
Posts: 369
Joined: July 9th, 2019, 1:46 pm

Re: need help creating custom [status]

Post by lhybrideur »

you can also look in abilities.cfg of Legend of the Invincibles add-on
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

lhybrideur wrote: October 14th, 2019, 2:56 pm you can also look in abilities.cfg of Legend of the Invincibles add-on
thank you! I will definitely check it out!
- 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
Celtic_Minstrel
Developer
Posts: 2195
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

Re: need help creating custom [status]

Post by Celtic_Minstrel »

LordAwsomeness wrote: October 13th, 2019, 3:54 am
josteph wrote: October 13th, 2019, 12:49 am Yes, it's possible. Run wesnoth -t and look at the Thief at 12,8, it has a custom "entangled" status.

There was recently a bug where custom statuses wouldn't show in the sidebar, but it's been fixed, see #4376.
where would I find wesnoth -t?
In the hotkey preferences, there is a "Start Test Scenario" hotkey that by default is unassigned. Assign a key to it and press it while at the title screen. A list will pop up; select "test" from that list.
Author of The Black Cross of Aleron campaign and Default++ era.
Former maintainer of Steelhive.
User avatar
LordAwsomeness
Posts: 203
Joined: August 12th, 2013, 2:20 pm
Location: U.S.A.

Re: need help creating custom [status]

Post by LordAwsomeness »

Celtic_Minstrel wrote: October 20th, 2019, 11:56 pm
LordAwsomeness wrote: October 13th, 2019, 3:54 am
josteph wrote: October 13th, 2019, 12:49 am Yes, it's possible. Run wesnoth -t and look at the Thief at 12,8, it has a custom "entangled" status.

There was recently a bug where custom statuses wouldn't show in the sidebar, but it's been fixed, see #4376.
where would I find wesnoth -t?
In the hotkey preferences, there is a "Start Test Scenario" hotkey that by default is unassigned. Assign a key to it and press it while at the title screen. A list will pop up; select "test" from that list.

Thank you so much! That is perfect! I really appreciate that cause I want to learn ai modifications for wesnoth's coding. Its something ive just passed over for years without actually looking into it, but now I think its time to delve a little into that and hopefully some wml as well.
- 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