Graal Forums

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

ownerofbabylon 10-09-2001 12:49 AM

Menus
 
1 Attachment(s)
I need a little help. I wanna make a menu like you see here in this screenshot but i dont really know how. Could anyone just give me a simple sample?

Python523 10-09-2001 12:55 AM

???
You sure you posted the right picture??
They probably made that just using the say command and edited the sign

ownerofbabylon 10-09-2001 01:02 AM

yes see that little arrow? you can move that up and down to select which part u want and then right and left to change the values. I know its right cuz I have that level. Its just a really complicated script cuz it has a ton of other **** in it

ownerofbabylon 10-09-2001 01:27 AM

Quote:

Originally posted by Kaimetsu


a) Please don't swear.
b) Use showimg on layers 4 and 5, and keydown. It's complicated but it's not difficult.

\

Thank you, sorry for cussing

Xaviar 10-09-2001 01:54 AM

Re: Menus
 
Quote:

Originally posted by ownerofbabylon
I need a little help. I wanna make a menu like you see here in this screenshot but i dont really know how. Could anyone just give me a simple sample?
:megaeek: Didn't I say I had that under controll? Ya coulda just asked me how to do it =/

ownerofbabylon 10-09-2001 02:21 AM

Re: Re: Menus
 
Quote:

Originally posted by Xaviar


:megaeek: Didn't I say I had that under controll? Ya coulda just asked me how to do it =/

hey man, i already asked u to make one and u said u would so im just waiting for it. Didnt i say i was trying to learn how to script too. ;) I learned how to make a NPC follow a player today ^_^

Xaviar 10-09-2001 02:22 AM

Re: Re: Re: Menus
 
Quote:

Originally posted by ownerofbabylon


hey man, i already asked u to make one and u said u would so im just waiting for it. Didnt i say i was trying to learn how to script too. ;) I learned how to make a NPC follow a player today ^_^

Ooo.... :eek:

ownerofbabylon 10-09-2001 02:27 AM

Re: Re: Re: Re: Menus
 
Quote:

Originally posted by Xaviar


Ooo.... :eek:

dont get me wrong i still need you to make that menu...

Xaviar 10-09-2001 02:29 AM

Re: Re: Re: Re: Re: Menus
 
Quote:

Originally posted by ownerofbabylon


dont get me wrong i still need you to make that menu...

*tries to think of another way to weasel out of the job* ;)

ownerofbabylon 10-09-2001 02:33 AM

Re: Re: Re: Re: Re: Re: Menus
 
Quote:

Originally posted by Xaviar

*tries to think of another way to weasel out of the job* ;)

heh lazy bastard

Xaviar 10-09-2001 02:34 AM

Re: Re: Re: Re: Re: Re: Re: Menus
 
Quote:

Originally posted by ownerofbabylon


heh lazy bastard

Shhh....Kai is watching :megaeek:

ownerofbabylon 10-09-2001 03:12 AM

Re: Re: Re: Re: Re: Re: Re: Re: Menus
 
Quote:

Originally posted by Xaviar


Shhh....Kai is watching :megaeek:

that one slipped too =/

btedji 10-09-2001 05:47 AM

you could do

if (keydown(#)) {say2 whatever}

you would have to have a lot of script for this though

Enigma_GP6 10-09-2001 05:47 AM

For Lord Helmut
 
Although I have not posteed in a while, I will give a little tip to you Lord Helmut.
If you want a menu like that, you could do a disabledefmovement and use keydown like kai said, although this way, with movement disabled, they can't look over and over again. The sign command would be like

say2 Lives: #s(lives) #b Ammunition:#s(ammoleft);


And basically that would work, but you just need to edit it a little, although Kai pretty much explained that, I just put it in a way that you might understand. g2g. Goodday Graalians.

-Rebel95

Aknts 10-09-2001 05:59 AM

I have a question, I have been making a menu also. Is there anyway you can disable the Q list (I know the command) and minipulate lets say the D key to be the Q and it bring up the original list without rescripting the Q list?

entravial 10-09-2001 06:14 AM

~AlphaFlame~

If you use a completely showimg script for the menu, then I feel sorry for the player that is targeted by a PKer while in the menu...

We need a pauseplayer=true command...

btedji 10-09-2001 06:15 AM

do disabledefmovement

entravial 10-09-2001 06:17 AM

~AlphaFlame~

The player can still get hurt, even with disabledefmovement.

btedji 10-09-2001 06:19 AM

put players[0].hearts=players[0].fullhearts in a timeout loop

entravial 10-09-2001 06:20 AM

~AlphaFlame~

So they can heal just by bringing up the menu? Hoo boy, PK heaven.

btedji 10-09-2001 06:23 AM

store the players hearts and reset them later :)

entravial 10-09-2001 06:26 AM

~AlphaFlame~

Shorter, simpler, less buggy:
pause the player.

And that's all I'm saying on that issue.

joseyisleet 10-10-2001 02:37 PM

if (weaponfired||timeout){this.hearts=playerhearts;}
while (readingmenuorwhatever){playerhearts=this.hearts;}

btedji 10-10-2001 07:17 PM

Quote:

Originally posted by joseyisleet
if (weaponfired||timeout){this.hearts=playerhearts;}
while (readingmenuorwhatever){playerhearts=this.hearts;}

i dont believe there is a readingmenu flag and how would you pause the player yourself?


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

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