Place a signpost on the map
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.
Place a signpost on the map
Hello, everyone!
As the title says: I'm trying to place a signpost in one of my scenarios to make the player win the level if he moves the leader on that given hex. I already did implement a
I dug on the WML documentation without finding something useful to do so, but I found a post here where a user suggested placing the signpost with
Thanks a lot in advance!
As the title says: I'm trying to place a signpost in one of my scenarios to make the player win the level if he moves the leader on that given hex. I already did implement a
moveto
event (which results in winning the level itself) that works great, but I cannot find a way to place a signpost on the map to show the arrival point to the player.I dug on the WML documentation without finding something useful to do so, but I found a post here where a user suggested placing the signpost with
{PLACE_IMAGE scenery/signpost.png 35 35}
, but if this is the right solution to this problem, where can I find that signpost PNG file?Thanks a lot in advance!
Re: Place a signpost on the map
It is already there, included in core, so don't mind.
data/core/images/signpost.png
data/core/images/signpost.png
- beetlenaut
- Developer
- Posts: 2825
- Joined: December 8th, 2007, 3:21 am
- Location: Washington State
- Contact:
Re: Place a signpost on the map
Use the [i] icon in the bottom left corner of the game's menu screen. Browse to the folder where your "Game data" is stored, then continue to the folder data/core/images/scenery. The signpost is in "scenery", but you would probably find the "items" folder interesting as well. The {PLACE_IMAGE} macro (or the [item] tag which the macro is using) automatically starts looking in the "images" folder, so you only indicate the part of the path after that point. The {PLACE_IMAGE} line you have there is correct. The other solution is to use the [item] tag directly. The tag would give you more control and other options, but the macro is probably sufficient in this case. Put either one in a "prestart" [event].
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Re: Place a signpost on the map
Wow, this is so awesome!beetlenaut wrote: ↑December 8th, 2022, 2:09 pm Use the [i] icon in the bottom left corner of the game's menu screen. Browse to the folder where your "Game data" is stored, then continue to the folder data/core/images/scenery. The signpost is in "scenery", but you would probably find the "items" folder interesting as well. The {PLACE_IMAGE} macro (or the [item] tag which the macro is using) automatically starts looking in the "images" folder, so you only indicate the part of the path after that point. The {PLACE_IMAGE} line you have there is correct. The other solution is to use the [item] tag directly. The tag would give you more control and other options, but the macro is probably sufficient in this case. Put either one in a "prestart" [event].
I didn't realize all the core images are at that location (I read on the WML doc is advisable to use those images for convenience, but I never found them).
Thanks again, beetlenaut!
Re: Place a signpost on the map
Here it is. For various reasons, I sometimes copy things from the core game into my own folders, rather than writing the path to the core folder.
I would put it in images/scenery or maybe images/misc.
- Attachments
-
- signpost.png (2.92 KiB) Viewed 447 times
Author of:
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.
DIY Campaign, Confederacy of Swamp Creatures: Big Battle 1, Confederacy of Swamp Creatures: Big Battle 2, Frogfolk Delivery Service, The Pool of Ek.