Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : The Conundrum of the Missing Integer (A scripting thing)
New Topic New Poll Post Reply
Poster Message
Swivel
Level: Master Delver
Avatar
Rank Points: 236
Registered: 09-14-2005
IP: Logged
icon The Conundrum of the Missing Integer (0)  
DROD scripting is systemic. That is, it deals with the same situation the same way every time. For some reason, a inconsistent, or abnormal, consistency surfaces. It is irregular in regards to what you and I think to be logical, yet the language is, as related earlier, systemic.

Suppose that we want the following result:
1. Player strikes an orb
2. An NPC mimic appears facing South
3. One turn passes
4. The mimic rotates clockwise (i.e., to the Southwest).

Consider scripting an invisible mimic thusly:
Wait for event player strikes orb
Appear
Face direction clockwise

However, this proves faulty. As the player strikes the orb, we get the following result.
1. Player strikes an orb
2. An NPC mimic appears facing Southwest

It would seem as though the clockwise command was combined into the appearing command. We want them to be separated by one turn. So the next logical thing to code is this:
Wait for event player strikes orb
Appear
Wait 1 turn(s)
Face direction clockwise

However, we now get this result:
1. Player strikes an orb
2. An NPC mimic appears facing South
3. Two turns pass
4. The mimic rotates clockwise (i.e., to the Southwest).

It seems like the solution is to do this:
Wait for event player strikes orb
Face South (the direction the mimic is already in)
Face direction clockwise

Any suggestions? Is this a bug?

03-20-2006 at 01:10 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
larrymurk
Level: Smitemaster
Avatar
Rank Points: 1911
Registered: 12-09-2004
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
DROD is flawlessly consistent; therefore, DROD scripting must also be flawlessly consistent.

Please do not question DROD any further or we will have to send the Slayer after you!

Note: This note might've been far more informative if the author had any clue about scripting.
03-20-2006 at 01:24 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
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
Swivel wrote:
Suppose that we want the following result:
1. Player strikes an orb
2. An NPC mimic appears facing South
3. One turn passes
4. The mimic rotates clockwise (i.e., to the Southwest).

Consider scripting an invisible mimic thusly:
Wait for event player strikes orb
Appear
Face direction clockwise

However, this proves faulty. As the player strikes the orb, we get the following result.
1. Player strikes an orb
2. An NPC mimic appears facing Southwest

It would seem as though the clockwise command was combined into the appearing command. We want them to be separated by one turn.
...
Any suggestions? Is this a bug?
Yep, this is a bug. Executing the face direction command should occur on the turn after the NPC appears. I'll fix this in the next patch.

Hmm...there have been a lot of little nigglets reported and fixed since 2.0.13 came out. It'd probably be a good idea to release another patch soon.

____________________________
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.

[Last edited by mrimer at 03-20-2006 08:07 PM]
03-20-2006 at 08:06 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
Stefan
Level: Smitemaster
Avatar
Rank Points: 2119
Registered: 05-25-2004
IP: Logged
icon Re: The Conundrum of the Missing Integer (+1)  
mrimer wrote:
Hmm...there have been a lot of little nigglets reported and fixed since 2.0.13 came out.
Yeah, if you're superstitious, you might say that it's because it was patch number 13.

____________________________
0.099³
03-20-2006 at 09:26 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Swivel
Level: Master Delver
Avatar
Rank Points: 236
Registered: 09-14-2005
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
I can't wait for the horrors that will unfold after the release of patch 18. Actually, I wouldn't mind waiting, and I'm sure that the Caravel Team wouldn't mind waiting either.
03-21-2006 at 12:38 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
Stefan wrote:
Yeah, if you're superstitious, you might say that it's because it was patch number 13.
Heh. 2.0.12a probably would've been better... ;)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
03-21-2006 at 07:35 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
gamer_extreme_101
Level: Smitemaster
Avatar
Rank Points: 1939
Registered: 03-07-2004
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
"Shetland Pony" would have been an immense improvement.

____________________________
--That guy with a million different aliases since he doesn't like this name anymore.
03-21-2006 at 08:19 PM
View Profile Send Private Message to User Send Email to User Visit Homepage 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: The Conundrum of the Missing Integer (0)  
gamer_extreme_101 wrote:
"Shetland Pony" would have been an immense improvement.
Yes, Mr Cramp was right all along, wasn't he ? We should start referring to .13 as "Shetland Pony" right away, before it's too late.

.14 can be "Bride of the Shetland Pony".

- Gerry
03-22-2006 at 04:29 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
DROD is not a pony! :angry

____________________________
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.
03-22-2006 at 07:09 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
Swivel
Level: Master Delver
Avatar
Rank Points: 236
Registered: 09-14-2005
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
DROD is a way of life.

Ponies are a way of life.

Thus, DROD is a pony.

I don't see what's so complicated about it...
03-22-2006 at 09:00 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
gamer_extreme_101
Level: Smitemaster
Avatar
Rank Points: 1939
Registered: 03-07-2004
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
No. 2.0.14 should be called "The Apple Pie Patch". Delicious, fills you up, smells great. I can't think of anything better than apple pie at the moment.

____________________________
--That guy with a million different aliases since he doesn't like this name anymore.
03-23-2006 at 01:18 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: The Conundrum of the Missing Integer (0)  
gamer_extreme_101 wrote:
I can't think of anything better than apple pie at the moment.
Thinking "American Pie" (the movie, and especially that one scene) will fix that...

*ducks*

(At least I don't think you'll crave much for apple pie for a while after that... :D)

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(

[Last edited by Briareos at 03-23-2006 02:59 PM]
03-23-2006 at 02:58 PM
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 : Bugs : The Conundrum of the Missing Integer (A scripting thing)
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.