Links To Event Scripting

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

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
Posts: 4
Joined: May 8th, 2017, 4:04 pm

Links To Event Scripting

Post by Spielesocke » May 8th, 2017, 4:11 pm

I want to create a (hopefully) simple multiplayer Event. After a few rounds some units should appear near a mine entrace and a text should appear for one human player. Is that possible for a multiplayer scenario? I don't have experience in LUA but maybe you can redirect me to helpful links to do that.

User avatar
Forum Administrator
Posts: 3750
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Links To Event Scripting

Post by Pentarctagon » May 9th, 2017, 5:53 am

You're probably looking for the new turn event. You can check the current turn number with the variable "turn_number", and if it's the correct turn, then place the units and display a message.

To display a message to only one player, it sounds like you want [message] with the "side_for" attribute.
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