short and quick help please
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.
short and quick help please
Can someone tell me if this is wrong?
If yes, how should it be?
If yes, how should it be?
Code: Select all
[store_unit]
variable=checkside
kill=no
[filter]
x=$x1
y=$y1
[/filter]
[/store_unit]
{VARIABLE_OP (|$checkside|_gold) add 1}
First read, then think. Read again, think again. And then post!
Re: short and quick help please
Yeah, that's pretty wrong. I think this is what you meant to do:
(but I didn't test it)
Code: Select all
[store_unit]
variable=checkside
kill=no
[filter]
x=$x1
y=$y1
[/filter]
[/store_unit]
{VARIABLE_OP gold_var format "side$checkside.side|_gold"}
{VARIABLE_OP $gold_var add 1}
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."