is append option to message possible?

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
Bozenka
Posts: 11
Joined: March 17th, 2023, 7:28 pm

is append option to message possible?

Post by Bozenka »

hoy there, i am wondering if there is possibility to append aditionall option to existing [message] tag in [set_menu_item][command], by action language in event etc. Only solution i figured out is to have multiple options prepared that show only if conditions are met, but i am using message dialog as menu for some spells and i want a possibility to learn unit new spells via amla, events or menu items. Any ideas? thanks ;]
User avatar
Pentarctagon
Project Manager
Posts: 5567
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: is append option to message possible?

Post by Pentarctagon »

You can use [insert_tag] for this to dynamically create options based on the content of the array you provide it.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
Bozenka
Posts: 11
Joined: March 17th, 2023, 7:28 pm

Re: is append option to message possible?

Post by Bozenka »

thank you, works perfectly :]
Post Reply