PDA

View Full Version : Meter


Lash
04-29-2001, 02:00 AM
I really don't know much how to do this but if you could help me it would be appreciated
i want to make a drunk meter
plz i think this would be something fun to do when ur bored so HELP ME OUT

Nelm
04-29-2001, 03:57 AM
for beer script
if (playertouchesme) {
i forget rest of beer script but after that;
setflag drunk;
}
if (drunk && playertouchesme) {
unset drunk;
setflag drunk2;
}
if (drunk2 && playertouchesme) {
unset drunk2;
setflag drunk3;
}
if (drunk3 && playertouchesme) {
unset drunk3;
setflag drunk4;
}
if (drunk4 && playertouchesme) {
unset drunk4;
setflag drunk5;
hide;
}

for Meter-
if (drunk) {
message Your Drunkeness is at 1;
}
if (drunk2) {
message Your Drunkeness is at 2;
}
if (drunk3) {
message Your Drunkeness is at 3;
}
if (drunk4) {
message Your Drunkeness is at 4;
}
if (drunk5) {
message You are too Drunk...No more beer for you;
}
And then make them have coffee before they can have more beer-
if (drunk5 && playertouchesme) {
unset drunk5;
setflag drunk4;
}
if (drunk4 && playertouchesme) {
unset drunk4;
setflag drunk3;
}
if (drunk3 && playertouchesme) {
unset drunk3;
setflag drunk2;
}
if (drunk2 && playertouchesme) {
unset drunk2;
set drunk;
}
if (drunk && playertouchesme) {
unset drunk;
}


and there's an Original script by Lord Matt Essorexx

Tyhm
04-29-2001, 12:43 PM
if(playerdrinksthebeer){//whatever condition, playertouchsme on the beer will work
setstring drunk,#v(strtofloat(#s(drunk))+1);
}
if(playersprite=38){ //sleep it off
setstring drunk,#v(strtofloat(#s(drunk))-1);
}

You can work out how to keep the player from getting negative drunkenness on your own. ^_^

vergil
04-29-2001, 12:44 PM
i thought he meant like a meter a la magic bar..?

Lion'el-Jonson
04-29-2001, 12:53 PM
Yeah, me too.