Jump to content
  • 0

Help me fix my event changer script.


Takuyakii

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

Hello rA,

 can someone help me with these script? i'm trying to run my script and getting error getting confused with cases

here's my script ,  im getting error on line 18, unexpected character.

 

Thank you.


//=======Event Changer ============

cast_town,160,180,6	script	Event Handler	634,{



	mes "[^880000Dungeon Assistant^000000]";
	mes "Welcome, " + (Sex?"Mr.":"Mrs.") + " " + strcharinfo(0);
	mes "I am the Sexy Event Handler at this town~";
	mes "How may i help you today?";
	
	next;

	switch(Select("^000088Visit Shop^000000:Information")){

	case 1:
		switch(Select(^000088Use Event Points^000000":Use Event Coins")){
	next;
	case 1:
		close;
		callshop "eventpoints",1;
			end;
}
	case 2:

		switch(Select(^000088Castle Drops^000000":Cards:Cancel")){
	
	case 1:
		callshop "eventcastle",1;
			end;
	}
	case 2:
		callshop "eventcards",1;
			end;

	}
}
// ===== Shops =========

-	pointshop	eventpoints	-1,#event_points,20018:10000,20193:12000,20326:12000,20351:11000
-	pointshop	eventcastle	-1,#event_coins,20018:10000,20193:12000,20326:12000,20351:11000
-	pointshop	eventcard	-1,#event_coins,20018:10000,20193:12000,20326:12000,20351:11000

EDIT: SOLVED BY USING MENU.

THANKS!

Edited by Takuyakii
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

	switch(select("^000088Visit Shop^000000", "Information")){
		case 1:
			switch(select("^000088Use Event Points^000000", "Use Event Coins")){
				case 1:
					close;
					callshop "eventpoints",1;
					end;
				case 2:
					close;
					callshop "eventpoints",1;
					end;
			}
			break;
		case 2:
			switch(select("^000088Castle Drops^000000","Cards","Cancel")){
				case 1:
					callshop "eventcastle",1;
					end;
				case 2:
					callshop "eventcards",1;
					end;
			}
			break;
	}

your usage of switch() and select() isn't correct

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...