Jump to content

Setting a global variable.. through fragment in CK


Recommended Posts

Hi everyone,

 

So I'm setting up the custom menu in terminal and added these lines

Form Property CLMAFREE Auto

CLMAFREE.SetValue(1)

 

This is to allow a player to select that menu option that sets the global value of CLMAFREE to 1 so people can make CLM mods.

 

Then I get these errors like this:

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright (C) ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "Fragments:Terminals:TERM_01CLMTerminalConfig_0202AF0A_6"...
C:\Users\xxx\AppData\Local\Temp\PapyrusTemp\Fragments\Terminals\TERM_01CLMTerminalConfig_0202AF0A_6.psc(7,5): no viable alternative at input 'Property'
No output generated for Fragments:Terminals:TERM_01CLMTerminalConfig_0202AF0A_6, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on Fragments:Terminals:TERM_01CLMTerminalConfig_0202AF0A_6

So .. I'm not sure how I can get this working. I removed the existing fragments as they asked for source file and was preventing the compile.

 

Is there anyway to get it working? Still using the Papyrus Fragment within the Terminal section.

Link to comment
Share on other sites

If I understand you correctly you should do the following

When in the terminal screen click on properties under the papyrus fragment, A new window will pop up, click on add property(bottom left). Another window will pop up here for type you select from the list Globalvariable and in the name field you type the name of your variable, hten click ok. Your new property should now show up in the previous window. there select your property an click auto-Fill. The blue plus should turn yellow. after this close the property window and int he papyrus fragment type CLMAFREE.SetValue(1)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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