How to activate a container using scripts?
Posted: 02 Aug 2018, 23:25
So I stumbled across a discussion in Morrowind Modding Discord, and tried this issue myself. stolen_goods is a container ID, only 1 instance exist in the game.
Example console:
Example script:
Tried using forcegreeting, gives weird buggy results:
; dialogue window opens and cannot close it. Youre stuck here, only way to quit is close the game externally.
but if you use forcegreeting on a valid object first:
; dialogue window opens and you can close it.
Example console:
Code: Select all
stolen_goods->activate ; does not work
Code: Select all
begin test
if ( player->gethealth 1 )
stolen_goods->activate ; does not work
endif
end
Code: Select all
stolen_goods->forcegreeting
but if you use forcegreeting on a valid object first:
Code: Select all
nedhelas->forcegreeting
stolen_goods->forcegreeting