Scripting question...

Mapping & modding Fallout Tactics and reviewing maps thereof.
Post Reply
User avatar
Ed the Monkey
Vault Scion
Vault Scion
Posts: 202
Joined: Thu Jun 20, 2002 6:11 am
Location: In a vault filled with typing monkeys...
Contact:

Scripting question...

Post by Ed the Monkey »

I have a big scripting problem and I'll probabbly have more, but i'll deal with this one first. I want to know how to attach an object to a door, as in, when the object is broken the door can no longer close, it becomes locked open and until it is broken the door remains locked closed.
The object is built like any other breakable object, much like breakable terminals or generators. any ideas?
Just one monkey in a room of infinite monkeys, typing on infinite computers, now taking an infinite coffee break.......
User avatar
Section8
I Make Games!
I Make Games!
Posts: 286
Joined: Thu Apr 18, 2002 1:45 pm
Location: Apartment 223
Contact:

Post by Section8 »

Okay, set the door up as being permanently locked, with an impossible (0) difficulty, and set up a trigger to toggle the OSS (Object Script State) of the door when the breakable is destroyed. I think that ought to do it.
--
Only a real artist knows the actual anatomy of the terrible, or the physiology of fear - the exact sort of lines and proportions that connect up with latent instincts or heriditary memories of fright, and the proper colour contrasts and lighting effects to stir the dormant sense of strangeness.
User avatar
Jimmyjay86
Hero of the Glowing Lands
Hero of the Glowing Lands
Posts: 2102
Joined: Thu Apr 18, 2002 4:02 am
Location: Wisconsin
Contact:

Post by Jimmyjay86 »

Why doesn't the OSS work to relock the door?
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Post by OnTheBounce »

Jimmyjay86 wrote:Why doesn't the OSS work to relock the door?
There's a "Lock/Unlock Door" trigger to do that.

BTW, you can lock doors in the open position. Basically the OSS can't be changed when a door is locked, regardless of whether or not it is closed.

OTB
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Ed the Monkey
Vault Scion
Vault Scion
Posts: 202
Joined: Thu Jun 20, 2002 6:11 am
Location: In a vault filled with typing monkeys...
Contact:

Post by Ed the Monkey »

ok.... I had everything up to the OSS. What I don't understand is how to tie a variable to the distruction of an object...
Just one monkey in a room of infinite monkeys, typing on infinite computers, now taking an infinite coffee break.......
User avatar
OnTheBounce
TANSTAAFL
TANSTAAFL
Posts: 2257
Joined: Thu Apr 18, 2002 8:39 am
Location: Grafenwoehr, Oberpfalz, Bayern, Deutschland
Contact:

Post by OnTheBounce »

Ed the Monkey wrote:ok.... I had everything up to the OSS. What I don't understand is how to tie a variable to the distruction of an object...
Use a "Quantity Unit" trigger. The object will have to have a Tag Name, of course. You can then set up the trigger w/the condition either being "has 0% hp" or "less than 1/exactly 0 alive at anywhere". When the condition is fulfilled, you simply have the Action be to change the variable to whatever value you want it to be.

A word of advise: Be very, very, VERY careful w/variable values as more than a few bloody clumps of hair - mine included! - have ended up strewn on the floor thanks to a simply typo in one of these fields. Endocore uses numerical values for his, and simply keeps track of what each value is supposed to represent on scratch paper. You might give that a try.

Cheers,

OTB
"On the bounce, you apes! Do you wanna live forever?!"
User avatar
Ed the Monkey
Vault Scion
Vault Scion
Posts: 202
Joined: Thu Jun 20, 2002 6:11 am
Location: In a vault filled with typing monkeys...
Contact:

Post by Ed the Monkey »

AHHHH ok! now i understand. Thanx
Just one monkey in a room of infinite monkeys, typing on infinite computers, now taking an infinite coffee break.......
Post Reply