Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Rattlesnake bug
New Topic New Poll Post Reply
Poster Message
Nuntar
Level: Smitemaster
Avatar
Rank Points: 4596
Registered: 02-20-2007
IP: Logged
icon Rattlesnake bug (0)  
I have a character with the following script:

  Imperative 14
  If ... 
        Wait while entity is Monster 11,2,11,2
     Set Music 11,0
  Else 
     End 
  If End


(Imperative 14 is "Restart script on entrance".)

When playtesting, I've tried both starting in the room and starting in an adjacent room and entering this one, but in neither case do I hear a music change. Is something wrong with my scripting -- or do Rattlesnakes not count as monsters?

____________________________
50th Skywatcher
12-27-2008 at 04:12 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
12th Archivist
Level: Smitemaster
Avatar
Rank Points: 789
Registered: 12-07-2008
IP: Logged
icon Re: Rattlesnake bug (+1)  
This is a bug, but you can cut around it. You don't have to make the music-changing event to be "Wait until entity Monster is at: [location]". You could wait until a door opens, or wait until a trapdoor falls or something, and use that as the music-changing event instead of waiting for no more monster there.

____________________________
It was going well until it exploded.
~Scott Manley

Check out the DROD Wikia project here!

[Last edited by 12th Archivist at 12-27-2008 04:18 PM]
12-27-2008 at 04:17 PM
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: Rattlesnake bug (0)  
Is the bug with this issue that a rattlesnake head or body is not being considered a monster at the scripted location?

____________________________
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.
01-13-2016 at 02:59 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
Nuntar
Level: Smitemaster
Avatar
Rank Points: 4596
Registered: 02-20-2007
IP: Logged
icon Re: Rattlesnake bug (+2)  
No, the bug is that my seven-years-ago self didn't realise that "If... Wait while entity Monster" returns true if there is no monster at the location.

I've run a few tests in version 57 using "Wait for entity" and "Wait while entity" with and without "If...", and it seems that in every case, a rattlesnake head or body tile is correctly treated as a monster.

____________________________
50th Skywatcher
01-13-2016 at 04:48 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Rattlesnake bug
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.