I want to be able to initiate a secret, specifically when picking up an item, rather then when entering an area.
Is that possible?
Secret in item?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
-
m8f
-

- Posts: 1500
- Joined: Fri Dec 29, 2017 4:15 am
- Preferred Pronouns: He/Him
- Location: Siberia (UTC+7)
Re: Secret in item?
Why not?
https://zdoom.org/w/index.php?title=Actor_flags
https://zdoom.org/w/index.php?title=Actor_flags
COUNTSECRET
Counts toward secret percentage.
-
Enjay
-

- Posts: 27627
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Secret in item?
To add to that, if you want a mapping solution, in ZDoomHexen format and UDMF you can use secret trigger map objects that you activate when the item is picked up by giving it a special to do so, and in UDMF you can give items the "counts as secret" flag in the map editor on an item by item basis.
Doing it in the decorate/zscript means the item will always count as a secret whenever you pick it up, regardless of which map it is on, doing it via a mapping solution means it will only count as a secret when you specifically set it to do so in your map. So, it's up to you which you prefer.
Doing it in the decorate/zscript means the item will always count as a secret whenever you pick it up, regardless of which map it is on, doing it via a mapping solution means it will only count as a secret when you specifically set it to do so in your map. So, it's up to you which you prefer.
-
Spaceshiporion
- Posts: 78
- Joined: Sun Dec 03, 2023 6:58 pm
Re: Secret in item?
Thank you all! I figured it out thanks to Enjay.