Script on Ingestible

Post » Sun Jul 25, 2010 6:45 am

Hi,
is it possible to attach a script to an ingestible which triggers when the ingestible is consumed?
User avatar
alicia hillier
 
Posts: 3387
Joined: Tue Feb 06, 2007 2:57 am

Post » Sun Jul 25, 2010 7:04 pm

Yes.

....was there...more to the question?
User avatar
Eric Hayes
 
Posts: 3392
Joined: Mon Oct 29, 2007 1:57 am

Post » Sun Jul 25, 2010 11:56 am

Yup, how can i do this exactly? When i attach the script to the ingestible i have use an On[Something], but which one triggers on consume?
User avatar
Emmi Coolahan
 
Posts: 3335
Joined: Wed Jan 24, 2007 9:14 pm

Post » Sun Jul 25, 2010 4:03 pm

None of them. You need to put a scripted Base Effect on the ingestible.
User avatar
Svenja Hedrich
 
Posts: 3496
Joined: Mon Apr 23, 2007 3:18 pm

Post » Sun Jul 25, 2010 8:33 pm

Damn, exactly that is what i dont want to do since i can not get the objectID to which the Base Effect is attached to use it later. *sigh* So i need to write a add[Something] script for each ingestible which is adding something to the players inventory instead of one script for all. :swear:
User avatar
Charles Mckinna
 
Posts: 3511
Joined: Mon Nov 12, 2007 6:51 am

Post » Sun Jul 25, 2010 10:48 pm

Use this for reference:

http://www.newvegasnexus.com/downloads/file.php?id=34738
User avatar
Mrs. Patton
 
Posts: 3418
Joined: Fri Jan 26, 2007 8:00 am

Post » Sun Jul 25, 2010 11:53 am

Use this for reference:

http://www.newvegasnexus.com/downloads/file.php?id=34738


A single effect for each item is what i currently use allready, but i was looking for a possibility to use one effect for all items but it seems that its not possible at the moment.
User avatar
FABIAN RUIZ
 
Posts: 3495
Joined: Mon Oct 15, 2007 11:13 am


Return to Fallout: New Vegas