The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

Remotely Activating Terminal?

General mod discussion and requests.
Post Reply
User avatar
FiftyTifty
Posts: 493
Joined: Tue Apr 09, 2013 7:36 pm

Remotely Activating Terminal?

Post by FiftyTifty » Sun Mar 23, 2014 9:21 pm

Having the creative urge to make a mod, I decided to go through with it. However, I've hit a snag.


 


What I want to do, is activate a terminal, in a different cell to the player, by equipping an ARMO record which is then unequipped when the pipboy is deactivated.


The good news, is that every other part of the script functions as it should; the changing of the "Activated" short and the unequipping of the item. The activation of the terminal, however? No dice.


 


[collapsed title=Script]Scn AAAFyTyScriptMercRecruitPipboyPlugin01



short Activated



Begin OnEquip



    set Activated to 1  



end



Begin Menumode



    if Activated == 1



        PlayerREF.UnEquipItem AAAFyTyMercOVisionVTPPluginARMO 0 1

        set Activated to 0

        AAAFyTyMercOVisionTerminal01Ref.activate PlayerREF

        return



    endif



end[/collapsed]


I've tried making the terminal reference persistent, which had no effect.


So jah. Any ideas?



NILLOC 916
Posts: 341
Joined: Thu Aug 01, 2013 4:21 am

Doesn't the NV Cheat terminal

Post by NILLOC 916 » Mon Mar 24, 2014 3:01 am

Doesn't the NV Cheat terminal allow you to activate a portable version ? You could figure out how they do that, perhaps that's the answer. Or perhaps you could just make a duplicate terminal (in the instance that that's how they do it) and just name the item "______ Remote".


Cocaine is a hell of a drug.
- Rick James.

User avatar
Puppettron
Gary
Posts: 1715
Joined: Sat Nov 23, 2013 10:47 pm

go with luthien on this,

Post by Puppettron » Mon Mar 24, 2014 5:57 am

go with luthien on this, moving things to your location long enough to be activated works just fine, it's sort of how the courier dropboxes work in vanilla.


perms:  either a full fireworks display spelling out "Puppettron Made This" anytime a user accesses my content in-game, or just give me credit somewhere.

User avatar
FiftyTifty
Posts: 493
Joined: Tue Apr 09, 2013 7:36 pm

Oh? Guess I'll use my skills

Post by FiftyTifty » Mon Mar 24, 2014 10:56 am

Oh? Guess I'll use my skills of hackery and failure to attempt such a script :P


 


Many thanks for the responses.


Edit: Got it working by looking at the NVCheat Terminal thingy. Tah for the recommendation. And 'eres a copy of my script for those interested.


[collapsed title=Script]Scn AAAFyTyScriptMercRecruitPipboyPlugin01



short Activated



float fTimer



begin OnEquip



  Set fTimer to 0.5

  Set Activated to 1



end



begin Gamemode



    if Activated == 1

      if fTimer > 0

        set fTimer to fTimer - GetSecondsPassed

      else

        AAAFyTyMercOVisionTerminal01Ref.activate Player, 1

        Player.UnEquipItem AAAFyTyMercOVisionVTPPluginARMO 0 1

        Set Activated to 0

        return



    endif

  endif

End[/collapsed]


 



Post Reply