Hey everyone, firstly sorry for this, but I'm new in scripting. I want to do that after I killed an enemy, it drop a key (red,blue skull or key it doesn't matter ). I already read ideas like: ,,Thing_SpawnNoFog(5, 85, 0);" but for this i need to add a TID for the enemy if I know well. But I don't know how! I'm creating in (GZ)Doom Builder-Zdoom:Doom2(Hexen Format).  I already read some pages but nothing, The closest one was ,,Right click on the thing and in the actions menu I can give a TID but I can't find it.

Please help me, if some one can, please do a step by step! 

Share this post


Link to post

TID Refers to Thing tag, you just right click that thing and change it's tag.

2 people like this

Share this post


Link to post

It's not that difficult.

First place the player, some ammo and weapon, then place a spawnspot, for example type 9013, and give it a TID. Here that thing in the middle.

 

5QCoeaF.jpg

 

Then edit the monster and attach an action to it, here to spawn a red key at spawnspot 101

 

ObkXCGK.jpg

 

Shooting the monster will spawn the key.

 

Consult the ZDoom WIKI 

https://zdoom.org/wiki/SpawnSpot

https://zdoom.org/wiki/Thing_Spawn

 

Or, instead of attaching a single action to the monster, you could attach a script, action 80, so that more than one action can be performed.

https://zdoom.org/wiki/Action_specials

Edited by Kappes Buur
2 people like this

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now