Search found 7 matches

by Pine
October 8th, 2016, 9:13 am
Forum: Ideas
Topic: Suffix/Prefix for generated name
Replies: 16
Views: 5016

Re: Suffix/Prefix for generated name

string.format is not a good choice for anything that needs to be translated, because you cannot reorder the placeholders. It's fine in this simple case though (since there is only one placeholder). So yes, you could use Lua for this, though it would seem to be less convenient unless you extend [set...
by Pine
October 7th, 2016, 8:16 pm
Forum: Ideas
Topic: Suffix/Prefix for generated name
Replies: 16
Views: 5016

Re: Suffix/Prefix for generated name

Considering it's possible to manually rename units, I feel like the second event should check if the unit still has the "Sir" part in it. I'm not sure did I understood the code correctly, but it should look like this? I think that would probably require the proposed-but-not-yet-existing [...
by Pine
October 7th, 2016, 6:05 am
Forum: Lua Labs
Topic: The best way to access unit variables subcontainers
Replies: 1
Views: 1706

The best way to access unit variables subcontainers

I'm trying to figure out a way to read and modify unit.variables.<container>.<attributes>. I noticed that lua interface has proxy support for unit.variables.<attribute> through wesnoth.get_unit api. Too bad that doesn't extend recursively to child containers providing easy access to grouped variable...
by Pine
October 4th, 2016, 1:19 am
Forum: Multiplayer Development
Topic: Bob's RPG Era (now with achievements!)
Replies: 192
Views: 123788

Re: Bob's RPG Era (huge update!)

I recently played a bit of this era in the designed scenarios both with partners and solo. I played with someone insisting on taking psycho on his warrior, surprisingly it triggered on the defence as well (shortening the game a lot). This is either a bug or at least not hinted at by the text in gam...
by Pine
October 3rd, 2016, 2:49 pm
Forum: Multiplayer Development
Topic: SXRPG Version 5.2.3 - now on 1.12 Server
Replies: 104
Views: 49360

Re: SXRPG Version 5.2.1 - now on 1.12 Server

There is minor issue if era uses custom AMLA code. Following simple change fixes maximum level detection for units with custom amla code. --- a/macros/SXShop.cfg +++ b/macros/SXShop.cfg @@ -2,8 +2,8 @@ [if] [variable] - name=class.advancement.id - equals=amla_default + name=class.advances_to + equal...
by Pine
October 3rd, 2016, 2:45 pm
Forum: Multiplayer Development
Topic: Bob's RPG Era (now with achievements!)
Replies: 192
Views: 123788

Re: Bob's RPG Era (huge update!)

I noticed some minor issues when we tries to use competitive mode for SXRPG: Competitive mode is broken for network games. Simple fix would be: --- a/files/shops.cfg +++ b/files/shops.cfg @@ -1166,7 +1166,10 @@ message= {MENU_IMG_TXT2 "icons/blank-icon.png" " " _"Return To G...
by Pine
September 23rd, 2016, 2:42 am
Forum: Multiplayer Development
Topic: Brotherhood of Light - Multiplayer RPG Scenario
Replies: 233
Views: 79994

Re: Brotherhood of Light - Multiplayer RPG Scenario

post_advance event for non-leader units would need to use give_xp event instead of broken manual coding. # XP for levelling units [event] name=post_advance first_time_only=no [filter] side=1,2,3,4 canrecruit=no [/filter] {BOL_SOUND magic-holy-3.ogg} [message] speaker=narrator image=wesnoth-icon.png ...