Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-29-2001, 01:00 AM
Lash Lash is offline
Registered User
Join Date: Apr 2001
Location: Indiana
Posts: 275
Lash is on a distinguished road
Send a message via AIM to Lash
Talking

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
__________________
The one, the only Michael Jackson.
Reply With Quote
  #2  
Old 04-29-2001, 02:57 AM
Nelm Nelm is offline
delterian loyalist
Nelm's Avatar
Join Date: Apr 2001
Location: Michigan
Posts: 198
Nelm will become famous soon enough
Send a message via AIM to Nelm
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
Reply With Quote
  #3  
Old 04-29-2001, 11:43 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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. ^_^
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #4  
Old 04-29-2001, 11:44 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
i thought he meant like a meter a la magic bar..?
Reply With Quote
  #5  
Old 04-29-2001, 11:53 AM
Lion'el-Jonson Lion'el-Jonson is offline
Please Wait....
Lion'el-Jonson's Avatar
Join Date: Mar 2001
Location: I like to eat food samples at price club.
Posts: 1,663
Lion'el-Jonson will become famous soon enough
Send a message via AIM to Lion'el-Jonson Send a message via Yahoo to Lion'el-Jonson
Yeah, me too.
__________________


"My words are like weaponry on a record"
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:47 PM.


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