Jump to content

How to remove/change a terminal menu item


Recommended Posts

You mean when used once, it should be removed from player's inventory? If so, use Game.Getplayer().RemoveItem(yourItemProperty,1,true) when player chooses any option.

 

EDIT: I have read your post second time and maybe you want to hide terminal menu, after player chooses it once. If so, create a new global variable and set it's default value to 0. Now open your terminal and choose the menu item you want to be hidden and inside papyrus fragment write YourGlobalVar.setvalue(1). (you should make the property of that variable first). Then under item conditions add new condition GetGlobalValue - YourGlobalValue - == - 0. This should do what you want

Edited by shavkacagarikia
Link to comment
Share on other sites

Sorry, wasn't able to get back to your other thread or my PC.

This is an example (from a quick Google search) of what I had meant (in your other thread) when I mentioned off the top of my head "bool onlyonce" (essentially what a 0/1 global variable does, actually):

Scriptname BobbleheadSkillScript extends ObjectReference  
  
bool OnlyOnce  
Perk Property PerkToAdd Auto Const  
  
Event OnActivate(ObjectReference akActionRef)  
    If OnlyOnce == false  
        If akActionRef == game.GetPlayer()  
            game.GetPlayer().AddPerk(PerkToAdd)  
            OnlyOnce = true  
        endif  
    endif  
EndEvent 

Anyhow, looks like you've found a better way. So, good luck. =)

(I use Global Variable objects a lot when adding collectibles to the my menu, so I agree that it's a good way to do it, for sure...and probably much better optimization wise)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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