
01-07-2002, 07:15 AM
|
|
Registered User
|
Join Date: Nov 2001
Posts: 33
|
|
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. |
|
|
|