Jump to content
  • 0

Limit cards in castles


BFPkiller

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

Hello

I would like to request a script that limits the cards used in WoE.

E.g

Per char limit the active mvp cards to 1, but let it be 1 mvp card of choice.

Is this possible ?

Thanks

Edited by BFPkiller
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:   2347
  • Joined:  10/28/11
  • Last Seen:  

you can try something like this.

-	script	Sample	-1,{
	
	OnInit:
		.max_card_count = 1;
		setarray .@map$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05";
		.@map_size = getarraysize(.@map$);
		
		.compare_map$ = "#";
		for (.@i = 0; .@i < .@map_size; .@i++) {
			setmapflag .@map$[.@i], mf_loadevent;
			.compare_map$ = .compare_map$ + .@map$[.@i] + "#";
		}
		end;
		
	OnPCLoadMapEvent:
		if (compare(.compare_map$, "#"+strcharinfo(3)+"#")) {
			if (isequippedcnt(4001,4002,4003,4004,4005) >= .max_card_count) {
				warp "SavePoint", 0, 0;
			}
		}
		end;
}

list all the mvp card here.

if (isequippedcnt(4001,4002,4003,4004,4005) >= .max_card_count) {

 

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...