Search found 602 matches

by Spannerbag
May 11th, 2024, 12:07 pm
Forum: Forum Games
Topic: Word association
Replies: 245
Views: 122693

Re: Word association

Smith
by Spannerbag
May 11th, 2024, 10:37 am
Forum: WML Workshop
Topic: fire event in teleport
Replies: 13
Views: 434

Re: fire event in teleport

hermestrismi wrote: May 10th, 2024, 11:03 pm you guys are just wizards. unfortunately, I didn't have time to test the suggestion...
Just as well, the latest version is about 1/3rd the size of the first attempt! :)

Good luck with your idea!

Cheers!
-- Spannerbag
by Spannerbag
May 11th, 2024, 10:33 am
Forum: WML Workshop
Topic: fire event in teleport
Replies: 13
Views: 434

Re: fire event in teleport

Ravana wrote: May 10th, 2024, 10:39 pm [filter] x,y=$x1,$y1 [/filter]

Is always passing, so you can just remove that.
Less is more so even better!
Must remember that, thanks.

Cheers!
-- Spannerbag
by Spannerbag
May 10th, 2024, 8:48 pm
Forum: WML Workshop
Topic: fire event in teleport
Replies: 13
Views: 434

Re: fire event in teleport

My only complaint about Spannerbag's code is that it only catches the default teleport ability and will not detect any custom teleport abilities that you define. A starting point for fixing this would be to use ability_type_active=teleport instead of ability_id_active=teleport . That's not sufficie...
by Spannerbag
May 10th, 2024, 8:13 am
Forum: Forum Games
Topic: Word association
Replies: 245
Views: 122693

Re: Word association

bean
by Spannerbag
May 9th, 2024, 12:23 am
Forum: WML Workshop
Topic: fire event in teleport
Replies: 13
Views: 434

Re: fire event in teleport

hermestrismi wrote: May 8th, 2024, 3:55 pm Thank you very much.
this seems to be more logic and straight than my approach. I will test it as soon as possible and I will give you my result.
Glad to have been able to help! :D

Cheers!
-- Spannerbag
by Spannerbag
May 8th, 2024, 1:47 pm
Forum: WML Workshop
Topic: fire event in teleport
Replies: 13
Views: 434

Re: fire event in teleport

Hi, Your post intrigued me so I had a bit of a play, building on the suggestion by Ravana. This code isn't perfect, it might need [allow_undo] or maybe [cancel_action] but from my limited testing it does seem to trap teleports and filter out non-teleport movement. Anyway, it should at least give you...
by Spannerbag
May 7th, 2024, 10:41 am
Forum: WML Workshop
Topic: Annoying error: <lua> Repeated [endlevel] execution, ignored
Replies: 4
Views: 200

Re: Annoying error: <lua> Repeated [endlevel] execution, ignored

lhybrideur wrote: May 7th, 2024, 7:00 am The horrible way I did...
Yep, similar concept/logic.
Great minds... :)

Cheers!
-- Spannerbag
by Spannerbag
May 6th, 2024, 7:14 pm
Forum: WML Workshop
Topic: Annoying error: <lua> Repeated [endlevel] execution, ignored
Replies: 4
Views: 200

[RESOLVED]<lua> Repeated [endlevel] execution, ignored

[fire_event] the [endlevel] call, but have the event containing [end_level] first_time_only=yes. Thanks for the reply, much appreciated! Heh, was just going to post to say I'd fixed it; as often happens right after posting, I had a bit of inspiration. Wish I had it before posting... :annoyed: The d...
by Spannerbag
May 6th, 2024, 6:44 pm
Forum: WML Workshop
Topic: Annoying error: <lua> Repeated [endlevel] execution, ignored
Replies: 4
Views: 200

Annoying error: <lua> Repeated [endlevel] execution, ignored

Hi, I have a situation where a number of units may be [kill] ed simultaneously. [kill] [filter_location] find_in=fb [/filter_location] animate=yes fire_event=yes # Player loses if leader killed [primary_attack] type=fire [/primary_attack] [/kill] The scenario also has multiple leaders and if any lea...
by Spannerbag
May 6th, 2024, 4:20 pm
Forum: Ideas
Topic: [UMC] Some abilities and weapon special ideas
Replies: 5
Views: 352

Re: [UMC] Some abilities and weapon special ideas

Below I have listed some hopefully KISS abilities and weapon special that would be cool.... FWIW I've seen quite a few variants of your ideas are in various UMC campaigns and there are different ways of implementing similar effects. E.g. similar outcomes to Fortify could be obtained by either incre...
by Spannerbag
May 5th, 2024, 10:20 am
Forum: Forum Games
Topic: Word association
Replies: 245
Views: 122693

Re: Word association

Ida
by Spannerbag
May 5th, 2024, 12:26 am
Forum: Lua Labs
Topic: Global variables begginer guide
Replies: 7
Views: 269

Re: Global varialbes begginer guide

Sorry to be dim, but are you saying that this code: [set_variable] name=game_number value=starting_value_string [/set_variable] [set_global_variable] namespace=Bandits_from_Brown_Hills from_local=game_number to_global=loads.1.1.1 side=1 immediate=yes [/set_global_variable] produced this output: [var...
by Spannerbag
May 4th, 2024, 5:15 pm
Forum: Lua Labs
Topic: Global variables begginer guide
Replies: 7
Views: 269

Re: Global varialbes begginer guide

Hi I'm working with persistent variables in Wesnoth for the very first time... Same here, used them in an update to one of my campaigns. :? Here are macros I used to manipulate them (I didn't need one to clear a persistent variable). Note that persistent variables need a namespace. Persistent varia...
by Spannerbag
April 29th, 2024, 5:24 pm
Forum: Art Contributions
Topic: Call for mainline portraits and story art
Replies: 14
Views: 5286

Re: Call for mainline portraits and story art

5 portraits Female Captain (Mari) I know we are cutting Minister Hylas from TSG, but wouldn't it be a better use of resources to have Minister Hylas take on the role of 'Captain Mari' rather than commission a brand new portrait and unit type when Minister Hylas already has an extremely high-quality...