This is the particular snippet of WZScript I have yet to convert
- Code: Select all
createAlliance(newPlayer, curPlayer);
//make player 0 (newPlayer) units belong to player 1 (curPlayer)
//save the old colour so we can set it back again
oldColour = getPlayerColour(curPlayer);
newColour = getPlayerColour(newPlayer);
setPlayerColour(newColour, curPlayer); //make curPlayer units newPlayer colour
A similar thing, if I remember correctly, should happen in ... Gamma 3? When Nexus takes over Gamma Team's base in the north.
Also, apparently I inverted this part
- Code: Select all
curPlayer int 1
newPlayer int 0
when setting the alliance, human player being 0 and AI being 1 instead of 1/0, but I don't see how much of a difference this would make, except having to flip the variables in WZScript. Shouldn't pose any problem in JS, as long as everything is scripted correctly.