Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-07-2002, 07:15 AM
kaddar kaddar is offline
Registered User
Join Date: Nov 2001
Posts: 33
kaddar is on a distinguished road
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.
Reply With Quote
 


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 01:30 AM.


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