Jump to content

Passing properties issue


porroone

Recommended Posts

So I have 2 scripts running with 2 magic effect, the first one is meant to get the variable and the second one to set it, so basically I have this script that attemps to get the variable from the "Slave" script.

Scriptname Master extend activeMagicEffect

float run 
Slave property SlaveRef auto

Event onEffectStart(Actor akCaster, Actor akTarget)
Run = 1
while Run > 0
	Debug.Notification(SalveRef.Var)
endWhile
endEvent

 

And here is how the slave scripts looks like:

Scriptname Slave extend activeMagicEffect

float property Var auto

Event onEffectStart(Actor akCaster, Actor akTarget)
Var = 1
endEvent

 

Its not the full scripts, its just an example of what im trying to do but doesnt work.

Link to comment
Share on other sites

Well I was afraid of that, thanks for the quick reply, somebody should update the wiki tho, this is taken from the there:

"If you want to access any of the Functions or Variables within a quest script (or any script for that matter)"

Note like they say any script.

Link to comment
Share on other sites

A quest is a much more complex object than a global (whose only content is the value and some flags).

So I'd say don't add a quest if all you're going to use it for is to hold a script with a property.

 

BTW, I fixed the wiki. That page still could do with better info but it should be less confusing now anyway.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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