-
-
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)
endifIf 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.
-
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
-
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.
-
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
-
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.
-
This topic has 6 replies, 3 voices, and was last updated 1 year, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
Latest 10 Comments