Code for Ressurection Spell
Code for Ressurection Spell
Here it is
defineSpell{
name = "rez_spell",
uiName = "Ressurection",
runes = "BDEFH",
skill = "spellcraft",
level = 50,
manaCost = 500,
onCast = function(caster, x, y, direction, skill)
for i=1,4 do
party:heal()
end
playSound("heal_party")
party:playScreenEffect("teleport_screen")
hudPrint(caster:getName() .. "Casted Ressurection")
end,
}
LG
defineSpell{
name = "rez_spell",
uiName = "Ressurection",
runes = "BDEFH",
skill = "spellcraft",
level = 50,
manaCost = 500,
onCast = function(caster, x, y, direction, skill)
for i=1,4 do
party:heal()
end
playSound("heal_party")
party:playScreenEffect("teleport_screen")
hudPrint(caster:getName() .. "Casted Ressurection")
end,
}
LG
Dungeon Master and DOOM will live forever.
Re: Code for Ressurection Spell
Oooooh, people have a balance issue with this spell, however:
A: I know you're working on a 75 level dungeon, and I'm sure balance(As we know it) goes out the window around level 15-20.I Cannot IMAGINE where the scale ends for you.
B: I'm gonna put this in Hotel Hades 3, and connect some remains_of_you guys that must be sacrificed to control how/when it can be used.
C: That also reminds me, You need nominated for the common lore "Creators" thread. I'm gonna suggest "Gluttony/Excess" for you if you don't mind being an "evil" protagonist in some mod down the road.
A: I know you're working on a 75 level dungeon, and I'm sure balance(As we know it) goes out the window around level 15-20.I Cannot IMAGINE where the scale ends for you.
B: I'm gonna put this in Hotel Hades 3, and connect some remains_of_you guys that must be sacrificed to control how/when it can be used.
C: That also reminds me, You need nominated for the common lore "Creators" thread. I'm gonna suggest "Gluttony/Excess" for you if you don't mind being an "evil" protagonist in some mod down the road.
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
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: Code for Ressurection Spell
No problem at all.
I would hope to make this rez spell need an item to use but I dont know how to use it.
skill needed is spellcraft and I will put in a skill lvl needed of 50.
LG
I would hope to make this rez spell need an item to use but I dont know how to use it.
skill needed is spellcraft and I will put in a skill lvl needed of 50.
LG
Dungeon Master and DOOM will live forever.
-
- Posts: 29
- Joined: Fri Jun 29, 2012 1:47 pm
Re: Code for Ressurection Spell
By the way, just to be pedantic lol, the past tense of cast is cast, not casted.
Ie: Sharina cast fireball (past tense)
Or: Sharina casts fireball (present tense)
Ie: Sharina cast fireball (past tense)
Or: Sharina casts fireball (present tense)
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: Code for Ressurection Spell
Nice spell! Sure, it could be construed as over powered, but you've given it an epic (and appropriate) cost! Players deserve some awesome if they get to that level.
Some thoughts re: the Lua...
1. You have the party:heal() method call in a for loop, but I believe you only have to call it once for the whole party.
2. You mention you would like to make this spell need an item... In your onCast method, you could search the party's inventory with some code and then return early if they do not have a given item in there. Something like the following should work with a 'Gem of Resurrection' for instance (untested and mashed into an ipad)...
Some thoughts re: the Lua...
1. You have the party:heal() method call in a for loop, but I believe you only have to call it once for the whole party.
2. You mention you would like to make this spell need an item... In your onCast method, you could search the party's inventory with some code and then return early if they do not have a given item in there. Something like the following should work with a 'Gem of Resurrection' for instance (untested and mashed into an ipad)...
SpoilerShow
Code: Select all
onCast = function(caster, x, y, direction, skill)
local champWithGem = nil;
local gemItemSlot = 0;
for i=1, 4 do
if (party:getChampion(i) ~= nil) then
local champion = party:getChampion(i);
for j=1,31 do
local item = champion:getItem(j);
if (item ~= nil and item.name == "resurrection_gem") then
champWithGem = champion;
gemItemSlot = j;
end
end
end
if (champWithGem == nil or gemItemSlot < 1 or gemItemSlot > 31) then
hudPrint("You need a Gem of Resurrection to cast this spell!");
return false;
end
local item = champWithGem:getItem(gemItemSlot);
if (item:getStackSize() > 1) then
item:setStackSize(item:getStackSize() - 1);
else
champWithGem:removeItem(gemItemSlot);
end
party:heal();
playSound("heal_party");
party:playScreenEffect("teleport_screen");
hudPrint(caster:getName() .. "Cast Resurrection");
end
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: Code for Ressurection Spell
I agree with doubts on the balance but I genuinely wonder how LOL1 could have this spell castable by - sometimes - even more than 1 character and still manage to be difficult as hell!
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563
My preciousss: http://www.moonsharp.org
- JohnWordsworth
- Posts: 1397
- Joined: Fri Sep 14, 2012 4:19 pm
- Location: Devon, United Kingdom
- Contact:
Re: Code for Ressurection Spell
@Xanathar: Haha, yeah - I remember having some areas of Lands of Lore where you would resurrect your party only for them all to die again in about 3 seconds. There are an awful lot of monsters that can dish out 1-hit kills if you're unlucky in LOL1. Awesome game though.
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
Re: Code for Ressurection Spell
What I was really hoping for was a rez spell that brings them all back from the dead and no health or energy refill.
This spell can be cast over and over again because of the energy refill.
LG
This spell can be cast over and over again because of the energy refill.
LG
Dungeon Master and DOOM will live forever.
Re: Code for Ressurection Spell
We need to get Grimwold in on this. Betting he can drain the energy after the heal(). Maybe even get returns on the living champions and revert to their initial HP/EP immediately after casting, so it only affects 1 dead character, and uses the energy. (I know I cant do it!)
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
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: Code for Ressurection Spell
Hoping for no energy increase for anyone. No hp increase for those already alive and those that are dead are brought back with maybe a 1/4 of their max health.
LG
LG
Dungeon Master and DOOM will live forever.