Custome Spells made but no xp given to party

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: Custome Spells made but no xp given to party

Post by LordGarth »

If someone figures it out.

I just need an onCast script that I can put with the define spell code that will work for launch spells and give exp.

Also, I want to make a firespray spell. I am trying to spawn three fire balls but I don't want them spawning at the same time. I was hoping for 1 second delay between each.

What is the exact code for delay for 1 second? Please

Thankyou,

My game is coming along great especially the shop and money system. Just want to get some new spells into the game.

LordGarth
Dungeon Master and DOOM will live forever.
User avatar
zimberzimber
Posts: 432
Joined: Fri Feb 08, 2013 8:06 pm

Re: Custome Spells made but no xp given to party

Post by zimberzimber »

For the flamethrower, you could spawn a cloudspell that deals fire damage in short intervals instead of shoot projectiles, and have a particle system that will make it look like its a flamethrower.
My asset pack [v1.10]
Features a bit of everything! :D
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Custome Spells made but no xp given to party

Post by Isaac »

LordGarth wrote: I am trying to spawn three fire balls but I don't want them spawning at the same time. I was hoping for 1 second delay between each.
I like zimberzimber's idea.

A one second delay would mean three seconds to cast the spell... so is it intended that the party keep causing fireballs even as they move and turn;
(possibly facing a wall, and/or hitting themselves more than once)?

The delayedCall function is the quickest way to script a delay; but that's not a pause in the script, that's a delayed call to another function.

delayedCall( target_id, delay, function_called, optional string/numeric parameters... )

https://github.com/JKos/log2doc/wiki/Gl ... elayedcall
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: Custome Spells made but no xp given to party

Post by LordGarth »

yes the party will have to hold still while casting the spell.

yes I will need the script paused for a second.

perhaps I can spawn three different fireball codes will a different travel speed for the projectile.

LordGarth
Dungeon Master and DOOM will live forever.
Post Reply