• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] JASS help needed, Chess, second time

Status
Not open for further replies.
Level 8
Joined
Sep 24, 2007
Messages
300
Hello, need help with Peppar's chess again. I know your rules say that you need author's permission to edit the map, but map is imba old and I can't get in contact with the creator. :/

I need to flag the players as winners or losers, under special conditions (checkmate, timeout, surrender, stalemate etc).
I don't know enough JASS and I especially don't know the whole chess mechanics used inside the map and therefore I don't know how to get the checkmated player out of it (flag code below).

Code:
call MMD_FlagPlayer(winning_player_here, MMD_FLAG_WINNER)
call MMD_FlagPlayer(losing_player_here, MMD_FLAG_LOSER)
call MMD_FlagPlayer(losing_player_here, MMD_FLAG_DRAWER)

I have been surfing around the code for quite some time, but my bad jass knowledge left me in the dark. For someone with more knowledge it should be peace of cake..

So basically what I need...is to use the code above and flag player either as winner or loser, depending on conditions.

//Purpose is to use a standard library which provides game info to ghost and that info can then be automatically transfered to tournament brackets.
 

Attachments

  • Peppar's Multiplayer Chess (fixed).w3x
    739.9 KB · Views: 24
Status
Not open for further replies.
Top