Search found 25 matches

by ZeoN_PoweR
July 21st, 2019, 6:34 pm
Forum: WML Workshop
Topic: My WML question
Replies: 2
Views: 650

Re: My WML question

Ravana wrote: July 21st, 2019, 6:25 pm I suspect ! has to be first, so wrap that part in [and]/[or].
OMG, you are so right. Thanks for the prompt answer, Ravana.
by ZeoN_PoweR
July 21st, 2019, 6:22 pm
Forum: WML Workshop
Topic: My WML question
Replies: 2
Views: 650

My WML question

Hi All, I am writing a macro which could filter certain location and count the number of specific terrain within given radius. For example, check all Ch(human castle) with Spearman on the map, and count the number of *^F*(forest terrain) within 2 radius. if forest number is at least 6 or more, chang...
by ZeoN_PoweR
July 20th, 2019, 8:00 am
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Here is a question for new weapon special I create. I want the color of this special to be grey when it is inactive(as normal game), but it seems to be always active? But when I check damage calculation box, it shows in grey which is correct. I've tried name_inactive and description_inactive, but t...
by ZeoN_PoweR
July 20th, 2019, 6:52 am
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Just delete the [attack] and [/attack] lines (but not the lines between them). See https://github.com/wesnoth/wesnoth/blob/1.14/data/scenario-test.cfg#L149-L174 for example. Normally it says UNTLB range_foo when an attack specifies range="foo" but range_foo doesn't exist in the languages ...
by ZeoN_PoweR
July 16th, 2019, 12:25 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Hi guys, I fix it with moveto event, thanks, Ravana. Also thanks for the explanation, Beetlenaut. This makes it easy for me to understand, which helps a lot. Today I am creating a set_menu_item, one of the action option is adding a new attack to my custom unit. After the action, a new attack did sho...
by ZeoN_PoweR
July 14th, 2019, 1:40 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Hi all, I've finished dealing with the filtering certain number of terrains in a given radius. :lol: Then, I got a new question here. I'm thinking of making a small event which give certain units an additional resistance advantage when it stay in specific terrain, and simply loss it after it leave. ...
by ZeoN_PoweR
July 11th, 2019, 10:15 am
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Hi Beetlenaut, I finally fix the problem with using [FOREACH] tag, thanks a lot. Good. Be careful with the difference between {FOREACH} and [foreach] though. You wrote a mixture of those two, so I was confused. Sorry, my bad, this should be [foreach] tag. I still can't find out where is the issue. I...
by ZeoN_PoweR
July 9th, 2019, 7:14 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Hi Beetlenaut, I finally fix the problem with using [FOREACH] tag, thanks a lot. As for terrain graphic problem, I simply put this change within base game's terrain-graphic.cfg. I'm not sure if this could be called twice for mainline terrains. I still can't find out where is the issue. I think I'm g...
by ZeoN_PoweR
July 4th, 2019, 9:38 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

Hi all, Later today, here comes a new question about using {Foreach} marco. I create some terrain such as,Dsz,^Zbvr,^Zbvb,^Zbvt(they are not village). I want to create a event that is, in each side turn, terrains that containing "Dsz^Vh" will automatically turn into "Dsz^Zbvr", a...
by ZeoN_PoweR
July 4th, 2019, 9:02 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Re: Problem with making terrain graphic look normal

We can't be sure what you intended with the castle, and we can't see the code you modified to see if there is a mistake there. That makes it hard to help. If you are trying to have the rocks look submerged, you just have to draw them partially transparent so the water is partially visible behind th...
by ZeoN_PoweR
July 3rd, 2019, 7:59 pm
Forum: WML Workshop
Topic: Problem with making terrain graphic look normal
Replies: 19
Views: 3228

Problem with making terrain graphic look normal

Hi all, I want to create some new terrain type using original terrain artworks. I have study terrain graphic rule for few days but still can't figure it out. So I use a stupid way to make my own one without making new terrain graphic rule. I simply copy the same terrain type from base game and then ...
by ZeoN_PoweR
July 1st, 2019, 4:54 am
Forum: WML Workshop
Topic: Question about [filter_second_weapon] tag
Replies: 4
Views: 779

Re: Question about [filter_second_weapon] tag

OMG!!! I completely ignore the version information!!
I'll use a new damage type to do this. Thanks you so much!!
by ZeoN_PoweR
June 30th, 2019, 11:46 pm
Forum: WML Workshop
Topic: Question about [filter_second_weapon] tag
Replies: 4
Views: 779

Re: Question about [filter_second_weapon] tag

Hi Ravana, Thanks for reply. But according to https://wiki.wesnoth.org/AbilitiesWML, there are [filter_weapon] & [filter_second_weapon] under resistance tag. Or am I misunderstood about its purpose? https://screenshot.net/tw/d66vnuz https://screenshot.net/tw/d66vnuz I know I can use [damage] to ...
by ZeoN_PoweR
June 30th, 2019, 9:24 pm
Forum: WML Workshop
Topic: Question about [filter_second_weapon] tag
Replies: 4
Views: 779

Question about [filter_second_weapon] tag

Hi all, I'm a WML noobie. I'm trying to make a unit ability that can allow the owner to have better resistance when fighting with specific weapon, but it turns out that unit receive this additional resistance all the time but not only when fighting with specific weapon. I can't figure out why it can...
by ZeoN_PoweR
December 27th, 2017, 3:28 pm
Forum: WML Workshop
Topic: Problem with adding variables into units and filtering them
Replies: 5
Views: 2488

Re: Problem with adding variables into units and filtering t

Hi Pentarctagon,

Thanks for your explaination!!After I change WML to this, problem resolves!

Code: Select all

        {VARIABLE temp_x $landplace.x}
        {VARIABLE temp_y $landplace.y}