Restricting event messages to side(s)
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.
- Ironcladkitty
- Posts: 10
- Joined: June 10th, 2014, 6:38 pm
Restricting event messages to side(s)
Hi!
In a little scenario I'm making, I have 5 sides. Each of these 5 sides starts with its own 'intro', a short briefing/conversation between units.
Unfortunately, I cannot make it so that each side views only its own intro - all 5 intros are shown for all 5 players. How can I enforce the game to show Side 1 (and so on) the intro for Side 1 but do not display the intros for other sides?
I've tried using various filters, but nothing is working so far...
In a little scenario I'm making, I have 5 sides. Each of these 5 sides starts with its own 'intro', a short briefing/conversation between units.
Unfortunately, I cannot make it so that each side views only its own intro - all 5 intros are shown for all 5 players. How can I enforce the game to show Side 1 (and so on) the intro for Side 1 but do not display the intros for other sides?
I've tried using various filters, but nothing is working so far...
All my love for Wesnoth! (And Dwarf Fortress, and Fire Emblem, and...)
===
[acronym=Hatkitty recommends!]~♪♫~ o/,, %o ♂o √o φo ♂o %o ~♫♪~[/acronym]
===
[acronym=Hatkitty recommends!]~♪♫~ o/,, %o ♂o √o φo ♂o %o ~♫♪~[/acronym]
Re: Restricting event messages to side(s)
I don't know if it is possible or not, I've never tried, but [story] and [part] supposedly take filters, so it might be possible if you can determine the viewing side somehow.
What have you tried so far?
What have you tried so far?
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
- ForestDragon
- Posts: 1771
- Joined: March 6th, 2014, 1:32 pm
- Location: Ukraine
Re: Restricting event messages to side(s)
I think this should work for you: put this in the 'prestart' event:
then make multiple messages, each with 'side_for=insert your side number here'. this approach will make images show at the bottom, though, instead of on the top.
Code: Select all
[color_adjust]
red=-512
green=-512
blue=-512
[/color_adjust]
My active add-ons: The Great Steppe Era,XP Bank,Alliances Mod,Pestilence,GSE+EoMa,Ogre Crusaders,Battle Royale,EoMaifier,Steppeifier,Hardcoreifier
My inactive add-ons (1.12): Tale of Alan, The Golden Age
Co-creator of Era of Magic
My inactive add-ons (1.12): Tale of Alan, The Golden Age
Co-creator of Era of Magic
- Ironcladkitty
- Posts: 10
- Joined: June 10th, 2014, 6:38 pm
Re: Restricting event messages to side(s)
D'oh, side_for= is just what I needed. Thanks for help guys!
All my love for Wesnoth! (And Dwarf Fortress, and Fire Emblem, and...)
===
[acronym=Hatkitty recommends!]~♪♫~ o/,, %o ♂o √o φo ♂o %o ~♫♪~[/acronym]
===
[acronym=Hatkitty recommends!]~♪♫~ o/,, %o ♂o √o φo ♂o %o ~♫♪~[/acronym]