Moktah Posted April 17, 2018 Share Posted April 17, 2018 I need something like this... if player.ispoisoned || player.isdiseased ..... run my codeendif but of course, there is no player.ispoisoned or player.isdiseasedarghhhh so whats the alternative?closest I could find is GetNthActiveEffectCode but I can't find a list of EffectCodes to go by. Link to comment Share on other sites More sharing options...
lubronbrons Posted April 17, 2018 Share Posted April 17, 2018 (edited) you might use this for disease(based on HSB mod) ;COUNT DISEASE SCRIPT for player ref rt short i short j Let j := 0 Let i := GetPlayerSpellCount while i > 0 Let i -= 1 Let rt := GetNthPlayerSpell i if GetSpellType rt == 1 if (GetSourceModIndex rt) == 0 ;current disease use var rt Let j += 1 else DebugPrint "HSB:%n (%i) is a non-vanilla disease", rt, rt endif endif loop ;COUNT DISEASE for all actor version Let sh1 := GetSpellCount while sh1 > 0 Let sh1 -= 1 Let rf1 := GetNthPlayerSpell sh1 if GetSpellType rf1 == 1 if (GetSourceModIndex rf1) == 0 ;found the disease endif endif loop based on http://elderscrolls.wikia.com/wiki/Poison_(Oblivion) Poisons should be thought of as more of a mass-manufacturing process than an effort to make single, very powerful potions. Although potions employing Damage Health, Damage Magicka, Fire Damage, and Damage Fatigue as for the poison should be like this ;COUNT POISON SCRIPT for player Let j := 0 Let i := GetPlayerSpellCount while i > 0 Let i -= 1 Let rt := GetNthPlayerSpell i if GetSpellType rt == 5 if (GetSourceModIndex rt) == 0 ;current poison use var rt Let j += 1 else DebugPrint "HSB:%n (%i) is a non-vanilla poison", rt, rt endif endif loop Edited April 17, 2018 by lubronbrons Link to comment Share on other sites More sharing options...
Moktah Posted April 17, 2018 Author Share Posted April 17, 2018 OH, I see nowI was under the impression that GetNthPlayerSpell was to referencea spell the player already knows. Didn't know that was referencing a spell the player is under the effect of. Link to comment Share on other sites More sharing options...
lubronbrons Posted April 17, 2018 Share Posted April 17, 2018 (edited) off-topicsince you are working much with menu and that xml fileI think we could make a menu overhaul something like that if you wantthe general idea is like this :- make the inventory menu appear in GameMode, this will give more immersion since no time stop- the inventory menu have page and search function (need MenuQue obse plugin, that menu event handler could be handy)by doing this paging, we completely eliminate the Oblivion inventory lag problem- can show hidden item too with toggle on/off (such as token from many mods) EDIT : I am willing to contribute in scripting section, while you in xml realm. it might be interesing EDIT 2 : hmm.... not even a response eh? or even small thanks :mellow: mm... Edited April 18, 2018 by lubronbrons Link to comment Share on other sites More sharing options...
Moktah Posted April 20, 2018 Author Share Posted April 20, 2018 sorry, haven't been able to get on much lately. busy busy I do appreciate the offer, and feel rather honored to get an invitefor a project such as this. I am; sadly, going to have to turn your offer down.It may sound really really odd, but I have yet to get a character very far in game at all.I've had the game for years, and EVERY TIME I've installed it....I got caught up in perfecting my modlist, mod order, mod install, arghhh it never works right......arghh crash crash crash, DAD GUMMIT I want it to do this and this and this....forget it I'll do it myselfI ended up telling myself.... "OK... THIS TIME FOR SURE.... once I get this mod done, I'm goingto play the game and see what the heck its even about.... OH WAIT... what if I add this feature to my mod?hmmmm interesting... .very interesting" at the rate I'm going, feels like I'll never finish it.Pretty sure I'm the oddest modder here.Who ever heard of someone that took hours upon hours of time learning how to mod a gamethat they haven't even properly played?It was only a few months ago that I actually visited kvatch and entered an oblivion gate for the very first time."hmmmmm so this is what it looks like in here..... trippy........"then went to the next town and wondered why the heck do they act like alls well in the world when a freakin townhas been destroyed next door. I mean come on, black horse courier needs to step up andinform some folks about the world coming to an end or something.Of course, knowing me, by the time I get this mod completed, I'll be so burnt out that I'll be hunting for some othergame to mess around with. Link to comment Share on other sites More sharing options...
lubronbrons Posted April 20, 2018 Share Posted April 20, 2018 lolI know what you've been throughI completed my STABLE modlist in two and half years your knowtweaking this and there like crazy, so I did aware what you just said~ as for the menu projectno probcool here 8)and Good luck with your modlist mate :) Link to comment Share on other sites More sharing options...
Recommended Posts