Jump to content

How to use Text Replacement in Terminals to display a Global Variable?


HappySlapp

Recommended Posts

I was curious if it actually works or not so I tested it myself and it indeed works.

For my test I've created a global named aaa_GlobalName, and created a terminal with one entry with Item Text 'test <Global=aaa_GlobalName>' and placed it in the world.

Then I created an alias in a quest for the terminal, the quest is named aaa_globalterm, and checked "Uses Stored Text" and "Stores Text".

I've added the global to the "Text display globals" in the Quest Data tab of this same quest.

And added a script to the quest to control the global variable from the console:

Scriptname aaatestsetgb extends Quest

GlobalVariable Property aaa_GlobalName Auto

Function ug(float val)
	aaa_GlobalName.SetValue(val)
	UpdateCurrentInstanceGlobal(aaa_GlobalName)
EndFunction

Once in-game I can change the number displayed in the terminal entry using this console command:

cqf aaa_globalterm ug 50

(CallQuestFunction Quest Function Argument)

It displays test 50 in the terminal entry.

Edited by DieFeM
Link to comment
Share on other sites

I have used the number replacement (from a global) in holotapes and it does indeed work, but with one very big caveat - you must open the holotape in a terminal, not your pipboy.

This made it useless to me so I went no further.

Very strange restriction... Especially for a very useful holotape feature that doesn't need an attached quest etc...

Link to comment
Share on other sites

I have used the number replacement (from a global) in holotapes and it does indeed work, but with one very big caveat - you must open the holotape in a terminal, not your pipboy.

This made it useless to me so I went no further.

Very strange restriction... Especially for a very useful holotape feature that doesn't need an attached quest etc...

Ah!!!

 

And the other weird limitation is that the Papyrus function "OnHolotapePlay()" won't fire if the holotape is played on a PipBoy. Go figure...

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...