Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : A "or" button.
New Topic New Poll Post Reply
Poster Message
roach strangler
Level: Delver
Rank Points: 57
Registered: 01-07-2006
IP: Logged

File: DROD.jpg (102 KB)
Downloaded 85 times.
License: Public Domain
icon A "or" button. (0)  
What if we had a "or" button.

The or button would be good if you had more then 1 space that did the same thing.
05-23-2007 at 03:01 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: A "or" button. (+1)  
First off, I can't tell what you mean. I think I have an idea, but I can't be sure. If you mean logical operands for scripting (like "OR" and "AND"), then yes, it's a good idea.

It's not a good thing when I have to download an image to not know what you're talking about.

Also, don't use .BMP.
05-23-2007 at 03:05 AM
View Profile Show all user's posts Quote Reply
Kevin_P86
Level: Smitemaster
Avatar
Rank Points: 535
Registered: 06-28-2005
IP: Logged
icon Re: A "or" button. (0)  
It seems he wants the yellow door to open when either of two squares are stepped on.

If this is the case, isn't this exactly what pressure plates do? Or, if you really can't use pressure plates, then it can be done very simply with scripting.

____________________________
+++++[>+++++<-]>[>+++>++++>+++++<<<-]>.>+.>-------.<++++.+++++.
05-23-2007 at 07:46 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Rabscuttle
Level: Smitemaster
Avatar
Rank Points: 2539
Registered: 09-10-2004
IP: Logged
icon Re: A "or" button. (0)  
An orb utton = pressure plate?

Yeah, I fail to see the problem with just having two identical pressure plates.


05-23-2007 at 07:59 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3517
Registered: 08-07-2005
IP: Logged
icon Re: A "or" button. (0)  
coppro wrote:
Also, don't use .BMP.
QFT. BMP is teh evil.

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
05-23-2007 at 08:09 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: A "or" button. (0)  
I think he means Or as in
If
player is in location X
OR Y, goto next script command.
Click here to view the secret text


[Last edited by NiroZ at 05-29-2007 09:58 AM]
05-23-2007 at 08:41 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
silver
Level: Smitemaster
Rank Points: 915
Registered: 01-18-2005
IP: Logged
icon Re: A "or" button. (0)  
since those commands take 0 time to process:

if X or Y goto L1

is equivalent to:

if X goto L1
if Y goto L1

so this would only be sugar coating...


____________________________
:yinyang

[Last edited by silver at 05-23-2007 08:57 AM]
05-23-2007 at 08:56 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3517
Registered: 08-07-2005
IP: Logged
icon Re: A "or" button. (0)  
silver wrote:
so this would only be sugar coating...
Well, it's good enough for about all other programming languages on the planet, so why not?

Also, if you have more than just a "goto" you'll have to duplicate a big honking block of script commands, which doesn't really lend itself to changes.

Something similar goes for "and", even though that's "just" nested ifs.

It's just that "and" and "or" are much more readable.

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
05-23-2007 at 11:21 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2467
Registered: 11-14-2005
IP: Logged
icon Re: A "or" button. (+1)  
Suppose you're trying to write code in which, if Beethro steps anywhere along the perimeter of a square, X, Y, and Z happen. Currently, you'd have to write:
if Beethro is on (side 1):
    goto "Commands"
if Beethro is on (side 2):
    goto "Commands"
if Beethro is on (side 3):
    goto "Commands"
if Beethro is on (side 4):
    goto "Commands"
...
Label "Commands"
    command X
    command Y
    command Z

It would be so terribly nice and easier to read if we could just write:
if Beethro is on (side 1) OR (side 2) OR (side 3) OR (side 4):
    command X
    command Y
    command Z

The slightest exception to defining an exactly rectangular shape requires a whole new "if" command. If this is the sort of OR that he's asking for, I'm behind it 100%.
05-23-2007 at 05:43 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: A "or" button. (0)  
BTW, I believe I put something like this here.

____________________________
lurking
05-25-2007 at 02:56 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Kwakstur
Level: Smiter
Avatar
Rank Points: 385
Registered: 05-05-2006
IP: Logged
icon Re: A "or" button. (0)  
It seems like it also reduces the number of problems with people forgetting to put Wait 1 Turn(s) when they loop If commands with a label.

____________________________
Also known as ExpHP everywhere else.
05-26-2007 at 02:39 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : A "or" button.
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.