Add all spells on character creation

Post Reply
nevaeh
Posts: 7
Joined: Tue Sep 23, 2014 9:33 am

Add all spells on character creation

Post by nevaeh » Thu Sep 01, 2016 7:38 pm

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?

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: Add all spells on character creation

Post by demolish » Fri Sep 02, 2016 6:15 pm

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
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

nevaeh
Posts: 7
Joined: Tue Sep 23, 2014 9:33 am

Re: Add all spells on character creation

Post by nevaeh » Fri Sep 02, 2016 11:32 pm

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...

Post Reply