Post by mitschu on Nov 17, 2011 13:53:37 GMT
Hi, I just recently returned to Morrowind in honor of Skyrim coming out, being that MW is my favorite of the series, and for the first time I started tapping into the Construction Set to see what I could do with it - so far, I've had fun, but I've run into an issue that I can't seem to solve, specifically while trying to make an... (ahem) Storage Keyring item that accesses a remote chest for you.
In particular, it seems as though the
"remote_chest"->Activate, player
function does not work, although I've seen on several sites that it should cause the item to be activated by the play no matter where they are, as long as the item is flagged persistent, which mine are.
I admit using the MW scripting language is driving me nuts, and it's probably very likely as a newb to this that I'm overlooking something, but I tried to test the issue in game by using the command manually in the console, and then teleporting to the chest, opening it, and trying the command again... and no luck.
Honestly, I'm almost of the mind that the sites out there documenting "X"->Activate, player might just be messing with my mind, and no such function exists.
I'll post the entire script below, sorry if it takes up too much space, but I'd appreciate any assistance y'all could offer me. ^_^
Also, all items referenced are kept in a small interior cell named 0mit_chestspace, all are flagged persistent, the script itself is on a prong item called 0mit_storagekey, the menus work fine, but clicking on any option other than More... / Less... just causes the script to accomplish nothing (and manually doing a "0mit_armor"->Activate, player from the console does nothing as well) so without further ado:
In particular, it seems as though the
"remote_chest"->Activate, player
function does not work, although I've seen on several sites that it should cause the item to be activated by the play no matter where they are, as long as the item is flagged persistent, which mine are.
I admit using the MW scripting language is driving me nuts, and it's probably very likely as a newb to this that I'm overlooking something, but I tried to test the issue in game by using the command manually in the console, and then teleporting to the chest, opening it, and trying the command again... and no luck.
Honestly, I'm almost of the mind that the sites out there documenting "X"->Activate, player might just be messing with my mind, and no such function exists.
I'll post the entire script below, sorry if it takes up too much space, but I'd appreciate any assistance y'all could offer me. ^_^
Also, all items referenced are kept in a small interior cell named 0mit_chestspace, all are flagged persistent, the script itself is on a prong item called 0mit_storagekey, the menus work fine, but clicking on any option other than More... / Less... just causes the script to accomplish nothing (and manually doing a "0mit_armor"->Activate, player from the console does nothing as well) so without further ado:
Begin 0mit_storagering
short OnPCEquip
short PCSkipEquip
short button
short StepOn
if ( OnPCEquip == 1 )
set OnPCEquip to 0
set PCSkipEquip to 1
set StepOn to 1
endif
if ( StepOn == 1 )
MessageBox "Which storage do you wish to access?" "Reagent" "Potion" "Alcohol" "Scroll" "Book" "Soul Gem" " Trinket" "More..." "Cancel"
set StepOn to 11
endif
if ( StepOn == 11 )
set button to GetButtonPressed
if ( button == -1 )
Return
endif
if ( button == 0 )
"0mit_reagent"->Activate
endif
if ( button == 1 )
"0mit_potion"->Activate, player
endif
if ( button == 2 )
"0mit_alcohol"->Activate, player
endif
if ( button == 3 )
"0mit_scroll"->Activate, player
endif
if ( button == 4 )
"0mit_book"->Activate, player
endif
if ( button == 5 )
"0mit_gem"->Activate, player
endif
if ( button == 6 )
"0mit_trinket"->Activate, player
endif
if ( button != 7 )
set StepOn to 0
endif
if ( button == 7 )
set StepOn to 2
endif
endif
if ( StepOn == 2 )
MessageBox "Which storage do you wish to access?" "Armor" "Weapon" "Clothing" "Jewelry" "Quest" "Misc" "Back..." "Cancel"
set StepOn to 22
endif
if (StepOn == 22 )
set button to GetButtonPressed
if ( button == -1 )
Return
endif
if ( button == 0 )
"0mit_armor"->Activate, player
endif
if ( button == 1 )
"0mit_weapon"->Activate, player
endif
if ( button == 2 )
"0mit_clothing"->Activate, player
endif
if ( button == 3 )
"0mit_jewelry"->Activate, player
endif
if ( button == 4 )
"0mit_quest"->Activate, player
endif
if ( button == 5 )
"0mit_misc"->Activate, player
endif
if ( button != 6 )
set StepOn to 0
endif
if ( button == 6 )
set StepOn to 1
endif
endif
End
short OnPCEquip
short PCSkipEquip
short button
short StepOn
if ( OnPCEquip == 1 )
set OnPCEquip to 0
set PCSkipEquip to 1
set StepOn to 1
endif
if ( StepOn == 1 )
MessageBox "Which storage do you wish to access?" "Reagent" "Potion" "Alcohol" "Scroll" "Book" "Soul Gem" " Trinket" "More..." "Cancel"
set StepOn to 11
endif
if ( StepOn == 11 )
set button to GetButtonPressed
if ( button == -1 )
Return
endif
if ( button == 0 )
"0mit_reagent"->Activate
endif
if ( button == 1 )
"0mit_potion"->Activate, player
endif
if ( button == 2 )
"0mit_alcohol"->Activate, player
endif
if ( button == 3 )
"0mit_scroll"->Activate, player
endif
if ( button == 4 )
"0mit_book"->Activate, player
endif
if ( button == 5 )
"0mit_gem"->Activate, player
endif
if ( button == 6 )
"0mit_trinket"->Activate, player
endif
if ( button != 7 )
set StepOn to 0
endif
if ( button == 7 )
set StepOn to 2
endif
endif
if ( StepOn == 2 )
MessageBox "Which storage do you wish to access?" "Armor" "Weapon" "Clothing" "Jewelry" "Quest" "Misc" "Back..." "Cancel"
set StepOn to 22
endif
if (StepOn == 22 )
set button to GetButtonPressed
if ( button == -1 )
Return
endif
if ( button == 0 )
"0mit_armor"->Activate, player
endif
if ( button == 1 )
"0mit_weapon"->Activate, player
endif
if ( button == 2 )
"0mit_clothing"->Activate, player
endif
if ( button == 3 )
"0mit_jewelry"->Activate, player
endif
if ( button == 4 )
"0mit_quest"->Activate, player
endif
if ( button == 5 )
"0mit_misc"->Activate, player
endif
if ( button != 6 )
set StepOn to 0
endif
if ( button == 6 )
set StepOn to 1
endif
endif
End