Weird impy thing
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Tagging
 
Author
All times are GMT. The time now is 13:44. Post New Thread    Post A Reply
MagnuM
Banned


Posts: 451
Registered: 03-03


How can i make an item (key) appear after a certain enemy is killed?
How can i make the player exit the level after a certain enemy is killed?

Old Post 10-16-04 19:06 #
MagnuM is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7130
Registered: 01-03


Please specify which source port. Those with scripting capabilities can do it, those without can't (including Doom2.exe)

Old Post 10-16-04 20:55 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MagnuM
Banned


Posts: 451
Registered: 03-03



Graf Zahl said:
Please specify which source port. Those with scripting capabilities can do it, those without can't (including Doom2.exe)


my bad...SKULLTAG!!

Old Post 10-16-04 20:57 #
MagnuM is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7130
Registered: 01-03


In that case you will find the most comprehensive answers on the ZDoom forum and of course here:

http://www.zdoom.org/wiki/index.php?title=Main_Page

Since all ZDoom stuff also applies to Skulltag it is the best way to go.

The quick answer to your problem is to use the action special that is associated with each thing in the ZDoom/Hexen map format. You can set this to either end the level, spawn an item or start a script that can more complicated stuff.

Old Post 10-16-04 22:00 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MagnuM
Banned


Posts: 451
Registered: 03-03


thanks this should help. i appreciate it.

Old Post 10-16-04 22:10 #
MagnuM is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
MagnuM
Banned


Posts: 451
Registered: 03-03


i can't get the thing special to work.
what i want to be able to do is to kill one imp and it spawns a key when it dies. the thing in the zdoom stuff doesn't really explain how to do this.

Old Post 10-16-04 23:19 #
MagnuM is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
boris
meow


Posts: 3743
Registered: 05-00


http://www.zdoom.org/zdkb/zdoom8.html

Old Post 10-17-04 00:22 #
boris is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00


Give the imp a tid and a thing spawn special. In the parameters for the special, specify the item you want it to spawn (the spawn number for the key you want to spawn) and the tid of the object you want it to appear at. Make this the same as the tid that you gave the imp and the key will appear wherever the imp is when it dies.

Old Post 10-17-04 00:33 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Graf Zahl
Why don't I have a custom title by now?!


Posts: 7130
Registered: 01-03



Enjay said:
Give the imp a tid and a thing spawn special. In the parameters for the special, specify the item you want it to spawn (the spawn number for the key you want to spawn) and the tid of the object you want it to appear at. Make this the same as the tid that you gave the imp and the key will appear wherever the imp is when it dies.



No, it won't! Thing_Spawn doesn't spawn anything inside solid objects (including dying monsters.) You have to use a script to delay the spawn for a little time. Otherwise you may create a new imp that spawns the key with DECORATE:

code:
Actor KeyImp : DoomImp 10000 { DropItem BlueCard //(or whatever key you need) }

Old Post 10-17-04 00:40 #
Graf Zahl is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 5595
Registered: 12-00



Graf Zahl said:
No, it won't! Thing_Spawn doesn't spawn anything inside solid objects (including dying monsters.) You have to use a script to delay the spawn for a little time.


It's not often you are wrong with this kind of stuff, but at least as far as keys and many other pick ups are concerned, you are wrong with this one. I've used the technique loads of times. Most of the enemies in my marine assault dropped something and a great deal of them did it by using this process.

Try the following file. The zombie on the left will "drop" a blue key (and there will be a teleport flash). The zombie on the right will "drop" a yellow key. This is achieved using thing_spawn and thing_spawnnofog, and nothing else. No scripts, no dehacked, just thing specials and tids.

http://www.btinternet.com/~Enjay001/temp/keys.zip

Can't comment on the decorate monsters observation though. Never tried it.

Old Post 10-17-04 22:12 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
impClaw
Member


Posts: 333
Registered: 10-04


WARNING! : This works in ZDoom only...

Do like this to make you win after a enemy is killed:

1. Click the Effecs tab on the enemy
2. Type 243 in the special box
3. Test

Old Post 10-31-04 19:28 #
impClaw is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 13:44. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Tagging

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory