Problem with Quest MS03

Post » Mon May 17, 2010 7:37 pm

Well hello long time no see everyone :D

I have a problem with the following Quest, or lets say a specific script in that one.

Quest: MS03
Quest Stage: 215

;Give Negative Karmarewardkarma -50;Give Final XP Reward:if (MS03.ms03a == 4 && MS03.ms03b == 4)   RewardXP 100elseif (MS03.ms03a == 4 && MS03.ms03b != 4)   RewardXP 200else   RewardXP 300endif;Remove extraneous quest-item holotapesif (player.getitemcount MS03LibraryCatalogueHolotape == 1)   player.removeitem MS03LibraryCatalogueHolotape 1endifif (player.getitemcount MS03LibraryArchivesHolotape == 1)   player.removeitem MS03LibraryArchivesHolotape 1endif;Reward the player for being a dream-crushing bastardplayer.AddPerk MS03DreamCrusherPerkplayer.showMessage MS03DeamcrusherPerkMsgMoiraBrownREF.modav repair 30;Hide any uncompleted objectiveif (GetObjectiveDisplayed MS03 2 == 1 && GetObjectiveCompleted MS03 2 == 0)   SetObjectiveDisplayed MS03 2 0endifif (GetObjectiveDisplayed MS03 5 == 1 && GetObjectiveCompleted MS03 5 == 0)   SetObjectiveDisplayed MS03 5 0endifif (GetObjectiveDisplayed MS03 10 == 1 && GetObjectiveCompleted MS03 10 == 0)   SetObjectiveDisplayed MS03 10 0endifif (GetObjectiveDisplayed MS03 12 == 1 && GetObjectiveCompleted MS03 12 == 0)   SetObjectiveDisplayed MS03 12 0endifif (GetObjectiveDisplayed MS03 16 == 1 && GetObjectiveCompleted MS03 16 == 0)   SetObjectiveDisplayed MS03 16 0endifif (GetObjectiveDisplayed MS03 20 == 1 && GetObjectiveCompleted MS03 20 == 0)   SetObjectiveDisplayed MS03 20 0endifif (GetObjectiveDisplayed MS03 24 == 1 && GetObjectiveCompleted MS03 24 == 0)   SetObjectiveDisplayed MS03 24 0endifif (GetObjectiveDisplayed MS03 26 == 1 && GetObjectiveCompleted MS03 26 == 0)   SetObjectiveDisplayed MS03 26 0endifif (GetObjectiveDisplayed MS03 30 == 1 && GetObjectiveCompleted MS03 30 == 0)   SetObjectiveDisplayed MS03 30 0endifif (GetObjectiveDisplayed MS03 34 == 1 && GetObjectiveCompleted MS03 34 == 0)   SetObjectiveDisplayed MS03 34 0endifif (GetObjectiveDisplayed MS03 36 == 1 && GetObjectiveCompleted MS03 36 == 0)   SetObjectiveDisplayed MS03 36 0endifif (GetObjectiveDisplayed MS03 38 == 1 && GetObjectiveCompleted MS03 38 == 0)   SetObjectiveDisplayed MS03 38 0endifif (GetObjectiveDisplayed MS03 40 == 1 && GetObjectiveCompleted MS03 40 == 0)   SetObjectiveDisplayed MS03 40 0endifif (GetObjectiveDisplayed MS03 44 == 1 && GetObjectiveCompleted MS03 44 == 0)   SetObjectiveDisplayed MS03 44 0endifif (GetObjectiveDisplayed MS03 46 == 1 && GetObjectiveCompleted MS03 46 == 0)   SetObjectiveDisplayed MS03 46 0endifif (GetObjectiveDisplayed MS03 50 == 1 && GetObjectiveCompleted MS03 50 == 0)   SetObjectiveDisplayed MS03 50 0endifif (GetObjectiveDisplayed MS03 54 == 1 && GetObjectiveCompleted MS03 54 == 0)   SetObjectiveDisplayed MS03 54 0endifif (GetObjectiveDisplayed MS03 56 == 1 && GetObjectiveCompleted MS03 56 == 0)   SetObjectiveDisplayed MS03 56 0endifif (GetObjectiveDisplayed MS03 60 == 1 && GetObjectiveCompleted MS03 60 == 0)   SetObjectiveDisplayed MS03 60 0endifif (GetObjectiveDisplayed MS03 64 == 1 && GetObjectiveCompleted MS03 64 == 0)   SetObjectiveDisplayed MS03 64 0endifif (GetObjectiveDisplayed MS03 66 == 1 && GetObjectiveCompleted MS03 66 == 0)   SetObjectiveDisplayed MS03 66 0endifif (GetObjectiveDisplayed MS03 68 == 1 && GetObjectiveCompleted MS03 68 == 0)   SetObjectiveDisplayed MS03 68 0endifif (GetObjectiveDisplayed MS03 70 == 1 && GetObjectiveCompleted MS03 70 == 0)   SetObjectiveDisplayed MS03 70 0endifif (GetObjectiveDisplayed MS03 74 == 1 && GetObjectiveCompleted MS03 74 == 0)   SetObjectiveDisplayed MS03 74 0endifif (GetObjectiveDisplayed MS03 76 == 1 && GetObjectiveCompleted MS03 76 == 0)   SetObjectiveDisplayed MS03 76 0endifif (GetObjectiveDisplayed MS03 78 == 1 && GetObjectiveCompleted MS03 78 == 0)   SetObjectiveDisplayed MS03 78 0endifif (GetObjectiveDisplayed MS03 80 == 1 && GetObjectiveCompleted MS03 80 == 0)   SetObjectiveDisplayed MS03 80 0endifif (GetObjectiveDisplayed MS03 84 == 1 && GetObjectiveCompleted MS03 84 == 0)   SetObjectiveDisplayed MS03 84 0endifif (GetObjectiveDisplayed MS03 88 == 1 && GetObjectiveCompleted MS03 88 == 0)   SetObjectiveDisplayed MS03 88 0endifif (GetObjectiveDisplayed MS03 90 == 1 && GetObjectiveCompleted MS03 90 == 0)   SetObjectiveDisplayed MS03 90 0endifif (GetObjectiveDisplayed MS03 94 == 1 && GetObjectiveCompleted MS03 94 == 0)   SetObjectiveDisplayed MS03 94 0endifif (GetObjectiveDisplayed MS03 98 == 1 && GetObjectiveCompleted MS03 98 == 0)   SetObjectiveDisplayed MS03 98 0endifif (GetObjectiveDisplayed MS03 100 == 1 && GetObjectiveCompleted MS03 100 == 0)   SetObjectiveDisplayed MS03 100 0endifif (GetObjectiveDisplayed MS03 105 == 1 && GetObjectiveCompleted MS03 105 == 0)   SetObjectiveDisplayed MS03 105 0endif;Set all sub-tasks as completed, to avoid quest-breakingset MS03.MS03a1 to 4set MS03.MS03a2 to 4set MS03.MS03a3 to 4set MS03.MS03a to 4set MS03.MS03b1 to 4set MS03.MS03b2 to 4set MS03.MS03b3 to 4set MS03.MS03b to 4set MS03.MS03c1 to 4set MS03.MS03c2 to 4set MS03.MS03c3 to 4set MS03.MS03c to 4;End the quest;SetObjectiveDisplayed MS03 215 1;SetObjectiveCompleted MS03 215 1StopQuest MS03;Start MS03FinStartQuest MS03Finaddachievement 16


