Instakill party whens step on floor_trigger
Instakill party whens step on floor_trigger
Hey guys, I have no clue how to do that. I just want the 4 party member to die when stepping somewhere. that it.... cant figure it ... I searched forums and they give me returns me an error argument 6 stating it needs numbers.... wtv can you hel
- cromcrom
- Posts: 549
- Joined: Tue Sep 11, 2012 7:16 am
- Location: Chateauroux in a socialist s#!$*&% formerly known as "France"
Re: Instakill party whens step on floor_trigger
Try this function, that you can connect to a floortrigger:
Code: Select all
function killparty()
for i=1,4 do
party.party:getChampion(i):setHealth(0)
end
end
A trip of a thousand leagues starts with a step.
Re: Instakill party whens step on floor_trigger
Nothing happening, and if you meant
for i=1,4 do I tried to fix it to <id> but still not working
Well it kills them but they still walk as deads.. does give the game over msg and try to end game
for i=1,4 do I tried to fix it to <id> but still not working
Well it kills them but they still walk as deads.. does give the game over msg and try to end game
-
- Posts: 168
- Joined: Thu Oct 30, 2014 1:56 am
Re: Instakill party whens step on floor_trigger
Did you try in the editor or the actual game?
Re: Instakill party whens step on floor_trigger
just did and it puts them as dead, like skeleton but I can still walk around
Re: Instakill party whens step on floor_trigger
You should use Champion:damage() instead of Champion:setHealth().
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Instakill party whens step on floor_trigger
bad argument num,ber 2 string expected got nil
function killparty()
for i=1,4 do
party.party:getChampion(i):damage(9999)
end
end
function killparty()
for i=1,4 do
party.party:getChampion(i):damage(9999)
end
end
Re: Instakill party whens step on floor_trigger
I think this video might help. In the video Skuggs covers how to use scripts to interact with the dungeon.
Watch it here: https://www.youtube.com/watch?v=dxonfso ... Nc&index=6
And it might help to watch the previous videos in the series too if you are still lost. The series is a pretty good introduction to the editor.
Watch it here: https://www.youtube.com/watch?v=dxonfso ... Nc&index=6
And it might help to watch the previous videos in the series too if you are still lost. The series is a pretty good introduction to the editor.
Re: Instakill party whens step on floor_trigger
sure will do Thank you
Re: Instakill party whens step on floor_trigger
http://www.grimrock.net/modding/scripti ... /#ChampionKhellQc wrote:bad argument num,ber 2 string expected got nil
function killparty()
for i=1,4 do
party.party:getChampion(i):damage(9999)
end
end
You need to include a damage type, like "party.party:getChampion(i):damage(9999,"physical")".Champion:damage(dmg, damageType)
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.