Page 1 of 1

Add all spells on character creation

Posted: Thu Sep 01, 2016 7:38 pm
by nevaeh
I was wondering if there was an easy way to add all spells to any newly created character without having a GM do it?

So far I have the following in my players.lua file:

Code: Select all

    -- ADD ADVENTURER COUPON
        player:addItem(0x218); --Adds Adventurer Coupon
	player:addKeyItem(0x8); --Airship Pass
	player:addKeyItem(0x9); --Kazham Airship Pass
	player:addKeyItem(0x8A); --Chocobo License
I thought I might be able to just use player:addAllSpells, but that didn't seem to work.

Any input? :)

P.S. Is there a list of valid "add" commands somewhere?

Re: Add all spells on character creation

Posted: Fri Sep 02, 2016 6:15 pm
by demolish
see how https://github.com/DarkstarProject/dark ... spells.lua does it and stick it in player.lua
you can find all commands in your commands directory https://github.com/DarkstarProject/dark ... s/commands

Re: Add all spells on character creation

Posted: Fri Sep 02, 2016 11:32 pm
by nevaeh
Okay, I was hoping for a cleaner way of doing it but if that's what I've gotta do, then that's what I've gotta do! :)

Thank you for the input, I would probably be a lot better at this if I actually knew how to do some scripting...