The Problem here is the following: Line 23: too few variables in MessageBox parameters; expected 1, found 0.

hope anyone knows the problem here since my game crushes everytime at that script on the exact same time :D
User avatar
teeny
 
Posts: 3423
Joined: Sun Feb 25, 2007 1:51 am

Post » Tue May 18, 2010 12:19 am

player.showMessage MS03DeamcrusherPerkMsg

The warning you are getting is telling you the the message: MS03DeamcrusherPerkMsg is expecting a variable to be passed to it, but no varaible was passed. In my version of the geck, this message is not configured to be passed a variable and I would not get that message. I would check the contents of that message and look for some formatting characters the begin wityh a "%". Having something like that in the body of a message indicates that a varibale passed to the mesasage will be displayed instead of the %code.
User avatar
Cedric Pearson
 
Posts: 3487
Joined: Fri Sep 28, 2007 9:39 pm

Post » Tue May 18, 2010 4:58 am

Well the solution being that simple... thank you :D for me the message really was saying critical reduced 50 % so i changed it and now it works like a charm thank you for solving my problem (and teaching me what I should not do writing message boxes :D)
User avatar
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am

Post » Tue May 18, 2010 12:45 am

If you want to display a percent sign in a message box just put in two: "%%"

See the details of the http://geck.gamesas.com/index.php/ShowMessage function for some notes on %codes.
User avatar
Brad Johnson
 
Posts: 3361
Joined: Thu May 24, 2007 7:19 pm


Return to Fallout 3