Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 01-07-2002, 07:52 AM
BlKnight BlKnight is offline
Not in Use
Join Date: Mar 2001
Location: N/A
Posts: 1,527
BlKnight is on a distinguished road
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.
__________________
This account is no longer is use.
Reply With Quote
  #3  
Old 01-07-2002, 08:54 AM
milotheman milotheman is offline
Banned
milotheman's Avatar
Join Date: Apr 2001
Posts: 0
milotheman is on a distinguished road
not a bad idea
Reply With Quote
  #4  
Old 01-07-2002, 11:35 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
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....
__________________
"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
  #5  
Old 01-08-2002, 04:19 AM
kaddar kaddar is offline
Registered User
Join Date: Nov 2001
Posts: 33
kaddar is on a distinguished road
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.
Reply With Quote
  #6  
Old 01-08-2002, 04:26 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
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
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #7  
Old 01-08-2002, 06:03 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
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.
__________________
"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
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 AM.


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