Here they are in order:
Scriptname AzurasStarDisplayClickTrigger extends ObjectReference
;This script checks to see if the player has Azura's Star in inventory. If it finds it, it removes it and enables a Ref of it. It also activates a new activator which will give it back and disable the Ref.
Bool Property StarPlaced = False Auto
SoulGem Property Star Auto
;defined as Azura's Star
ObjectReference Property StarActivator Auto
;nearly identically scripted activator used to "pick up" (give back) azuras star after it has been placed. Not efficient, I know.
ObjectReference Property StarBarrier Auto
;static collision barrier used to prevent player from picking up the azura's star objectreference, and from Fus Ro Da-ing it across the room
ObjectReference Property StarRef Auto
;The visual indicator that the player has "placed" azuras star on it's display
EVENT OnActivate(ObjectReference TriggerRef)
If (Game.GetPlayer().GetItemCount (Star) >= 1)
Game.GetPlayer().RemoveItem (Star)
StarActivator.Enable()
StarBarrier.Enable()
StarRef.Enable()
Self.Disable()
StarPlaced = !StarPlaced
;flips the "StarPlaced" bool to TRUE for the next script to read. I have alternatively used "StarPlaced = TRUE" with the same result.
Endif
endEVENT
Scriptname AzurasStarEnchBoostBox extends ObjectReference
;this script checks to see if the player has activated the AzurasStarDisplayClickTrigger and is entering a trigger box. If true, then it does an action.
AzurasStarDisplayClickTrigger Property Star auto
;This defines the AzurasStarDisplayClickTrigger script (above) as a property called Star.
ObjectReference Property Candlestick Auto
;A nearby candlestick that will be enabled as a test action.
EVENT OnTriggerEnter(ObjectReference akActionRef)
If akActionRef == (Game.GetPlayer() && Star.StarPlaced == True)
;we are pulling the StarPlaced property out of the script that has been defined as Star for THIS script. Check to see if it is positve.
Candlestick.Enable()
Else
;if StarPlaced is not positve, then do nothing
Endif
ENDEVENT
It does work if the second script looks for a FALSE, so it must be searching the first script okay. I thought maybe the second script seems to just look at what the initial value of the Bool is, but when the initial value is set to True and the second script searches for a True, it doesn't work. Where did I go wrong?
Your help is much appreciated.