Basic New Spell

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Xaxus
Posts: 24
Joined: Mon Sep 17, 2012 4:54 am

Basic New Spell

Post by Xaxus »

I want to make a fireburst that looks and acts the same as the first, but just does a ridiculously greater amount of damage.
First off, I noticed everyone was making spells for spells.lua
I didn't seem to have a spells.lua
So I copied wall sets and renamed it to "spells",
I then put this inside of it

Code: Select all

cloneSpell{
	name = "bigass_fireburst",
	baseSpell = "fireburst",
	uiName = "Big Kaboom",
	skill = "fire_magic",
	level = 26,
	runes = "ABC",
	manaCost = 69,
	attackPower = 70,
}
However, in game my spawners could not spawn this spell. Which is the primary use for it.
Reloaded the mod and everything.
I figured with all the steps I did something wrong, anybody able to point me in the right direction?
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: Basic New Spell

Post by JohnWordsworth »

If you had to add spells.lua to your project yourself, then you will also need to tell Grimrock to include that file when your level loads. In your init.lua file, copy and paste one of the import lines at the top and point it at your spells.lua file. Off the top of my head, it would look like...

Code: Select all

import "mod_assets/scripts/spells.lua"
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Xaxus
Posts: 24
Joined: Mon Sep 17, 2012 4:54 am

Re: Basic New Spell

Post by Xaxus »

Adding spells.lua seems to have worked.
My next issue that that cloneSpell in the aforementioned coding is a nil value.
Is there anyway to clone a spell or must I do it all by hand?
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: Basic New Spell

Post by msyblade »

use defineSpell instead
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Post Reply