Actually, the "once to initialize" theory is incorrect. The script only executes as a command if the object's property is already set to what you're trying to execute.
Edit: Or maybe OnPress scripts are different from OnHide scripts? These were tested with a button.
As demonstrated by these scripts:
The following results in no output:
Code:
say='Initialize'
say='This is test 1, quotes only'
say=('This is test 2, order 1')
say='(This is test 3, order 2)'
The following only outputs "This is test 1, quotes only"
Code:
say='This is test 1, quotes only'
say='This is test 1, quotes only'
say=('This is test 2, order 1')
say='(This is test 3, order 2)'
The following two scripts only output You say, "This is test 1, quotes only"
Code:
say='This is test 1, quotes only' say='This is test 1, quotes only' say=('This is test 2, order 1') say='(This is test 3, order 2)'
Code:
say=('This is test 2, order 1') say='(This is test 3, order 2)' say='This is test 1, quotes only' say='This is test 1, quotes only'
The following outputs each line once:
Code:
say='This is test 1, quotes only' say='This is test 1, quotes only'
say=('This is test 2, order 1') say=('This is test 3, order 1')
say='(This is test 3, order 2)' say='(This is test 3, order 2)'
The following shows Inventory and Knowledge, but not Waypoint:
Code:
show_window=(Inventory.Inventory)
show_window=(Inventory.Inventory)
show_window=(MainHUD.Waypoint)
show_window=(MainHUD.Knowledge) show_window=(MainHUD.Knowledge)
The following shows Inventory and Waypoint, but not Knowledge:
Code:
show_window=(Inventory.Inventory)
show_window=(Inventory.Inventory)
show_window=(MainHUD.Waypoint)
show_window=(MainHUD.Waypoint)
show_window=(MainHUD.Knowledge)
Edit: Conclusion first.