Special Tiles?

The place to post your WML questions and answers.

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.
Post Reply
Stupidbro
Posts: 22
Joined: March 5th, 2019, 12:08 am

Special Tiles?

Post by Stupidbro »

So... I actually got this idea from the list of things NOT to suggest under the ideas forum. Specifically, it said not to suggest a building function, BUT it said that individual campaign designers could include special buildings, such as a healing fountain. I was wondering how one would go about including a special building in a campaign.
User avatar
Ravana
Forum Moderator
Posts: 3000
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Special Tiles?

Post by Ravana »

By event that modifies unit health - turn refresh is time of usual healing. Visual side can be done by adding fountain image to map, or defining fountain terrain type.
Stupidbro
Posts: 22
Joined: March 5th, 2019, 12:08 am

Re: Special Tiles?

Post by Stupidbro »

@Ravana
Alright. Any ideas about how to program the event?
User avatar
josteph
Inactive Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: Special Tiles?

Post by josteph »

See these:
https://wiki.wesnoth.org/EventWML#turn_refresh
https://wiki.wesnoth.org/DirectActionsW ... al_unit.5D

If you define a custom terrain, you won't need events. Look at the oasis terrain in mainline for example.
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Special Tiles?

Post by Pentarctagon »

Moved to the WML Workshop.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Post Reply