[an error occurred while processing this directive]
Things - http://www.doomworld.com Forums


Original message

SoulMuncha

soulmuncha@hotmail.com
203.59.24.133

"Things" , posted Thu 10 May 22:25user profileedit/delete messagepost reply


Hello! Yet another question from me...

When you put Things in a level, you can set what difficulties they're on, whether they're deaf or not etc.

How exactly is this information handled? With linedefs, they can take triggers and sectors get flags, but what controls this stuff in Things? I was just thinking that maybe mods for Doom could take advantage of this to make monsters affect sectors and stuff, or that if a monster dies it kills other monsters or... something. I was thinking along the lines of my earlier post about how killing stuff opens things or ends the level or whatever.

 


Replies:

Wildman
GOD ON EARTH
rickclark58@yahoo.com
152.163.213.211

"Re(1):Things" , posted Fri 11 May 07:06:user profileedit/delete messagepost reply


ZDoom has this capability; it is called the "Thing Special". Any thing that can "die" (monsters, items you can pick up, etc.) can be set to execute a Special. A Special in ZDoom is a command that does something. It is analgous to a trigger in normal Doom.

If the special is ACS_Execute, it will execute an ACS (Action Code Script) script in ZDoom. On a simple level, scripts can be thought of as batch commands where you can execute mutliple commands at the same time time. However, ACS is really a simple programming language. ACS has variables, branching and scoping so extremely complex wads can be built.

Sometime ago I produced a copule wads where you went head to head with random Doom monsters. The wad featured a scoreboard and various game options and it was done completely in ACS.

ACS is quite easy to learn even for a non-programmer. I have a scripting primer that explains in simple language what a script is and how to create one. You can find it on the ZDoom Knowledge Base on cdrom (zdkb*.zip) or the ZDoom homepage. If you have done some programming, then ACS will look quite familiar.

(Hey, what is this God on Earth stuff anyway? Ling, are you mad at me for making fun of you in the Doom 3 forum? :) I'm Just Some Guy.)

Rick Clark
Just Some Guy

[this message was edited by Wildman on Fri 11 May 07:17]

 

 

Lüt
Albino Negro



toruonda@home.com
23065834
65.6.31.115

"Re(2):Things" , posted Fri 11 May 07:24user profileedit/delete messagepost reply


quote:
(Hey, what is this God on Earth stuff anyway? Ling, are you mad at me for making fun of you in the Doom 3 forum? :) I'm Just Some Guy.) ...
He's finally filling out custom titles for frequent users. There was an uproar in the General Forums about not being able to edit your titles.

---
You have been bothered by: Lüt
"Living Colour is my favorite black metal band."
www.doomworld.com/insanity
www.mp3.com/dyingcorpse
www.thebarnacle.f2s.com
AIM: Dying Corpse - SB4824 - XtbbTSzNyKw5sRB4 <-- Talk to me dammit!

 

ReX

gurkha_boy@yahoo.com
216.4.164.2

"Re(1):Things" , posted Fri 11 May 05:52user profileedit/delete messagepost reply


quote:
How exactly is this information handled? With linedefs, they can take triggers and sectors get flags, but what controls this stuff in Things? ...
What you describe is strictly a feature of source ports (with the notable exceptions in DooM2 of Commander Keen w/sector tag 666, and the Mancubus & Arachnotron w/sector tags 666 & 667 in Map07; DooM & Ultimate DooM have their own).

The way they work is as follows -- if the thing can be picked up (e.g., weapon, power up, health, armor) then the action is triggered when the thing is picked up. The action can be in the form of activating something in a sector (light level, crushing ceiling, etc.), or in the form of activating other things (e.g., "waking" up dormant enemies, spawning other things, etc.), or changing a sidedef texture (e.g., activating a scrolling wall).

If the thing is an enemy, then the action is triggered when the enemy dies. Using scripts you can trigger multiple actions from a single thing; you can even trigger actions after multiple things have been picked up or destroyed. If you're not using scripts, then you can typically only trigger a single action.

Check out the many excellent source ports available, at:

http://www.doomworld.com/ports/index.shtml

Only two things are certain: DooM and taxes

 

Lüt



toruonda@home.com
23065834
65.6.31.115

"Re(1):Things" , posted Thu 10 May 22:33user profileedit/delete messagepost reply


That's another option that would be possible with scripting systems like ACS or FraggleScript but unfortunately isn't available as a feature in most regular Doom ports. Again, I have no idea how to write scripts so I can't help you there.

---
You have been bothered by: Lüt
"Living Colour is my favorite black metal band."
www.doomworld.com/insanity
www.mp3.com/dyingcorpse
www.thebarnacle.f2s.com
AIM: Dying Corpse - SB4824 - XtbbTSzNyKw5sRB4 <-- Talk to me dammit!