Here are two scripts I tried together with each other
begin NE_port_cont_01
short OnPCEquip
if ( OnPCEquip == 1 )
"NE_port_chest_01"->Enable
PlaceAtPC, "NE_port_chest_01", 1, 125, 0
set OnPCEquip to 0
endif
end
AND
Begin NE_port_chest_01_act
short button
short messagex2
if (OnActivate == 1)
MessageBox"You have just unpacked your portable chest, what do you want to do?" "Open Chest" "Pack Up"
set messagex2 to 1
endif
if ( messagex2 == 1)
Set button to GetButtonPressed
if ( button == 0 )
Activate
endif
if ( button == 1 )
Disable
set messagex2 to 0
endif
endif
end
I have also tried this script:
begin NE_port_cont_02
short OnPCEquip
if ( OnPCEquip == 1 )
set OnPCEquip to 0
"NE_port_chest_01"->Activate, player
endif
end