Search found 237 matches

by Choicerer
May 28th, 2018, 6:48 pm
Forum: WML Workshop
Topic: how to change a side of an attacked unit
Replies: 19
Views: 4046

Re: how to change a side of an attacked unit

What event are you calling this from? The unit variable is used in unit-related events, not action tags like this one.
by Choicerer
May 28th, 2018, 6:29 pm
Forum: WML Workshop
Topic: how to change a side of an attacked unit
Replies: 19
Views: 4046

Re: how to change a side of an attacked unit

Hi. [variable] name=$unit.level numerical_equals=3 [/variable] should read [variable] name=unit.level numerical_equals=3 [/variable] Why? Because $ is the dereferencing sign, it grabs a value from a variable. So if you write $unit.level you are setting the name to be 3 or whatever the unit level is....
by Choicerer
May 28th, 2018, 11:27 am
Forum: Multiplayer Development
Topic: Choicerer's Map Randomizer
Replies: 35
Views: 7405

Re: Choicerer's Map Randomizer

2.6 - Fixed the mod breaking on some maps with certain settings due to not enough iterations of cmr_achieve_target_amount_of_items firing. Fixed change appearance only not working. Fixed a label display bug that had happened 1 turn before randomisation if the side turn for the randomisation had been...
by Choicerer
May 27th, 2018, 1:18 pm
Forum: Lua Labs
Topic: Lua theme items
Replies: 6
Views: 3687

Re: Lua theme items

That's next to impossible though... As far as I know, because there are too many factors in the c++ code you can't simulate in lua, it's basically trying to simulate a lot of variables in your add-on using WML events and so on which is really weird, but if I remember correctly you can't do it anyway...
by Choicerer
May 27th, 2018, 12:05 am
Forum: Lua Labs
Topic: Lua theme items
Replies: 6
Views: 3687

Re: Lua theme items

I'm not sure if you understand, though... It does work, but only if the user switches the timer on.
by Choicerer
May 26th, 2018, 10:45 am
Forum: Lua Labs
Topic: Lua theme items
Replies: 6
Views: 3687

Re: Lua theme items

Thanks for the second idea. I need this for my trolling mod... It listens for events that trigger the trolling reactions, waits 3 seconds, displays the trolling message then only after a user specified interval can another trolling message appear.
by Choicerer
May 26th, 2018, 10:12 am
Forum: Lua Labs
Topic: Lua theme items
Replies: 6
Views: 3687

Lua theme items

I need my code to get executed every millisecond-second. The only lua theme item that seems to refresh that often is the timer (report_countdown), which updates every 10 milliseconds. The problem is however that in both local and lan games this code seems to work even with the timer turned off, but ...
by Choicerer
May 25th, 2018, 12:18 pm
Forum: Multiplayer Development
Topic: The Trolling Mod
Replies: 23
Views: 5168

Re: The Trolling Mod

Version 1.6 aims to remove Oos and sync the trolling messages. Whether it has completely removed it, still remains to be seen (in multiplayer), but the games no longer break on start. I'm going to host some test games and update this message. UPDATE - The mod works, but only if you use a timer, at t...
by Choicerer
May 23rd, 2018, 9:40 am
Forum: Lua Labs
Topic: Lua Table Converter
Replies: 0
Views: 2982

Lua Table Converter

Hi all, Porting my Randomizer to Lua and then realising global variables aren't stored in the savefile forced me to come up with this lua table converter. I hope you can find it useful, here is the description from Readme.md: This script converts between regular lua and lua wml tables. It is inteded...
by Choicerer
May 21st, 2018, 5:20 pm
Forum: WML Workshop
Topic: 1.14 terrain generator
Replies: 1
Views: 904

1.14 terrain generator

Since 1.14, my Randomiser no longer has any effect on maps generated using the vanilla one. It's as if it was ignoring set_terrain calls. And not only on turn 1, but the changes that are supposed to happen later as well. Is that the case? Can anything be done about it?
by Choicerer
May 21st, 2018, 9:04 am
Forum: Multiplayer Development
Topic: Choicerer's Map Randomizer
Replies: 35
Views: 7405

Re: Choicerer's Map Randomizer

2.5e fixes the mod being unplayable in MP again due to OOS. Fixes the default custom values for the reverted terrain chances being wrong.
by Choicerer
May 20th, 2018, 4:20 pm
Forum: Technical Support
Topic: SLOW Performance Issues: post here to report
Replies: 238
Views: 102814

Re: SLOW Performance Issues: post here to report

The multiplayer lobby is freezing up like crazy for me. It's extremely annoying. First with my integrated GPU, now the same thing happens with a Nvidia 960 gtx (no, i didn't buy one to fix it)... In-game everything works fine. The lobby freezes up and if i alt-tab and try to come back after some tim...
by Choicerer
May 20th, 2018, 3:32 pm
Forum: Multiplayer Development
Topic: Choicerer's Map Randomizer
Replies: 35
Views: 7405

Re: Choicerer's Map Randomizer

2.5d fixes the mod breaking on game reload. Decreases default flatlands amount back by 5%.
by Choicerer
May 20th, 2018, 3:31 pm
Forum: Lua Labs
Topic: wesnoth.game_events.on_load/save
Replies: 12
Views: 3611

Re: wesnoth.game_events.on_load/save

Thanks, but it's already implemented.
by Choicerer
May 20th, 2018, 11:11 am
Forum: Lua Labs
Topic: wesnoth.game_events.on_load/save
Replies: 12
Views: 3611

Re: wesnoth.game_events.on_load/save

I see. Thanks for the help, guys!