Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Meter (https://forums.graalonline.com/forums/showthread.php?t=1933)

Lash 04-29-2001 01: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 02: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 11:43 AM

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 11:44 AM

i thought he meant like a meter a la magic bar..?

Lion'el-Jonson 04-29-2001 11:53 AM

Yeah, me too.


All times are GMT +2. The time now is 01:33 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.