need help creating custom [status]
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.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
need help creating custom [status]
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: need help creating custom [status]
Yes, it's possible. Run
There was recently a bug where custom statuses wouldn't show in the sidebar, but it's been fixed, see #4376.
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.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: need help creating custom [status]
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?
Re: need help creating custom [status]
Test scenario would help to see it, but it is available as documentation example too https://wiki.wesnoth.org/LuaWML/Display ... heme_items
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
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.
Thank you! I'll check it out.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
- 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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: need help creating custom [status]
Note that Lua is only needed for status icon, unit coloring and status effect you can do in WML.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
Re: need help creating custom [status]
That part does not have anything special, so just from reference.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
- lhybrideur
- Posts: 369
- Joined: July 9th, 2019, 1:46 pm
Re: need help creating custom [status]
you can also look in abilities.cfg of Legend of the Invincibles add-on
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
thank you! I will definitely check it out!lhybrideur wrote: ↑October 14th, 2019, 2:56 pm you can also look in abilities.cfg of Legend of the Invincibles add-on
- 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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA
- Celtic_Minstrel
- Developer
- Posts: 2207
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: need help creating custom [status]
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.
- LordAwsomeness
- Posts: 203
- Joined: August 12th, 2013, 2:20 pm
- Location: U.S.A.
Re: need help creating custom [status]
Celtic_Minstrel wrote: ↑October 20th, 2019, 11:56 pmIn 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
- Creator of Undead Invasion MP Scenario Pack.
- Creator of Valeria MP Adventure
- Creator of LA_RPG ERA