Find out if a player is drunk in dialogue

Post » Sun Jun 27, 2010 12:58 pm

Im pondering about adding a few more line in my quest and i was thinking if it were possible to find out with some function if the player character is drunk?
User avatar
Laura Mclean
 
Posts: 3471
Joined: Mon Oct 30, 2006 12:15 pm

Post » Sun Jun 27, 2010 5:07 pm

Im pondering about adding a few more line in my quest and i was thinking if it were possible to find out with some function if the player character is drunk?


"player.IsSpellTarget AlchoholicDrinks == 1" (the word "alcoholic" is misspelled in the form list in the game)
User avatar
Alisia Lisha
 
Posts: 3480
Joined: Tue Dec 05, 2006 8:52 pm

Post » Sun Jun 27, 2010 9:54 am

"player.IsSpellTarget AlchoholicDrinks == 1" (the word "alcoholic" is misspelled in the form list in the game)


firstly thanks for you answer. That what i thought but i cannot find it in the function parameter droplist in the dialogue gui. I can select every alcool 1 by 1 but it seem AlchoholicDrinks is not in that list... I can script the check in my quest script however, and put the result in a quest variable but i wish it was a lazier way to get it done ;)

Thanks again!
User avatar
Taylah Haines
 
Posts: 3439
Joined: Tue Feb 13, 2007 3:10 am

Post » Sun Jun 27, 2010 1:13 am

Hmm, quick and vague answer.

Isn't there an actual effect in the effects list for being drunk?

Not sure which effect it is or which command you'd use but I'd think essentially you want a condition that checks if the player has that effect.

Edit: Would something like "player.IsSpellTarget ChemIncCHAlcohol == 1" work?
User avatar
..xX Vin Xx..
 
Posts: 3531
Joined: Sun Jun 18, 2006 6:33 pm


Return to Fallout: New Vegas