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 : "And" command
New Topic New Poll Post Reply
Poster Message
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon "And" command (0)  
Useful for

Wait for entity player at (8,12)
AND
Wait for player sword NE.


Also

If...
var1 > 99
AND
var1 < 200.

____________________________
Play my holds?
04-10-2007 at 09:44 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3734
Registered: 12-28-2004
IP: Logged
icon Re: "And" command (+1)  
1. Can be already done with multiple IFs
2. Instead of AND I'd prefer one of this two things:
- when placing IF I can specify how many arguments I must present (how many from the first two events after if will be needed to conduct if) for example:
If (3)
       wait for player (1,1)(1,1)
       wait for PLayer to face North
       wait for event Monster Stabbed
   speech....
If End


Or when adding new Wait for argument, I can specify if it has to be considered inside IF, like:
If
       if wait for player (1,1)(1,1)
       if wait for PLayer to face North
   wait for event Monster Stabbed
   speech....
If End


Though I like the first one more.

Why this instead of And? because AND takes additional one line, which makes code still less readable.

____________________________
My website | Facebook | Twitter

[Last edited by skell at 01-29-2012 08:24 PM : Going to the keep]
04-10-2007 at 11:20 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: "And" command (0)  
Much more useful would be "Else" or "Or".

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
04-10-2007 at 11:09 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : "And" command
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.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.