Links To Event Scripting
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.
-
- Posts: 4
- Joined: May 8th, 2017, 4:04 pm
Links To Event Scripting
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.
- Pentarctagon
- Project Manager
- Posts: 5565
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Links To Event Scripting
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.
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
take one down, patch it around
-2,147,483,648 little bugs in the code