//Aeromesi really quick script aha
prontera,150,150,4 script RollTheDice 89,{
mes "Hello "+strcharinfo(0)+".";
mes "my name is "+strnpcinfo(0)+".";
mes "Nice to meet you lolol";
mes "lets play roll the dice, if i roll higher i win";
.@npcRoll = rand(1,6);
mes "I rolled "+.@npcRoll+".";
emotion 19;
next;
mes "okay now you roll";
.@myRoll = rand(1,6);
emotion 19;
mes "You rolled "+.@myRoll+".";
next;
if ( .@npcRoll == .@myRoll ) {
mes "wow we tied, both had "+.@npcRoll+".";
close;
}
if (.@myRoll < .@npcRoll) {
mes "looks like you lost. "+strnpcinfo(0)+" rolled ^0000FF"+.@npcRoll+"^000000. while you rolled ^FF0000"+.@myRoll+"^000000.";
close;
}
if (.@npcRoll < .@myRoll) {
mes "Looks like you won! "+strnpcinfo(0)+" rolled ^FF0000"+.@npcRoll+"^000000. while you rolled ^0000FF"+.@npcRoll+"^000000.";
close;
}
}