6743bfe9a3c0f

6743bfe9a5030
1 Guest is here.
 

6743bfe9a56cdBuff Skeleton

6743bfe9a5735
Hey guys, working on some level tweaks and additions to the original game as part of a mod, and wondered if these things are doable:

1.  I'm trying to make one of those aux power cell slots link to a door tripwire, i.e. activate a door like a card slot does. I've tried replicating the card slot setup seen elsewhere in the game, where the tripwire links to the slot and the slot links to the door (which is how the card readers are set up), but all this does is open the door when a power cell is supplied. If the door closes, it won't reopen. I've also tried linking the slot to the tripwire and the tripwire to the door, but then that just makes the door usable from the get-go.

Is there something I'm missing, or are there limitations to what the aux power cell slots can do? It's not the end of the world if the slot just perma-opens the door, but it would be nice to make it a usable door once powered.


2. I've got another one of those forcefield-secured areas like the closet in Med, where there's a crew computer you hack to disengage the field. The setup works fine, but only when hacked. I'm wondering if it's possible to make the same thing happen, but when repaired instead (i.e. no hack needed). Setting the object state to Broken works for repair, but after the repair, you still have to hack it to make the forcefield disappear.

I thought that swapping HackLink for SwitchLink might do the trick, but that didn't work either. I think this should be possible, though, since we've got a broken hack crate that opens as soon as you repair it, no hacking required. Only thing that doesn't work in that situation is the door open animation on the crate.

Similarly, the popup screen when frobbing the computer doesn't show the typical "this thing is broken" image with the garbled stuff all over -- it just has the usual "you don't have access to this system!" thing. Is that fixable as well?

Again, not the end of the world if this is just how things will work for these objects. For now, I just made the hack requirement and difficulty really low, since the goal is to start implementing more optional areas and devices that are broken to make the repair skill more useful.


Thanks for any pointers!

6743bfe9a58c5voodoo47

6743bfe9a5915
1. replicate setup on vanilla medsci1 door 335.
2. yes, some NVscripting on a custom object should do the trick. more later, need sleep.

6743bfe9a59f0Buff Skeleton

6743bfe9a5a3a
Thanks, eager to check out the scripting. As for the Medsci1 door, that one opens once and then never closes again -- my goal was more along the lines of enabling an open/close door that simply is "locked" without the power cell supplied, then "unlocked" once you add it. Is that possible?

6743bfe9a5addvoodoo47

6743bfe9a5b25
that's why I've said vanilla medsci.

6743bfe9a5bf3Buff Skeleton

6743bfe9a5c3b
Oh, whoops, totally glazed over that. It's been ages since I ever cracked open anything pure-vanilla! I'll have a look.

[Edit] OK, so it's basically like... unlock trap, invisible button, tripwire, and you're more or less set. Simple enough!

[Edit2] Up and running. Thanks for that!
« Last Edit: 16. February 2018, 00:15:01 by Buff Skeleton »

6743bfe9a5d22voodoo47

6743bfe9a5d6d
about that repairable panel, I'd just create a new child archetype of it, put NVSimpleRepair and NVRelayTrap on it and tick to not inherit any scripts, and then do whatever you want upon the item repaired message.

6743bfe9a5f54Buff Skeleton

6743bfe9a5f9e
OK cool, thanks! That works for the repair aspect -- though I think I'm missing something for sending a TurnOn signal when the repair is complete. I put in a button to test the setup and make sure it works when SwitchLinked, and it does, so I know the receiving objects are getting the TurnOn message that way.

From the docs I'm reading in NVScript.html, it looks like I need to specify something in the Objlist Arg parameter. I tried explicitly setting NVSimpleRepairTOn="TurnOn";, but that didn't seem to work, and "TurnOn" should be the default message anyway, so I'm guessing the computer isn't actually sending a message to the SwitchLinked objects at all when repaired.

In the Broken Comp archetype I created, I have NVSimpleRepair in Script 0, then NVRelayTrap in Script 1, with Don't Inherit checked off. While searching the command list for script-related stuff, I found the script inspector, and confirmed that A Broken Comp has those two scripts both intact, so that much seems OK.

I didn't see NVSimpleRepair in the docs, either -- is that a newer addition that is undocumented, perhaps? I'm wondering if there's a special script arg I need to tell it to actually send a TurnOn message when the repair completes. Ideas?

[Edit] Put NVSpy on there too, which is neat -- I see a repeating Timer message, as well as FrobWorld and stuff, and when repaired, I see ObjStateChange, ObjState1To0, and ObjState-Repaired... but not sure how to make use of that info yet.

[Edit2] AH HA! Got it! Had to put NVRelayTrapOn="ObjState-Repaired"; in the args, nothing else. That way, the repair message counts as the signal to trip NVRelayTrap, which then trips the objects linked. Excellent.
« Last Edit: 16. February 2018, 18:10:16 by Buff Skeleton »

6743bfe9a6054voodoo47

6743bfe9a607b
go to obj 178 and see the setup (will spawn a soda can after panel repair). this is just an example, you could do it in a dozen of ways.

//looks like you've got it.
[medsci1_test_obj178.mis expired]
« Last Edit: 17. February 2018, 12:46:27 by voodoo47 »

6743bfe9a616cBuff Skeleton

6743bfe9a61b5
Hate to open a whole new thread for this, so:

Is it possible for the EngineRemoveRad script in Eng1 to exclude certain room brushes? From what I can see, it simply finds all rooms with the RadRoom script and purges the radiation. I've added radiation to the engine nacelle rooms, but the radiation is gone by the time you get there per the RadBeGone trigger. If you go into the nacelles before that (via game mode), though, the radiation works as expected.

So, is it possible to keep radiation intact for the nacelles but still purge the coolant tubes? Or can the radiation parameters be added back to specific rooms after that, maybe?

6743bfe9a6241voodoo47

6743bfe9a6289
well, you will obviously have to rework the level to not use EngineRemoveRad.

6743bfe9a6520ThiefsieFool

6743bfe9a6574
You can place radiation that won't get removed with a radiation stim source on a marker and an ambient sound for the geiger counter, the only thing missing will be the HUD notifications for entering/exiting a radioactive roombrush.

6743bfe9a664bBuff Skeleton

6743bfe9a6695
Thanks for the suggestion. I'll play around with stims and see what goes, though it probably will be easier in the long run to just stuff some midwives in there or something. We added radiation to their lasers, hah. And ultimately this was just a "would be nice" kind of thing, since there's only one reason to ever go into either nacelle -- some loot.
1 Guest is here.
Come back, please. You're very much missed.
Contact SMF 2.0.19 | SMF © 2016, Simple Machines | Terms and Policies
FEEP
6743bfe9a6d55