Author Topic: What's the difference between storage.set and storage.setglobal?  (Read 47 times)

ninekorn

  • Full Member
  • ***
  • Posts: 133
    • View Profile
What's the difference between storage.set and storage.setglobal?
« on: February 22, 2019, 01:25:08 am »
SetGlobal is accessible for all AI Scripts inside the server. So what is storage.set for? Is it to keep a storage/data accessible only in one AI script.

Please explain when you got the chance.

thank you,
nine

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1163
    • View Profile
Re: What's the difference between storage.set and storage.setglobal?
« Reply #1 on: February 24, 2019, 05:25:36 am »
Hello!

SetGlobal(key_name, value) is a shortcut for Set("default", key_name, value). It just uses string value "default" for the table_name argument. http://wiki.atomictorch.com/VoidExpanse/scope-storage

Regards!