Capture event doesnt work any longer etc.
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.
Capture event doesnt work any longer etc.
Hi guys,
1. since the update to 1.12 my event doesnt work any longer. Hope you can help me with necessary changes.
The code is used to make my planes more realistic. They shall not be able to occupy villages.
2. I give heal-ability to one unit, and I want to define the units which benefit from that ability. For example: Tanks shall not be able to benefit from a medic heal, only infantry. How can I write this and in which file?
1. since the update to 1.12 my event doesnt work any longer. Hope you can help me with necessary changes.
The code is used to make my planes more realistic. They shall not be able to occupy villages.
Code: Select all
[event]
name=capture
first_time_only=no
[filter]
type="BFW Dewoitine"
[/filter]
[capture_village]
x,y=$x1,$y1
side=$owner_side
[/capture_village]
[allow_undo]
[/allow_undo]
[/event]
Wenn Unrecht zu Recht wird, wird Widerstand zur Pflicht!
Nerdguygaming.tumblr.com
Nerdguygaming.tumblr.com
Re: Capture event doesnt work any longer etc.
1)
Make sure your [filter] still matches.
Because of #23695 [Gna.org] you might want either or remove [allow_undo]
2)
You can put it to any file you want as long as you include that file properly. Check if you want to heal unit can be done with [affect_adjacent][filter].
Make sure your [filter] still matches.
Because of #23695 [Gna.org] you might want either
Code: Select all
[filter_condition]
[variable]
name=side_number
not_equals=$owner_side
[/variable]
[/filter_condition]
2)
You can put it to any file you want as long as you include that file properly. Check if you want to heal unit can be done with [affect_adjacent][filter].
Re: Capture event doesnt work any longer etc.
1.) Thanks to you, my first problem is solved!
2.) Maybe you have some coding example for me, like above? It helps me to understand.
2.) Maybe you have some coding example for me, like above? It helps me to understand.
Wenn Unrecht zu Recht wird, wird Widerstand zur Pflicht!
Nerdguygaming.tumblr.com
Nerdguygaming.tumblr.com
Re: Capture event doesnt work any longer etc.
Thank you again, Ravana! That was helpful.
It seems I have to name you in credits or something, for helping me countless times.
It seems I have to name you in credits or something, for helping me countless times.
Wenn Unrecht zu Recht wird, wird Widerstand zur Pflicht!
Nerdguygaming.tumblr.com
Nerdguygaming.tumblr.com