Script in question:
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (GetIsSkillSuccessful(oPC, SKILL_SEARCH, 20))
{
object oTarget = GetNearestObjectByTag("WP_cent_gal_alrmcnt");
location lTarget = GetLocation(oTarget);
object oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "cent_gal_alrmcnt", lTarget);
object oDone = OBJECT_SELF;
DestroyObject(oDone, 0.0);
}
}
It fires off a trigger on the ground. I like it because a) I made it myself, b) it spawns in my special placeable and c) I can use it several times in the same area to spawn the placeable many times in new places. Almost perfect.
The only problem is that when the PC enters the trigger and fails the search check, they get a floating-text-above-head-message saying “search:failure.” On one hand, that’s a clue that you should be searching here, and that might be useful. On the other hand, it sort of defeats the purpose of the secret object, since you know where the secret is even when you fail to find it.
I notice that the default secret object triggers don’t do that. So is there a way to stop the message from appearing?