Mistake
mes "Choose something.";
next;
switch( select( "Fused Turtle General Card", "Fused 2nd card", "Fused 3rd card" ) ) {
case 1:
// <reward ID>, <chance success>, <item ID req 1>,<amount 1>, <item ID req 2>,<amount 2>, ..., <desc>;
callsub S_Fuse, 4305,10, 501,1, 502,1, 503,2, "HIT +150.\n Add a 5% chance of auto casting Stone Curse status when hit by enemy.";
case 2:
callsub S_Fuse, 4318,10, 501,1, 502,1, 503,2, "HIT +150.\n Add a 5% chance of auto casting Stone Curse status when hit by enemy.";
case 3:
callsub S_Fuse, 4263,10, 501,1, 502,1, 503,2, "HIT +150.\n Add a 5% chance of auto casting Stone Curse status when hit by enemy.";
}
S_Fuse:
.@argcount = getargcount();
.@success = getarg(1);
mes "[ Fused Card ]";
mes "-- Fused "+ getitemname( getarg(0) ) +" --";
mes "-- Requirements --";
for ( .@i = 2; .@i < .@argcount -1; .@i += 2 ) {
if ( countitem(getarg(.@i)) >= getarg(.@i+1) ) {
.@total++;
.@color$ = "^0000ff1";
}
else
.@color$ = "^ff00000";
mes "x"+ .@color$ +"/"+ getarg(.@i+1) +" "+ getitemname(getarg(.@i));
}
next;
mes "-- New Effect --";
mes getarg( .@argcount -1 );
next;
mes "-- Success Rate --";
mes ( 100 - .@success ) +"% Fail and "+ .@success +"% success.";
if ( .@argcount -3 == 4 ) {
next;
if ( select( "Do it", "Bye" ) == 1 ) {
if ( rand(1,100) <= .@success ) {
mes "Success !";
getitem getarg(0),1;
}
else {
mes "Failed";
}
for ( .@i = 2; .@i < .@argcount -1; .@i += 2 )
delitem getarg(.@i),getarg(.@i+1);
}
}
close;