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 : New scripting (That may be unnecessary.)
New Topic New Poll Post Reply
Poster Message
Giant-Nator22
Level: Roachling
Rank Points: 2
Registered: 09-07-2007
IP: Logged
icon New scripting (0)  
I want to make both me and the computer to understand something. I want it to understand what follows a command.

My main new scripting is Then.
Then basically follows an order. For example, If.. Player at 15.19(Lets just say) Then, warp to.
I now it's unnecessary, but in other examples, it would make a lot less complications between you and the computer.

The other new scripting is Or.
Or is the word that means that this can happen or this can happen. For example, Wait for player at 15.19 and go to level entrance Or Wait for player at 14.19 and go to level entrance.

See? These new scripting commands would make it a lot easier for non-create-scripting players to do this.

____________________________
I just know, that somebody, hates me. Just, completely hates me. Or worse, everyone.
10-20-2007 at 03:24 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Jatopian
Level: Smitemaster
Rank Points: 1842
Registered: 07-31-2005
IP: Logged
icon Re: New scripting (0)  
So... you're asking for functionality you know already exists? :?

____________________________
DROD has some really great music.
Make your pressure plates 3.0 style!
DROD architecture idea generator
10-20-2007 at 03:29 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: New scripting (0)  
Giant-Nator22 wrote:
The other new scripting is Or.
Or is the word that means that this can happen or this can happen. For example, Wait for player at 15.19 and go to level entrance Or Wait for player at 14.19 and go to level entrance.
This promotes random behavior. In DROD, there should be no random behavior (unless it's Chomp).

____________________________
lurking
10-20-2007 at 03:59 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
NoahT
Level: Smitemaster
Avatar
Rank Points: 1133
Registered: 06-17-2003
IP: Logged
icon Re: New scripting (0)  
What he means is to have a particular action that can be caused by multiple different queries, but it is perfectly possible to achieve this with the current commands by having all the queries point to the same label. And in the example presented, only one query is necessary (Wait for player at (14, 19)-(15, 19)).

-Noah

____________________________
And in the end, the love you take is equal to the love you make.

My stuff:
Click here to view the secret text

10-20-2007 at 04:08 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
Giant-Nator22
Level: Roachling
Rank Points: 2
Registered: 09-07-2007
IP: Logged
icon Re: New scripting (0)  
Random.. behavior... um... Well yes, if the user uses the Or scripting for evil, yes. If not, which should be done, then no.


About the already existing functionality, then if you want to go all confusing then use the things like, well I don't know, Else maybe? Which happens to not make lots of sense in this example only. But, I see where you're going and why.

____________________________
I just know, that somebody, hates me. Just, completely hates me. Or worse, everyone.
10-20-2007 at 04:08 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Monkey
Level: Master Delver
Avatar
Rank Points: 190
Registered: 03-21-2006
IP: Logged
icon Re: New scripting (0)  
Oh, now I see. I thought it meant it randomly chose one of the blocks and executed it.
Guess I need to program more...

____________________________
lurking
10-20-2007 at 04:24 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5064
Registered: 02-04-2003
IP: Logged
icon Re: New scripting (+1)  
Monkey wrote:
Oh, now I see. I thought it meant it randomly chose one of the blocks and executed it.
Guess I need to program more...
Non-deterministic Turing Machines ftw!

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
10-20-2007 at 07:43 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
eb0ny
Level: Smiter
Avatar
Rank Points: 484
Registered: 09-12-2007
IP: Logged
icon Re: New scripting (+2)  
Since we are talking about new scripting features, I figured I'd put this here instead of starting new thread.

Why not add comments in scripts (but they have to bold'ed to stand out)? Or at least blank line separators? I understand, that labels can be used in such fashion (they indented differently), but you don't comment your code in C++ with goto flags don't you? I thought that this would make the script easier to manage, because instead of seeing a HUGE wall of text, you see nicely documented and clear segments.

Or... Is there something I missed in TCB again?

____________________________
Click here to view the secret text

10-21-2007 at 07:16 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
trick
Level: Legendary Smitemaster
Rank Points: 2580
Registered: 04-12-2003
IP: Logged
icon Re: New scripting (+1)  
eb0ny wrote:
you don't comment your code in C++ with goto flags don't you?
:shifty

10-21-2007 at 04:36 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : New scripting (That may be unnecessary.)
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.