Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : I have a scripting question
New Topic New Poll Post Reply
Poster Message
disoriented
Level: Smitemaster
Rank Points: 1198
Registered: 08-07-2007
IP: Logged
icon I have a scripting question (0)  
Scripting question regarding the detection of characters:

If... "Wait for entity type" <-returns true if the specified character is in the expected region and is visible.

However, it seems to return false if the character is there and not marked visible.

For what I'm doing, Beethro needs to be able to step on a character so it's not marked visible, and ghost display is on.
How can DRODscript detect the presence of the invisible character?

____________________________
34th Skywatcher

[Last edited by disoriented at 06-19-2017 02:04 AM]
06-19-2017 at 02:03 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
Xindaris
Level: Smiter
Avatar
Rank Points: 487
Registered: 06-13-2015
IP: Logged
icon Re: I have a scripting question (+1)  
The standard way I'd handle this is by having the scripted character in question use "Wait for player to touch me" or if that won't work, use _MyScript vars set to _MyX and _MyY so that the "Wait for Entity Player at" condition checks the specific spot that invisible character is on.

Or...if you only have one of the character in question it could set a pair of global vars to its own location and have another character detect whether those match a certain range. It depends on what you're after specifically.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

06-19-2017 at 02:51 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1092
Registered: 06-14-2005
IP: Logged
icon Re: I have a scripting question (+1)  
It's not possible to detect an invisible character, per se. "Wait for player to touch me" don't work either, IIRC (though it does for a ghost touch character - I'm not 100% sure if this is what you're asking). Can the character not check its own coordinates for Beethro? That's (probably) what I'd do, and then set a flag variable if other scripts need to be notified.
06-19-2017 at 05:03 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
disoriented
Level: Smitemaster
Rank Points: 1198
Registered: 08-07-2007
IP: Logged
icon Re: I have a scripting question (0)  
Thanks, you've both been very helpful.

____________________________
34th Skywatcher
06-19-2017 at 06:01 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
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : I have a scripting question
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.