Random turn

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.
SigurdFireDragon
Developer
Posts: 546
Joined: January 12th, 2011, 2:18 am
Location: Pennsylvania, USA

Re: Random turn

Post by SigurdFireDragon »

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?
You would first have to turn on shroud for the side in question during an event.
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.
User avatar
tommy2teeth
Posts: 46
Joined: February 28th, 2015, 8:30 pm

Re: Random turn

Post by tommy2teeth »

Works perfectly! Thank you for taking the time to help me out.
Post Reply