PDA

View Full Version : Set Base Attribute Values


Eudith
12-20-2018, 09:17 AM
Hello!

I am trying to set a character's class, diety and base attributes in Lua. (I am ultimately trying to implement a Final Fantasy style Class Change system, but that's neither here nor there.) I see SetBaseClass() and SetDeity() methods, but looking through the API documentation online there don't seem to be SetBaseStr(), SetBaseDex(), etc. methods.

Is it currently possible to set base attributes via Lua? And if not, where should I submit a feature request for this?

Thank you very much!

Kingly_Krab
12-20-2018, 06:55 PM
You can set base stats in the database using the character creation tables. But as far as dynamically changing them, you can’t. You could use a DBI script to force kick them and update their base stats in the database.

Eudith
12-20-2018, 08:54 PM
Okay, good to know. I tried setting base stats using the character creation tables to always be 75 for all stats, but for some reason that didn't work; I can just let players choose their base stats but reset them all to 75 during server downtime.

Thank you!