Jump to content

How to make misc items open a messagebox when activated?


Tagaziel

Recommended Posts

Another script problem: I can make weapons and armour pop infoboxes, but stimpaks and bobby pins prove to be tougher nuts to crack.

 

scn ADMBobbyPinScript

begin OnEquip player

if GetGlobalValue ADMmode == 1 ; A Description Mod global value - 1 is examine mode, 0 is regular gameplay mode

showmessage ADMBobbyPinDesc

endif

end

 

This doesn't work.

 

I found something on this wiki:

 

http://cs.elderscrolls.com/constwiki/index.php/OnActivate

 

According to that, I should be able to create a script that would allow me to force eg. a bobby pin to display a message box when activated. Problem is, how would I do that? Please help.

Link to comment
Share on other sites

Assuming nothing has changed with regard to this since Fallout 3, miscellaneous items cannot trigger scripts. However, books will activate OnEquip blocks, and ingestibles can trigger effect scripts if they are set up to do so.

 

Cipscis

 

EDIT:

 

Just to clarify - I'm referring to these items as inventory items, as opposed to references in the game world.

 

Cipscis

Edited by Cipscis
Link to comment
Share on other sites

Don't think you can make it for the bobby pins since they are not activateable or equipable objects. Unless you create a new armor item and replace the bobby pins themselves.

For stimpacks the OnActivate block should work. The OnEquip would also not work here because stimpacks can't be equipped by default.

 

Edit: Cipsis beat me to it Listen to him :thumbsup:

Link to comment
Share on other sites

  • Recently Browsing   0 members

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