Search found 38 matches
- January 26th, 2018, 11:31 pm
- Forum: WML Workshop
- Topic: Check for item in terrain
- Replies: 6
- Views: 2130
Re: Check for item in terrain
Ok, I'll take that in consideration. Thanks you.
- January 26th, 2018, 10:42 pm
- Forum: WML Workshop
- Topic: Check for item in terrain
- Replies: 6
- Views: 2130
Re: Check for item in terrain
Thanks also for your idea. Now I'll make something like this: #define FARMER_EVENT [set_variables] name=farms mode=insert [/set_variables] [event] name=side_turn first_time_only=no [store_items] variable=farms[$side_number].harvesters [filter] ability=NE_farmer side=$side_number [filter_location] te...
- January 26th, 2018, 9:55 pm
- Forum: WML Workshop
- Topic: Check for item in terrain
- Replies: 6
- Views: 2130
Re: Check for item in terrain
Thanks for your idea. I search in internet how to use arrays in wensoth and I found [store_locations]. If someone wants to see, here is my code: #define FARMER_EVENT [set_variables] name=farms mode=insert [/set_variables] [event] name=side_turn first_time_only=no [store_locations] [filter] ability=N...
- January 26th, 2018, 8:08 pm
- Forum: WML Workshop
- Topic: Check for item in terrain
- Replies: 6
- Views: 2130
Check for item in terrain
I am trying to put a basic item in some tiles, and later I want to check if there are items in other tiles. I know how to add an item: [item] x,y=$x1,$y1 image=items/flower4.png [/item] Also I know how to remove items: [remove_item] x,y=$x1,$y1 [/remove_item] But I can't find a way to check if there...
- January 26th, 2018, 12:21 am
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
Note: I update Wesnoth to 1.13.10 and now [floating_text] works .
- January 25th, 2018, 3:12 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
I discover I can use [unstore_unit] to make a text appear... and it's works. Shall I use this instead??
- January 25th, 2018, 2:57 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
You have right, if I put your code it works, but if I use [floating_text] in my code, it doesn't :(. But I don't understand why it wouldn't work. The [gold] tag is below the [floating_text] and works, and the [message] tag (just for testing) is above the [floating_text] and also works. The only two ...
- January 25th, 2018, 2:06 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
Sadly, It keeps not working . The text doesn't appear.WhiteWolf wrote:Oh, silly me then
I still think it should be between ""-s though, maybe that solves it?
- January 24th, 2018, 11:24 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
The multiplying is working because [gold] works (I get the gold each turn). But the floating text doesn't.
- January 24th, 2018, 9:58 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
Re: How to use [floating_text]
Sadly no . What does "|"?SFault wrote:Does this work?Code: Select all
text="<span color='#cccc33'>" + _ "$(round($units[$index].abilities.dummyminer.value*{MULT}))|" + "</span>"
- January 24th, 2018, 9:30 pm
- Forum: WML Workshop
- Topic: How to use [floating_text]
- Replies: 12
- Views: 3380
How to use [floating_text]
I'm trying to make a floating text but it seems that it isn't working for me. My idea is to make a floating text similar to the healing one (camera is moved to location, text is spawned, healing sound is played, text is unspawned), but it isn't working, the [scroll_to_unit] and [floating_text] aren'...
- January 24th, 2018, 9:02 pm
- Forum: WML Workshop
- Topic: Problem iterating over units
- Replies: 7
- Views: 2235
Re: Problem iterating over units
Ok, Thanks!
- January 24th, 2018, 8:23 pm
- Forum: WML Workshop
- Topic: Problem iterating over units
- Replies: 7
- Views: 2235
Re: Problem iterating over units
Ok, thanks. Is possible to have several "actives"? I mean, diferent descriptions (e.g: if it's in a mountain, if it's in a hill, if it's...)
- January 24th, 2018, 7:42 pm
- Forum: WML Workshop
- Topic: Problem iterating over units
- Replies: 7
- Views: 2235
Re: Problem iterating over units
Oh thanks, I hadn't notice that silly error . But the minor problem is still there, Does someone know how to check if my [dummyminer] (or miner) is active or inactive.
- January 24th, 2018, 7:38 pm
- Forum: WML Workshop
- Topic: Range attack is using melee attack animation
- Replies: 4
- Views: 1416
Re: Range attack is using melee attack animation
Ok, thanks.