Lady Rowena on 23/2/2003 at 04:42
How can I set that when the player frob a certain lever and/or opens a secret door he/she has found a secret?
Thank you.:)
Hit Deity on 23/2/2003 at 05:44
A lot of objects like doors and switches that you have that are set to be a Secret in DromEd will be tracked automatically by the Dark Engine and will report it to the appropriate inquest variable.
To make an object a Secret, open up its Properties and add two things: a script called TrackHid (capitalization is crucial) and add Dark GameSys > Stats and click Hidden. I think that's it. This will cause the door being opened or the switch being turned on to put the Found Secret! message at the top of the screen, and it will show up at the end of the mission as Secrets Found: 1 of 1, or however many you have.
I don't know what all objects it can be used on, or what exactly the triggering event is (frob, tweq, script message?), but I've used that successfully on doors and switches. What I mean is, I'm not sure if it could be used for turning a switch Off, or if you placed it on something like a book if it would work. :confused:
Schwaa2 on 23/2/2003 at 09:23
I thought you were supposed to use the scripts:
FrobFind
SecretSounds
Hit Deity on 23/2/2003 at 10:11
I've never heard of those, schwaa.....
I used the ones I suggested above in my two FMs, so I know how they work, but can you explain those so I'll know what I'm missing? What do they go on and how do they work?
I think it was telliamed, ..... posted a printout of his .OSMs and those are listed, as well as TrapFindSecret, which I know nothing about either. Come to think of it, there is probably 75% or more of the scripts listed in telliamed's list I have never heard of.
Lady Rowena on 24/2/2003 at 22:58
Thank you Hit Deity, it worked perfecly! :thumb:
Schwaa2 on 27/2/2003 at 06:14
You add those scripts to the secret item, item, switch, ect...
You also have to add Dark GameSys > Stats and click Hidden.
I used that for 3 mission so far.
trefoilknot on 20/4/2020 at 03:43
I'm having some trouble getting this to work. I've added Dark GameSys > Stats > Hidden, and the TrackHid script to several items (9 to be exact). Now, when I play the mission, it correctly reports the total number of secrets, but does not register any of the ones found. That is, the load out screen always says 0 out of 9 secrets found, and picking them up in game does not cause the "Found Secret" sound to play. Is there something else I need to do to make this work? Objectives and victory conditions are working just fine.
I tried Schwaa2's suggestion to use FrobFind SecretSounds instead of TrackHid, but that didn't seem to work either.
I believe NewDark changed the way secrets are accounted for---did it change the way they should be set up, too?
Lord Taffer on 20/4/2020 at 07:12
If I recall correctly, secrets worked when I used this method --> Dark GameSys > Stats > Hidden --> to switches that opened a secret door (these were registered as secrets correctly, 3/3). I tried to add "Hidden" straight to loot/items, but it didn't work.
Someone more experienced can give you better answers, but adding Hidden straight to the switch worked for me. I don't know how to get that secret sound to work.
trefoilknot on 20/4/2020 at 14:12
Aha! Figured it out. It seems you're right Lord Taffer; TrackHid doesn't appear to work on loot.
However, Schwaa2's suggestion to use FrobFind and SecretSounds works, but you also have to add Engine Features > FrobInfo > World Action > Script to the loot.
Lord Taffer on 20/4/2020 at 14:52
Good to know trefoilknot! I'm going to use this with my new mission's secrets.