Search found 58 matches

by Anagkai
November 30th, 2019, 9:24 am
Forum: WML Workshop
Topic: macro is not found
Replies: 1
Views: 1032

macro is not found

I have the problem that one of my macros isn't found when preprocessing the scenario. The macro is in the same file, above where it's called, it's spelled correctly and the number of arguments is correct. Therefore, I'm pretty sure there is a mistake inside the macro but so far I wasn't able to find...
by Anagkai
November 30th, 2019, 9:04 am
Forum: WML Workshop
Topic: Random terrain modification
Replies: 4
Views: 993

Re: Random terrain modification

I fixed it; there were two mistakes: The first one was the one suggested by skeptical_troll, the other was that I accidentally swapped X and Y in the macro call.
by Anagkai
November 29th, 2019, 8:45 pm
Forum: WML Workshop
Topic: Random terrain modification
Replies: 4
Views: 993

Random terrain modification

So I got a macro that should randomly make one part of the map desert. Which happens - theoretically - by giving that part's coordinates to the macro shown below. #define DESERT X1 Y1 X2 Y2 [store_locations] [filter_location] x={X1}-{X2} y={Y1}-{Y2} terrain=Ss [filter_adjacent_location] [not] terrai...
by Anagkai
January 3rd, 2019, 9:11 pm
Forum: Add-on Feedback
Topic: Home of the Undead [1.14]
Replies: 3
Views: 2109

Home of the Undead [1.14]

This campaign is finished and playtested. Although it was tested quite thoroughly, there might still be bugs or things that need balancing. I'm grateful for any feedback, if it is about the whole campaign or any specific scenario. Here are some suggestions, what to consider for the feedback but feel...
by Anagkai
October 13th, 2018, 4:15 pm
Forum: WML Workshop
Topic: Custom race doesn't work
Replies: 3
Views: 1764

Custom race doesn't work

Some units should have a custom race. They don't have, though. That's the race code: [race] id=AGK Insects name=insects num_traits=2 markov_chain_size=2 male_name= _ "race^Insect" female_name= _ "race+female^Insect" plural_name= _ "race^Insect" description= _ "" ignore_global_traits=yes {TRAIT_STRON...
by Anagkai
October 13th, 2018, 4:13 pm
Forum: WML Workshop
Topic: moveto event with "proximity check"
Replies: 4
Views: 1882

Re: moveto event with "proximity check"

The thing is, that it should work both ways, that means, no matter which of the two units did move respectively. That's why I thought it would be best to keep track of the coordinates and compare them if either of the two units has moved.
by Anagkai
October 13th, 2018, 4:02 pm
Forum: WML Workshop
Topic: moveto event with "proximity check"
Replies: 4
Views: 1882

moveto event with "proximity check"

I need to check wether a certain unit comes close to another. I first tried using "radius" with the coordinates in the filter but that didn't work (the event never triggers) Now I did the following which triggers even though it shouldn't: [event] name=moveto first_time_only=no [filter] id=Henry [or]...
by Anagkai
October 3rd, 2018, 2:08 pm
Forum: WML Workshop
Topic: cannot get "set_extra_recruit" to work correctly
Replies: 1
Views: 1276

cannot get "set_extra_recruit" to work correctly

I'm using the following code:

Code: Select all

	[set_extra_recruit]
		[filter]
			id=Jim
		[/filter]
		extra_recruit=Goblin Impaler, Goblin Spearman
	[/set_extra_recruit]
When using this every single side in the scenario starts recruiting goblins. Why?
by Anagkai
September 21st, 2018, 3:43 pm
Forum: WML Workshop
Topic: Cannot use global macros
Replies: 1
Views: 544

Cannot use global macros

I was trying to define global macros for things I use in most or all scenarios, but it can't get it to work. The macros work fine when defined in the scenario they're used, but not when defined in an extra file. The file is "mycampain/data/macros.cfg". The path "mycampaign/data" is set up in __main....
by Anagkai
September 21st, 2018, 1:36 pm
Forum: WML Workshop
Topic: Custom attack special doesn't do anything
Replies: 3
Views: 1254

Custom attack special doesn't do anything

My attack special is supposed to increase damage by one for every adjacent unit with the same attack special. It doesn't seem to work, though. Any help is appreciated. This is my code: #define WEAPON_SPECIAL_STATE_ATTACK [damage] id=agk_state_attack name= _ "State Attack" description= _ "" [/damage]...
by Anagkai
September 18th, 2018, 3:45 pm
Forum: WML Workshop
Topic: [SOLVED] Trying to modify multiple units, only 1 is modified
Replies: 1
Views: 685

[SOLVED] Trying to modify multiple units, only 1 is modified

I try to modify the hp of all Drake Burners at the same time. It seems though that only out of four units is modified. I probably have messed something up with the foreach or the unstoring. Any help is appreciated. This is the code used: #ifdef EASY {VARIABLE hp_add 20} #endif #ifdef NORMAL {VARIABL...
by Anagkai
September 17th, 2018, 3:50 pm
Forum: WML Workshop
Topic: [SOLVED] Rendering issue with [item] tag.
Replies: 3
Views: 954

Re: Rendering issue with [item] tag.

Code: Select all

		[item]
			x,y=56,25
			halo=tombstone.png
		[/item]
That's what I used. I'm not sure if this means I did what you asked.
by Anagkai
September 16th, 2018, 1:50 pm
Forum: WML Workshop
Topic: [SOLVED] Rendering issue with [item] tag.
Replies: 3
Views: 954

[SOLVED] Rendering issue with [item] tag.

I use the the [item] tag to render gravestones on the map. However, any units that move to the respective hex are rendered "behind" the texture of the gravestone. How can I avoid this?
by Anagkai
September 16th, 2018, 1:47 pm
Forum: WML Workshop
Topic: [SOLVED] moveto micro ai seemingly doesn't work
Replies: 3
Views: 652

Re: moveto micro ai seemingly doesn't work

It does work now. Thanks.
by Anagkai
September 16th, 2018, 1:47 pm
Forum: WML Workshop
Topic: share_vision doesn't work
Replies: 2
Views: 558

Re: share_vision doesn't work

Yes, it is. But I think this is necessary anyway, for the faction to be allied to the player.