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.

Links To Event Scripting

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

Re: Links To Event Scripting

Postby 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
User avatar
Pentarctagon
Forum Administrator
 
Posts: 2973
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)


Return to WML Workshop

Who is online

Users browsing this forum: Eagle_11 and 4 guests