Larian Banner
Previous Thread
Next Thread
Print Thread
[Osiris] DB as variable and questions ? #623969
30/09/17 11:15 AM
30/09/17 11:15 AM
Joined: Jun 2013
Posts: 655
Cromcrom Offline OP
addict
Cromcrom  Offline OP
addict

Joined: Jun 2013
Posts: 655
Is it leggit to consider DB as some sort of variable holder ?
If so, why not use plain variables, instead of declaring them in DB ?


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Re: [Osiris] DB as variable and questions ? [Re: Cromcrom] #624000
30/09/17 12:45 PM
30/09/17 12:45 PM
Joined: Dec 2013
Posts: 872
Windemere Offline

old hand
Windemere  Offline

old hand

Joined: Dec 2013
Posts: 872
They share some similarities but are more powerful and expansive. DB entries can be indexed by multiple keys to create arrays DB_Foo(x, y, z, ...), and most notably DB entry modifications cause events to fire, so you can catch on them.

If you haven't checked it out, the Osiris Overview has some good information and Larian made two tutorial videos for scripting databases that are helpful:
Scripting Databases(1)
Scripting Databases(2)


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: [Osiris] DB as variable and questions ? [Re: Cromcrom] #624343
01/10/17 03:39 AM
01/10/17 03:39 AM
Joined: Jun 2015
Posts: 317
F
FrauBlake Offline
enthusiast
FrauBlake  Offline
enthusiast
F

Joined: Jun 2015
Posts: 317
It's the nature of this language.
There are no operators except comparison operators =, < and >.

Since there are no operators, the databases are the only way to assign and store values.

You get used to it after a while.


Powered by UBB.threads™ PHP Forum Software 7.6.2