Jump to content

Accessing values from Effect scripts


BrendonLeCount

Recommended Posts

I'm writing a sort of involved HTS mod, and was wondering if an instance of an ingestible's effect script can access the weight of its associated ingestible.

 

Something like:

 

Drink a bottle of water, trigger Drink effect with a Drink script, with the code:

 

Set fScriptVariable1 to 3 * Weight

 

Where Weight is the weight of whatever ingestible happens to have been... ingested, triggering the script.

 

 

I'm assuming a script can also access the effect's Magnitude, Duration, and Area values, if those flags were set in the Effect definition?

 

If anybody has any experience with this and can tell me off the top of their head, great, otherwise I'll probably be finding out myself pretty soon and will post it here.

 

Thanks

Link to comment
Share on other sites

There's a bummer. I guess it will still work - albeit more tediously - if I do it through the magnitude or area value. Any experience with those?

 

*BTW, checked out your mod pics, looks polished. I like the fire trap and stealthed ghoul or whatever. Very creepy.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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