help, I'm not a scriptor ;)

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
FrEEsiD

help, I'm not a scriptor ;)

Post by FrEEsiD »

hi to all,

I have 3/4 small problem to be settled before sharing my real dragon (with goromorg brain [it's very agressive];)),ice_lizard resize X2, new texture, strafe L/R animations and new walk animation (thanks for great tools, GMT by johnwordsworth and GAMT by xanathar ;), new real dragon_sounds HQ (attack, idle, die, hit, walk and footstep = creation ;)) and others suprises ;)
http://imageshack.us/g/1/9879629/

1) I want to change the height of spawn "poison_bolt" (if possible):

onDamage = function(self)
local dx,dy = getForward(self.facing)
local spawnX,spawnY = self.x + dx, self.y + dy
spawn( "poison_bolt", self.level, spawnX, spawnY, self.facing)
end

2) I have a problem with:

onDealDamage = function(self, champion, damage)
if math.random() <= 0.2 then
champion:setConditionCumulative("paralyzed", 30)
end
end

Champions are not paralyzed ?!?

3) Is it possible to make a "party: shakeCamera" with frame animation_events.lua?

4) Is it possible to freeze champions with a frostbolt monster?

Thank you in advance .... and long life for LOG ;)
Last edited by FrEEsiD on Wed Nov 21, 2012 9:20 am, edited 1 time in total.
User avatar
Neikun
Posts: 2457
Joined: Thu Sep 13, 2012 1:06 pm
Location: New Brunswick, Canada
Contact:

Re: help, I'm not a scriptor ;)

Post by Neikun »

I personally can't help with the scripting, but I LOVE those pillars.
I would suggest removing all models that use broken floor panels from your wallset, though.
"I'm okay with being referred to as a goddess."
Community Model Request Thread
See what I'm working on right now: Neikun's Workshop
Lead Coordinator for Legends of the Northern Realms Project
  • Message me to join in!
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: help, I'm not a scriptor ;)

Post by Grimwold »

FrEEsiD wrote: 2) I have a problem with:

onDealDamage = function(self, champion, damage)
if math.random() <= 0.2 then
champion:setConditionCumulative("paralyzed", 30)
end
end


Champions are not paralyzed ?!?
Your function looks fine compared to the tentacle monster definition and I've just tested it with a cloned Snail and it worked fine. with 0.2 it is only going to paralyse 20% of the time, so maybe you want to increase that. I tried 0.8 for an 80% chance to paralyse.

Here's my snail for reference:

Code: Select all

cloneObject{
name = "snail",
baseObject = "snail",

onDealDamage = function(self, champion, damage)
		if math.random() <= 0.8 then
			champion:setConditionCumulative("paralyzed", 30)
		end
	end,
}
FrEEsiD

Re: help, I'm not a scriptor ;)

Post by FrEEsiD »

thank you for your answers:

@neikun:
thanks, but this pillar_model is 12eme test and is no good for me ;) if you want this model or lots of model pillar, send me Pv ;)

@grimwold:
I have tested different value (0.9, 1.0 etc) and different type damage (poison, diseased) with this code, but no effect ...
i think the problem is, this code work with melee attack but not with magic missile attack ...

@steve: o_o ???!!!????, you forgot to take your medication psy ... or you work for EA games ... or stop the drugs ;)

thanks
User avatar
Soaponarope
Posts: 180
Joined: Thu Oct 04, 2012 3:21 am

Re: help, I'm not a scriptor ;)

Post by Soaponarope »

Here is a script for freezing champions, should work to solve 2) as well with a few modifications. Thanks to Crisman for it.

cloneObject{
name = "party",
baseObject = "party",
onDamage = function (champion, damage, type)
if type == "cold" and math.random() < 0.7 then
champion:setConditionCumulative("paralyzed", 5)
end
end,
onMove = function (self, facing)
for i = 1, 4 do
if not party:getChampion(i):hasCondition("paralyzed") then
return true
end
end
return false
end,
onTurn = function (self, direction)
for i = 1, 4 do
if not party:getChampion(i):hasCondition("paralyzed") then
return true
end
end
return false
end,
}
FrEEsiD

Re: help, I'm not a scriptor ;)

Post by FrEEsiD »

hello and thanks Soaponarope,

I'll test it all, now ...


@+
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: help, I'm not a scriptor ;)

Post by crisman »

FrEEsiD wrote:thank you for your answers:

@neikun:
thanks, but this pillar_model is 12eme test and is no good for me ;) if you want this model or lots of model pillar, send me Pv ;)

@grimwold:
I have tested different value (0.9, 1.0 etc) and different type damage (poison, diseased) with this code, but no effect ...
i think the problem is, this code work with melee attack but not with magic missile attack ...

@steve: o_o ???!!!????, you forgot to take your medication psy ... or you work for EA games ... or stop the drugs ;)

thanks
The paralyze stuff works only with melee, yes. (as far as I know... ;))


For your fourth question, the frostbolt will never freeze your champion, but I made a script,
if you are interested, that if your party will be damaged by frost damage, there's a chance for the champions to be paralyzed.
And if all party members are paralyzed, they cannot move nor turn.
Can't remember where I've put that code, so if you are interested, I'll search it for you ;)

EDIT: Oh my, ninja'd XD
Thanks a lot for retrieving it Soap :D
FrEEsiD

Re: help, I'm not a scriptor ;)

Post by FrEEsiD »

THANKKKSSSS Soaponarope ;)
your code works exactly as I wanted. perfect ;)
but, it is possible to apply this code for a specific monster ?

@thanks for you crisman ;)


:D :D :D :D :D :D
Post Reply