Post by godspeedkillua on May 21, 2014 0:19:29 GMT
So i'm trying to make a custom game mode based off of Code Geass. Now I can't figure out why when I start a round the roles and annocment aren't functional. Here are my scripts.
[
Code Geass.ms script:
Code GeassStart.ms Script:
Code GeassEnd.ms Script:
Thanks for reading and I hope someone can help me. ( I know this is probably because i'm new to ms and not a bug but I thought this would be the best place to post my problem)
[
Code Geass.ms script:
etcustommode("Code Geass",1,"http://misuteriihigh.boards.net/thread/77/creating-normal-mode-dependencies-intermediate","Code Geass.ogg","Code Geass.dmi",file2text("Code GeassStart.ms"),file2text("Code GeassEnd.ms"),1);
setkiller("Zero");
setcustomrole1("Knights of the Round Member",0,2);
setcustomrole2("Suspect",1,2);
gameinprogress = gameinprogress();
checkmode = checkmode();
while(!gameinprogress && checkmode == "Code Geass")
{
gameinprogress = gameinprogress();
checkmode = checkmode();
numofplayers = numofplayers();
setcustomrole2("Suspect",1,0);
setcustomrole1("Knights of the Round Member",0,0);
if(numofplayers > 2 && numofplayers < 10 && prob(25) || numofplayers >= 10 && numofplayers < 13 && prob(75) || numofplayers >= 13 && prob(90))
{
setcustomrole1("Knights of the Round Member",0,1);
}
if(numofplayers >= 2 && prob(50))
{
setcustomrole2("Suspect",1,1);
}
wait(tick_lag());
Code GeassStart.ms Script:
wprint("<big><font color=red><b>Warning:</b></font>Dead body located on the premises. Simple program analysis suggests link to the famous "Zero". Saving video feed. Facility will be locked down until six in the morning in accordance to orders from the Britannian Army.</big>");
showkiller("You are the Zero!");
printto(killer,"<b><i>You are the Zero!</i></b>");
printto(killer,"<i>iYour the world famous Zero also know as the Britannian Empire's worst enemy.With your power Geass you can control someone to do anything and they will do it(Your also able to see peoples name).You've snuck in by disguising yourself as a high school student and killed and killed a teacher.The reason you have done this is to find and kill someone from the Britannian Imperial Family,but right when you found them they saw you kill the teacher and ran out locking the doors and posting a waring anouncement to all the students.You later find out that one of the Knights of the Round members snuck in to assassinate you.Now its your job to find and kill the Member of the Knights of the Round even if it costs innocent peoples life.</i>");
if(customrole1)
{
showcustomrole1("You're an member of the Knights of the Round!");
printto(customrole1,"<b><i>You're an member of the Knights of the Round!</i></b>");
printto(customrole1,"<i>You have been assigned to guard a very important member of the Royal Britannian family at this school. Your main job was to get the Roayl Britannian faily member out of this school and to lock the gates to find Zero who you think will be here.After you lockdown the school you forgot to ask what Zero looked like so now you must find and kill Zero before time runs out!</i>);
}
gameinprogress = gameinprogress();
while(gameinprogress && customrole2)
{
gameinprogress = gameinprogress();
time = checktime();
if(customrole2)
{
if(time == "7PM")
{
y = strcat("<big><font color=red><b>Warning:</b></font>A suspect has been identified; Suspect is believed to have ",get_haircolor(customrole2));
wprint(strcat(y," colored hair.</big>"));
playsound(world,"alarm.wav");
break;
}
}
wait(tick_lag());
}
Code GeassEnd.ms Script:
a = strcat("The Zero was ",get_realname(killer));
b = strcat(" / ",get_alias(killer));
c = strcat(", played by ",get_key(killer));
d = strcat(a,b);
e = strcat(d,c);
wprint(e);
wait(3);
if(customrole1)
{
k = strcat("The Knights of the Round Member was ",get_realname(customrole1));
l = strcat(" / ",get_alias(customrole1));
m = strcat(", played by ",get_key(customrole1));
n = strcat(k,l);
o = strcat(n,m);
wprint(o);
wait(3);
}
if(customrole2)
{
f = strcat("The suspect was ",get_realname(customrole2));
g = strcat(" / ",get_alias(customrole2));
h = strcat(", played by ",get_key(customrole2));
i = strcat(f,g);
j = strcat(i,h);
wprint(j);
wait(3);
}
numdead = length(GetDead());
numalive = length(GetAlive());
if(numdead > 0)
{
if(numalive < 1)
{
wprint("Everyone died, including Zero!");
}
if(numalive == 1)
{
if(!findinlist(killer,GetAlive()))
{
wprint("Some people lived and some people died. Zero among them");
}
else
{
wprint("Everyone died but the Zero. Zero wins!");
}
}
if(numalive > 1)
{
if(!findinlist(killer,GetAlive()))
{
wprint("Some people lived and some people died. Zero among them");
}
else
{
wprint("Some people lived and some people died. Zero , however, survived.");
}
}
}
else
{
wprint("It seems that nobody died. Zero loses.");
}
Thanks for reading and I hope someone can help me. ( I know this is probably because i'm new to ms and not a bug but I thought this would be the best place to post my problem)