Page 93 of 396
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 7:32 am
by cromcrom
Hey elevenwarrior,
you might check the onProjectileHit from the Projectile component, it might do the trick, as it seems to be calling both the projectile (so you can destroy it ) and the thing it hit ( so you can decrement if it is valid).
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 6:31 pm
by cromcrom
is there a "keyPressed" component thing ? Because the "keyDown" fires my functions repeatidly
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 7:09 pm
by Modraneth
hi,
-its possible to create skills ??
i want to make a skill which allow the mino race to dual welding 2 heavy weapons but with a decrease on accuracy.
-its possible to create new races?
creating dwarfs, lizardmens and undead, i have some ideias to make special skills for this races.
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 7:42 pm
by minmay
cromcrom wrote:is there a "keyPressed" component thing ? Because the "keyDown" fires my functions repeatidly
Just store and check whether the key was down on the previous frame.
Modraneth wrote:-its possible to create skills ??
i want to make a skill which allow the mino race to dual welding 2 heavy weapons but with a decrease on accuracy.
Yes, but changing dual wielding rules like this would require a lot of hacks, so I don't recommend it.
Modraneth wrote:-its possible to create new races?
Yes.
Look for defineSkill and defineRace in
http://www.grimrock.net/modding/scripting-reference/.
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 8:10 pm
by cromcrom
I have no idea how to do this, beside delayedcall. but never mind, I will find a way around. I understand your will to have people look around and search by themselves so they can improve, but being a good teacher also means adapting , at least a little bit, to the people you want to instruct.
Not every body is a pro coder, or knows the forum by heart to know exactly where to look for informations.
Again, nevermind.
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 8:19 pm
by Modraneth
Modraneth wrote:-its possible to create skills ??
i want to make a skill which allow the mino race to dual welding 2 heavy weapons but with a decrease on accuracy.
Yes, but changing dual wielding rules like this would require a lot of hacks, so I don't recommend it.
Modraneth wrote:-its possible to create new races?
Yes.
Look for defineSkill and defineRace in
http://www.grimrock.net/modding/scripting-reference/.[/quote]
thank you
Re: Ask a simple question, get a simple answer
Posted: Fri Oct 02, 2015 8:20 pm
by Modraneth
thank you
i will check it
Re: Ask a simple question, get a simple answer
Posted: Mon Oct 05, 2015 9:51 pm
by THOM
Really a simple question but it drives me mad:
I want to add a timer component to the party object which starts NOT at the beginning of the game. Cannot find a command to disable it. I am pretty sure it is very obvious but I am unable to figure it out.
Any help, please?
Re: Ask a simple question, get a simple answer
Posted: Mon Oct 05, 2015 9:54 pm
by Azel
When you declare the Timer, you can't just say, MyPartyTimer.timer:disable() ??
Re: Ask a simple question, get a simple answer
Posted: Mon Oct 05, 2015 11:49 pm
by THOM
Sadly not.
Ah, and it's not a component to the party, as I mentioned before, but to an object.
That's what I got so far:
Code: Select all
{
class = "Timer",
name = "movetimer",
timerInterval = 0.02,
--timer = "disable",
--self.go.timer:stop(),
onActivate = function(self)
self.go.movescript.moveThat()
end,
},
the two deactivated lines show some of my trials which didn't work...