Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: [Scripting/Questing] How make intel entry invisible + more  (Read 1796 times)

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24125
    • View Profile
Re: [Scripting/Questing] How make intel entry invisible + more
« Reply #15 on: November 16, 2019, 04:29:26 PM »

Checked into this - ahh! So what you actually want to get the $player memory is this:

Global.getSector().getCharacterData().getMemory()

Which is separate from the memory of the player's PersonAPI. So what you're doing is "working" in the sense that the value is being set in the player person's memory, but this is not the memory object that gets used with the $player context.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [Scripting/Questing] How make intel entry invisible + more
« Reply #16 on: November 16, 2019, 04:42:48 PM »

Checked into this - ahh! So what you actually want to get the $player memory is this:

Global.getSector().getCharacterData().getMemory()

Which is separate from the memory of the player's PersonAPI. So what you're doing is "working" in the sense that the value is being set in the player person's memory, but this is not the memory object that gets used with the $player context.

That makes so much more sense now, thank you! I'll give it another try later tonight.
Logged
Pages: 1 [2]