Jump to content

Access properties from another script


Recommended Posts

I've been doing this seen I learnt on this forum how to do it but...

It isn't working in this one situation, lookng at all the times I got it to work the script with properties was a quest or MCM script and the script accessing those properties was extending ActiveMagicEffect. This time the script with the properties extends ObjectReference and it doesn't work. I could introduce a quest so that I could get around this, but i think a continuously running quest just to make a small spell (that has no configurable options in an MCM) work is a bit much. The objectreference script is attached to an object and used to keep track of this object being put in and out of containers and the reference of any container it is in.

Am I overthinking the impact of a quest whose only existence is to be an object I can attach a script to that an activemagiceffect script acn get properties from?

 

diziet

Link to comment
Share on other sites

How are you writing it?

 

Aside, ObjectReference has two unspoken subtypes. Type 61 as a normal ref and *can be* Type 0 in your bags. By that it can become "inert" so to speak depending on how you manage and track the ref. Might be a better word to describe but basically you may not necessarily be able to read its properties depending on which type it is at the time in question

Link to comment
Share on other sites

the activemagiceffect script had these lines:

dz_object_teleport_send_token_script Property sendscript Auto
dz_object_teleport_recv_token_script receivescript

 

and each of those scripts was an objectreference script, in neither case did sendscript.something or receievscript.somethingelse return anything but a NONE,

using identical format in activemagiceffect scripts where the script with properties was a quest or SKI_configbase script worked fine.

 

diziet

Link to comment
Share on other sites

  • Recently Browsing   0 members

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