Quote
messy and ugly and not dynamic enough

Not really answering your question, but that's game programming. Look for the most obtuse way to do something and you'll find it.

Quote
How can I dynamically obtain all the players? I want to apply XP to each of them and not put in a fixed GUID character.

The DB_IsPlayer table contains rows for each player character. DB_IsPlayer() takes a single argument - a CharacterGUID - and returns whether that GUID is in the table.

You might also be able to use the IterateParty(), IterateParties(), or IterateUsers() functions.

As you fill in the arguments, the editor should show a tooltip with the correct syntax and a brief description of the function.

You can also use something like Agent Ransack to search through all of the plain text files for example usages.



LSLib Contributor | My Mods: DOS2, DOS2DE | 560K Steam Workshop Subscribers