Jump to content

how do you know you've been poisoned/diseased via script?


Recommended Posts

I need something like this...

 

if player.ispoisoned || player.isdiseased

..... run my code

endif

 

 

but of course, there is no player.ispoisoned or player.isdiseased

arghhhh

 

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

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

 

 

 

 

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 by lubronbrons
Link to comment
Share on other sites

off-topic

since you are working much with menu and that xml file

I think we could make a menu overhaul something like that if you want

the 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 by lubronbrons
Link to comment
Share on other sites

sorry, haven't been able to get on much lately. busy busy

 

I do appreciate the offer, and feel rather honored to get an invite

for 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 myself

I ended up telling myself.... "OK... THIS TIME FOR SURE.... once I get this mod done, I'm going

to 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 game

that 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 town

has been destroyed next door. I mean come on, black horse courier needs to step up and

inform 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 other

game to mess around with.

Link to comment
Share on other sites

lol

I know what you've been through

I completed my STABLE modlist in two and half years your know

tweaking this and there like crazy, so I did aware what you just said~

 

as for the menu project

no prob

cool here 8)

and Good luck with your modlist mate :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...