This topic has 6 replies, 3 voices, and was last updated 1 year, 8 months ago by Captain.
Viewing 7 posts - 1 through 7 (of 7 total)
    • drcxz2 Participant
      April 20, 2023 at 15:48 #4298

      It doesn’t matter if I code it through Nile, NLH or by hand, every game ends in a draw.

      if never() and (OnTick(5)) then
      win(1)
      endif

      If I edit someone else’s working WAC file, the game will also end in a draw but their map will work correctly again when I remove the edited code. I know this is something simple, but I cant figure it out.

    • Red Dog Participant
      April 25, 2023 at 18:26 #4299

      I would try removing the ontick(5) and use  ssndead() or  groupdead() or  event()

      if never and groupdead(5) then

      win(1)

      endif

    • drcxz2 Participant
      April 29, 2023 at 16:09 #4300

      Thank you for getting back to me.
      I tried several different lines of code using ssndead, ssnride and eq(V1,1) but all of them still result in the game being a draw.

    • Red Dog Participant
      May 8, 2023 at 17:06 #4301

      Which map editor are you using?

    • Red Dog Participant
      May 10, 2023 at 12:35 #4303

      unfortunately I am nor familiar with Nile and can give you no insight, I use XMed but the WAC scripts are then same. Try making a test map with only 1 AI in it and try this script.

      if never() and ssndead(1) then

      win(1)

      endif

    • Captain Keymaster
      June 2, 2023 at 09:55 #4305

      It’s because your wac code says “Exactly after 5 seconds when the game has started, make team 1 win”.
      However the way that the game works is that you get points for amount of people/objects that are dead.
      So naturally after 5 seconds, you haven’t killed anyone yet, and therefore the game will say “draw”.

      If you go ahead and change it, like some have suggested in the thread to ssndead, like:

      if never and ssndead(xxxx) then
      win(1)
      endif

      (xxxx = a bot on team 2)

      It should end the game saying team 1 wins.

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.

Latest 10 Maps

AW2 – TFD Khalid Bin Waleed

AW2 – TFD Operation Bear (Updated)

AW2 – TFD Operation Lion

AW2 – Hellgate 4 (Revised Aug 2024)

AW2 – Whistling Whistler Gal

AW2 – Whistler Gal Rescue

AW2 – Liberation (The Mist)

AW2 – Zeek + Destroy

AW2 – Sleepless in Canada

AW2 – Rescue Dr. Jack Ryan

Log In

Username:

Password:


Lost password?