Page 1 of 1

Things and tags

Posted: Fri Oct 21, 2016 11:41 am
by Marscaleb
Is it possible to have things react to tags in a level? Using DDF (or RTS I suppose) so I could have a thing change its state according to when a switch in the level is active.

I just had a thought about this and realized that this functionality could lead to some amazing things. At the very least, I could use it to create switches that are seen as things instead of being a special wall pattern, and have them animate to an off and on position when the switch is active.
To a further extent, I could create monsters that respond to switches and change their behavior according to specific events within the map.

Is there functionality for this already? I'm looking through the wiki but for some reason I can't find the pages that detail out the options.

also, can I get things to react to the player pressing spacebar? I think I recall seeing this in an example wad, but I'm at work and can't check it at the moment.

Re: Things and tags

Posted: Sun Oct 23, 2016 1:42 pm
by Corbachu
When I get home I will elaborate, but yes: you use the command RTS_ENABLED_TAG via DDF, with a condition, probably TAGGED_USE with the TAG number in your RTS script (can also work between COAL). We had animated 3D model switches in early builds of Hypertension that worked great with this method. Hypothetically, you can do anything with it. We even had spots where you could read books if you used a bookshelf, and if you had a certain inventory item (a dummy AMMO value), you could do more with them, such as learn spells or find an access code.

Re: Things and tags

Posted: Mon Oct 24, 2016 9:55 pm
by Marscaleb
That sounds awesome! I would like to read up on that.