Campaign-style Defeat Message (Unwanted)

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

TechGeek001
Member
Posts: 50
Joined: December 29th, 2007, 7:34 am

Campaign-style Defeat Message (Unwanted)

Post by TechGeek001 »

OK, so I'm not exactly sure when this started being an issue for me, but I'm making a pretty typical map that has started, for no reason, to display the Campaign defeat message.

Defeat!
[Load Game]
[Reduce Difficulty]
[<there's another one...]
[Quit Campaign]

What did I do and how can I fix this? All I want is:

Defeat!
[Quit Mission]

Any help would be much appreciated.
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Campaign-style Defeat Message (Unwanted)

Post by Aero »

Make a custom script.
In it, type this: call EndGame(false)

Nice easy quit ^.^
TechGeek001
Member
Posts: 50
Joined: December 29th, 2007, 7:34 am

Re: Campaign-style Defeat Message (Unwanted)

Post by TechGeek001 »

Aero wrote:Make a custom script.
In it, type this: call EndGame(false)

Nice easy quit ^.^

Code: Select all

Map test aborted due to script errors.
Line 772: Expected end of line.
Apparently, it's the line above the code that has trouble - call EndGame(false) is on line 773.

Code: Select all

//***************************************************************************
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4448
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Campaign-style Defeat Message (Unwanted)

Post by Bartimaeus »

Well, obviously not..."MAP TEST ABORTED DUE TO MAP ERRORS". Map test, meaning that it was being tested in World Editor.
TechGeek001
Member
Posts: 50
Joined: December 29th, 2007, 7:34 am

Re: Campaign-style Defeat Message (Unwanted)

Post by TechGeek001 »

So...this WEU thing...can it do anything that would warrant me downloading it?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4448
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Campaign-style Defeat Message (Unwanted)

Post by Bartimaeus »

Maybe, but why would you do that? I would just test it straight in warcraft 3, -.-.

When there's a syntax error in world editor, it displays the line of code that has an error as if it were JASSCraft syntax-error check-ed.

Yeah, I know weird, you'd just think it'd tell you what trigger is wrong, and leave you be.
TechGeek001
Member
Posts: 50
Joined: December 29th, 2007, 7:34 am

Re: Campaign-style Defeat Message (Unwanted)

Post by TechGeek001 »

OK, Aero, I got the Custom Script thing right, but that's not exactly what I needed.
What I want is, instead of the Campaign-Style defeat dialog, the standard dialog with the one single button [Quit Mission].
Any way to accomplish that?
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Campaign-style Defeat Message (Unwanted)

Post by Aero »

Ok...First of all... WEU sucks!
Get jassnewgen.
As for your dialog with a quit button...this is easily done.

Set up a dialog as usual...then when you're ready to add buttons....do this (custom script):

call DialogAddQuitButton(<name of dialog>,true,"Quit Mission",512)

And...that's it.
TechGeek001
Member
Posts: 50
Joined: December 29th, 2007, 7:34 am

Re: Campaign-style Defeat Message (Unwanted)

Post by TechGeek001 »

I probably should have uploaded this first:
This is what I want:
Image
Not this:
Image
I'm really just curious as to why WE thinks I have a campaign running.
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4448
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Campaign-style Defeat Message (Unwanted)

Post by Bartimaeus »

Are you playing on single player? If so, that's your problem. If you get "defeated" in single player, it will always show that. When going in multiplayer, it will switch to the first example, plus with your custom message. And if the first example is in single player, than it must actually be victory, just with a custom message.