Random turn
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.
-
- Developer
- Posts: 546
- Joined: January 12th, 2011, 2:18 am
- Location: Pennsylvania, USA
Re: Random turn
You would first have to turn on shroud for the side in question during an event.tommy2teeth wrote:I was thinking of adding an event where a side would be randomly chosen and be given shroud. Is this possible if you have shroud off in the lobby settings?
Also, the use of filter in [place_shroud] seems incorrect according to the wiki.
Since it seems that you only want to apply shroud to one side for all locations, the following should work in place of your current [place_shroud] code (untested):
Code: Select all
[modify_side]
side=$random
shroud=yes
[/modify_side]
[place_shroud]
side=$random
# by not specifying a SLF, all locations for the side should get shroud.
[/place_shroud]
Co-Author of Winds of Fate
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
My Add-ons: Random Campaign, Custom Campaign, Ultimate Random Maps, Era of Legends, Gui Debug Tools
Erfworld: The comic that lead me to find Wesnoth.
- tommy2teeth
- Posts: 46
- Joined: February 28th, 2015, 8:30 pm
Re: Random turn
Works perfectly! Thank you for taking the time to help me out.