Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
357 stars 55 forks source link

SetDiplomacy doesn't work for players in multiplayer #284

Closed 77Mynameislol77 closed 5 years ago

77Mynameislol77 commented 5 years ago

Tried this, and it doesn't do anything.

Triggers = [[ SetDiplomacy(1, "allied", 6) SetDiplomacy(6, "allied", 1) SetSharedVision(1, true, 6) SetSharedVision(6, true, 1) ]]

77Mynameislol77 commented 5 years ago

Sorry, i'm completely stupid. Noticed that it isn't implemented yet. Any ETA when?

timfel commented 5 years ago

This is not how you define triggers. Also, there's no reason to use triggers for this, you can just call the lua functions.

77Mynameislol77 commented 5 years ago

could you please help me then? This is my first time even touching LUA, and i am amazed i got this far

77Mynameislol77 commented 3 years ago

Hello again, i've been trying to do this again, but i still don't quite understand what i need to do.

timfel commented 3 years ago

For posterity, we have solved this on Discord and the approach has been documented here: https://stratagus.com/mapbuilding.html