![]() |
Selections
I've had this idea since when I came to graal, I'd like for there to be a simplistic way to create menus on servers.
Here is how it would work: A sign would appear, it would have two options, saying text like this: Do you want to buy a cow? (3gp) >Yes >no The scripting for this would be: //-----------------start If(playertouchsme){ say2 Do you want to buy a cow?(3gp)#o(yes,buy())#o(no,bye());} function buy(){ if(playerrupees>=3){ playerrupees -=3;} else{message Not enough rupees!;} function bye() {say2 Okay, bye;} //-----------------end In concusion: #O(text,functionname()) would create the option. When you create an option it should do an automatic line break before and after. You would be able to select one option, sorta how like there is a menu for "pause". This IS scriptable without hardcoding (see: graal2002 "q" menu), but it would allow for a more widely used and useful menu system for small item purchases in this way if it were hardcoded. |
Thats incredibly easy to script...you could just make a def NPC which does it for you. You would select it from the list, enter the variables and everything, and it would work fine.
|
not a bad idea
|
Yeah, but would it work in the sign window?
That's one thing that always bugged me, we have all the stuff to theoretically make a sign-based shopping system, but when I try...poof, signs=paused, it's not gooood! I mean, anyone who's seen the ArmaPermaClothes knows the problems with it.... |
hmmn, I see what you mean. I made a "Q" menu made with my own scripting (similar to 2002) except it doesn't pause the player, so strange glitches occur when using it right after using an item.
This is unfortunate. |
yeah
that would be a nice feature to have, but its not really needed because you can use images and text images. The scripts would be a lot easier to script though ;)
|
Plus it would give some continuity to the shops. In Z3, every shop,
Buy this? > Yes . No thanks In Graal Just say how many bombs you want Just say bombs and I'll give you five Just say yes for five bombs and arrows Just lay the exact change Just touch the item you want Hit the item you want with your sword Carry the item you want to the register Madness. |
| All times are GMT +2. The time now is 09:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.