Page 1 of 1

help, I'm not a scriptor ;)

Posted: Wed Nov 21, 2012 12:10 am
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 ;)

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

Posted: Wed Nov 21, 2012 2:13 am
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.

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

Posted: Wed Nov 21, 2012 4:02 am
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,
}

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

Posted: Wed Nov 21, 2012 9:06 am
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

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

Posted: Wed Nov 21, 2012 10:01 am
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,
}

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

Posted: Wed Nov 21, 2012 10:05 am
by FrEEsiD
hello and thanks Soaponarope,

I'll test it all, now ...


@+

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

Posted: Wed Nov 21, 2012 10:07 am
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

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

Posted: Wed Nov 21, 2012 10:22 am
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