Checking for intoxication
#1
Posted 02 December 2008 - 10:20 AM
I want to check if the PC is intoxicated or not, I want a dialogue to fire only when the PC is drunken. I checked it out at IESDP, but didn't find what I was looking for (or perhaps, I just missed it). Can someone help me out how to do this check?
#2
Posted 02 December 2008 - 11:38 AM
Icen
#3
Posted 02 December 2008 - 11:42 AM
EDIT: It works! xD Awesome. ^^
Edited by witya, 02 December 2008 - 12:46 PM.
#4
Posted 02 December 2008 - 12:50 PM
CheckStatGT(Player1,0,INTOXICATION)
#5
Posted 02 December 2008 - 01:07 PM
Icen
#6
Posted 02 December 2008 - 01:14 PM
#7
Posted 08 December 2008 - 02:49 PM
#8
Posted 08 December 2008 - 03:15 PM
Icen
#9
Posted 08 December 2008 - 03:55 PM
I don't know if you feel like downloading an entire mod just to learn drunken banter coding, but if you did, you'd find examples in Gavin.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#10
Posted 08 December 2008 - 04:03 PM
Icen
#11
Posted 08 December 2008 - 06:51 PM
That will trip every time the character has a single drink. If that's what you want, great, but if you want the NPC to react only when he's drunk, or when Player1 is drunk, that takes a little more work.
I don't know if you feel like downloading an entire mod just to learn drunken banter coding, but if you did, you'd find examples in Gavin.
Yes, I've noticed it and experimenting with it. I want the NPC to react when the PC is totally wasted. ^^ The NPC will get drunken too when the dialogue starts, because the chance of the PC and the given NPC being wasted at the same time is quite low I think. I'll check it out.