setsecret
The setsecret
script command is used to apply a blue color when the player's intuition skill is over a threshold for a prop. settrap off
and settrap -1
disable the blue color again.
The entity texture color will be multiplied by a RGB value between #669 (if the player's intuition skill is exactly the same as the given threshold) and #00f (if the player's intuition skill is at leas 100 points above the given threshold). Note that this can only make the color components darker so objects without much blue will appear black.
This is purely a visual effect to warn the player of danger - if the entity should reward the player when interacted with then that needs to be scripted separately.
If both a red trap color and blue secret color are set for an item and the player's skills are above both minimum threshold then the item will be colored blue according to the value configured using setsecret
.
Usage
setsecret <intuition*>
setsecret off
Context: Props
Parameters:
Parameter | Type | Description |
---|---|---|
intuition |
int or variable [-1,100] |
Minimum intuition skill required to detect the secret |