Version 9a
* Now really works with OBSE v19.
And with the new version the Minimap also works as before, thanks Kyoma.
scn guiEffectElementref Item ; Enchantment or Spell - Never an actual item.string_var IDstring_var Effectstring_var Namestring_var IconPathlong Iterlong Countlong EffectCodeBegin Function { Item } Let Count := GetMagicItemEffectCount Item While (Iter < Count) Let Effect := "form_background\effect_window\list_pane" Let ID := "Effect#" sv_Replace "#|%0.f", Iter, ID ; Get Effect Name if (IsNthEffectItemScripted Item Iter) Let Iter += 1 continue else Let Name := GetNthEffectItemName Item Iter endif ; InsertXMLTemplate - Effect_Template; PrintC "Effect: %z ID: %z" Effect ID InsertXMLTemplate "%z|effect_template|%z", Effect, ID, 1011 ; Crashing WinXP x64 - Verified.. ; Get Effect Icon Let EffectCode := GetNthEffectItemCode Item Iter Let IconPath := GetMagicEffectIconC EffectCode sv_Insert "Icons\" IconPath ; Setup Effect Values SetMenuFloatValue "%z\%z\user0", Effect, ID, 1011 Iter SetMenuStringValue "%z\%z\user1|%z", Effect, ID, IconPath, 1011 SetMenuStringValue "%z\%z\user2|%z", Effect, ID, Name, 1011 Let Iter += 1 Loop sv_Destruct ID Effect Name IconPathEnd
;I know these are executed let strEventHandler := LPLSEHOnClickEnchant SetMenuEventHandler "OnClick", strEventHandler, 1049
scn LPLSEHOnClickEnchant;QuestVar: int LPLSQuVersion.gssLanguageint stiMenuint stiIDref strItemstring_var stsTileBegin Function { stiMenu, stiID, stsTile } ;This line is never called. dbg_echo "Triggered"End
1
<_interested> &false; <_x> 0 <_y> 0&true; <_clicked>2 1 <_state> 2 <!-- Change to value of <_clicked>: Swap between 1 and 2 --><!-- Check trait to see if parent was clicked --> 999
<_x> 2<_y> 2
(name:string_var) GetLastTextEditInUse