URL:
  <http://gna.org/patch/?2642>

                 Summary: MP default era: Use random leader when pick faction
                 Project: Battle for Wesnoth
            Submitted by: faabumc
            Submitted on: Sun 17 Apr 2011 11:52:07 PM CST
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This patch allows to have the random leader selected when a faction is
picked. For example, if a player selects Loyalists, the random leader will be
selected by default instead of the Lieutenant as currently (needed to scroll
down the list to reach the random option).

This is done by changing the type inside [multiplayer_side] WML into
type=random. This uses an undocumented feature for which the wiki should be
updated (http://wiki.wesnoth.org/EraWML).


Some discussions on the subject on wesnoth-umc-dev IRC:

20110416 17:50:33< FAAB> MP. if I pick Loyalists, the Lieutenant leader is
selected by default
20110416 17:50:59< zookeeper> ok
20110416 17:51:10< FAAB> if in WML section [multiplayer_side], I set
type=random
20110416 17:51:38< FAAB> then when I pick Loyalist, the random leader is
default
20110416 17:51:49< zookeeper> ok
20110416 17:52:27< zookeeper> so the question is: is there any reason why you
should not use type=random ?
20110416 17:52:37< FAAB> yes
20110416 17:53:13< zookeeper> well, i don't know. are you sure type=random
even has any special meaning, or does the game default to random when type=
has no value or an invalid value?
20110416 17:53:50< zookeeper> maybe it doesn't know what type=random means
because there's no such unit type, and then it just puts random leader as the
default.
20110416 17:54:33< zookeeper> _if_ that is the case, then it's probably
better to just leave out type= altogether.
20110416 17:55:07< FAAB> well any invalid value would have another behavior
20110416 17:55:34< FAAB> it would have a question mark '?' in the leader
widget
20110416 17:55:41< zookeeper> i see
20110416 17:55:57< FAAB> and if you try to start you are prompted an error
message
20110416 17:56:21< FAAB> I haven't try with no type though
20110416 17:56:41< zookeeper> well, try with no type=, and if that doesn't
work, then i guess type=random is ok?
20110416 17:56:49< FAAB> I can make a quick test
20110416 17:56:58< zookeeper> i can't see any reason why that would cause
problems elsewhere.
20110416 17:59:10< FAAB> yeah, type= left empty and no type lead to a
question mark too (fatal error is starting)
20110416 17:59:24< FAAB> so that type=random is special
20110416 17:59:54< zookeeper> so it seems
20110416 18:00:03< zookeeper> unfortunately that's not mentioned in the wiki
20110416 18:00:23< FAAB> indeed
20110416 18:00:51< FAAB> would the change be applied to default?
20110416 18:01:18< zookeeper> i don't know, you'd have to ask the MP devs.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 17 Apr 2011 11:52:07 PM CST  Name: faction_random_type.diff  Size:
9kB   By: faabumc
Patch file
<http://gna.org/patch/download.php?file_id=12871>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?2642>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to