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.
Campaign-style Defeat Message (Unwanted)
Moderator: Cheaters
-
TechGeek001
- Member
- Posts: 50
- Joined: December 29th, 2007, 7:34 am
-
Aero
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Campaign-style Defeat Message (Unwanted)
Make a custom script.
In it, type this: call EndGame(false)
Nice easy quit ^.^
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)
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.Code: Select all
//***************************************************************************-
Bartimaeus
- Tyrannical Drama Queen
- Posts: 4448
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Campaign-style Defeat Message (Unwanted)
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)
So...this WEU thing...can it do anything that would warrant me downloading it?
-
Bartimaeus
- Tyrannical Drama Queen
- Posts: 4448
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Campaign-style Defeat Message (Unwanted)
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.
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)
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?
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?
-
Aero
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Campaign-style Defeat Message (Unwanted)
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.
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)
I probably should have uploaded this first:
This is what I want:

Not this:

I'm really just curious as to why WE thinks I have a campaign running.
This is what I want:

Not this:

I'm really just curious as to why WE thinks I have a campaign running.
-
Bartimaeus
- Tyrannical Drama Queen
- Posts: 4448
- Joined: November 19th, 2007, 5:05 am
- Been thanked: 2 times
Re: Campaign-style Defeat Message (Unwanted)
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.