Search found 74 matches
- January 8th, 2024, 1:53 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
Oh,I try use "^Cv" add Castle and "^Cva" add "Main Castle",but can not work This does not work because castles are base terrains, not overlays. Village+Flat→Village+Castle+Flat Forest+Flat→Forest+Castle+Flat Flat→Flat+Castle Each hex can have one base, and one overlay....
- January 7th, 2024, 4:49 pm
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
Start by removing all invalid key and tags from where they currently are. Then look where they are allowed to be. Ok,i fix it,but i have a iuess,how Quickly locate WMLcode placed in the wrong location? Ok,is work,but auto delete forest,if have forest in build hex,i hope only add villvge. Wouldn't a...
- January 7th, 2024, 1:05 pm
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
#define PWSMGIVE TARGET_SIDE [option] [set_variable] name=df_player_name value=$player_{TARGET_SIDE}.name [/set_variable] label= _"side" + "{TARGET_SIDE}" + "$player_{TARGET_SIDE}.name" [store_locations] x=$x1 y=$y1 variable=GVL [/store_locations] [show_if] [variable] ...
- January 7th, 2024, 10:15 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
This full add-on file,BUG code in give.cfgbeetlenaut wrote: ↑January 7th, 2024, 8:17 am The code you posted works. The error must be somewhere else. If you post the whole scenario, we will probably be able to find it.
- January 7th, 2024, 7:45 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
Ok,is work,but auto delete forest,if have forest in build hex,i hope only add villvge. Wouldn't a person cut down trees to build a house? You seem to want one hex to be forest and village at the same time, which can't happen in the game. There must be separate terrains in each hex. If you mean that...
- January 7th, 2024, 5:06 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
You should go to the wiki and read the list of the tags that are available on the right side of the screen. That works better than guessing, which seems to be your current method. One of the tags in the list is [store_gold] . You can use something like this: [store_gold] side=$side_number variable=...
- January 7th, 2024, 4:07 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
How get play gold?use value=$side_number.gold in event not work.
- January 6th, 2024, 5:02 pm
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
you sure?wiki have
https://wiki.wesnoth.org/ConditionalAct ... ariable.5D
if it,how check gold >= 14?
- January 6th, 2024, 9:37 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
{~add-ons/ProWesnothStart-modf/build.cfg} This line adds the code to your project, but it doesn't run that code. The code must be in an [event]. Otherwise, the code will never run. game report bug: [if] didn't find any [then],[elseif],or [else] children. This is not related to a new event, it is a ...
- January 6th, 2024, 7:15 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
Re: build village
Did you post all your files? I don't see an event tag that activates the code in build.cfg. The [set_menu_item] tag must go inside an [event] tag. You can use a prestart event for this. Also, you have $x, $y, and $side in build.cfg, but I don't see any place where these variables were defined. In t...
- January 6th, 2024, 5:41 am
- Forum: Forum Games
- Topic: Word association
- Replies: 276
- Views: 124835
- January 6th, 2024, 3:06 am
- Forum: WML Workshop
- Topic: build village
- Replies: 22
- Views: 9840
build village
I hope use [set_menu_item] add a "use 14 gold build village on map any" and "have build village",but WML is not work use village WML in build.cfg and ANL.cfg(use ANL define) edit: and i hope player can any time(only need in player turn) give other player village,but I have absolu...
- October 12th, 2023, 8:15 am
- Forum: Forum Games
- Topic: Word association
- Replies: 276
- Views: 124835
Re: Word association
printf
- September 27th, 2023, 8:44 am
- Forum: Forum Games
- Topic: Word association
- Replies: 276
- Views: 124835
Re: Word association
loop
- September 21st, 2023, 5:23 pm
- Forum: Forum Games
- Topic: Word association
- Replies: 276
- Views: 124835
Re: Word association
rock