Page 1 of 1

[RESOLVED] Throwing weapon

Posted: Fri Dec 21, 2012 5:15 pm
by thogrinn
Hello everyone! :)

I come here to ask for a bit of help. I'm a beginner and I started to script yesterday, with the help of online tutorials. Finally, the language "Lua" is not so complicated, but once you start, it's not easy!
My question is, I'd like to (at first), run a knife on a statue to activate a slab. What I found on the forum seems complicated! For basic functions, it's good, but for that kind of thing, I have a lot of trouble. I post here the beginning of my tower, thank you Komag about the videos!

Can you help me? I apologize for my bad English, I'm French and it's not easy. Thank you for this wonderful game and the editor, really great! :geek:

Link to the file .Dat : http://d1b3m7.1fichier.com/

The statue is in the second room, for the moment, activating traps is easy, I will make the changes when I understood the script. Level two is a maze unfinished!

Enjoy !! :mrgreen:

Re: [HELP] Throwing weapon

Posted: Sat Dec 22, 2012 2:30 am
by vorebane
I'm not sure what you mean by slab, but I think this should help!

I would suggest placing a hidden_receptor on the wall where the statue is. In the 'activated by' field, put 'throwing_knife' or the item you want to activate your puzzle. If you want multiple items to work, put one hidden receptor for each. Then add your connector to whatever should be activated!

If by 'run a knife on a statue' you mean hit the statue with a knife, I don't know that this can be done yet.

Good luck!

Re: [HELP] Throwing weapon

Posted: Sat Dec 22, 2012 11:00 am
by thogrinn
Thank you for the answer, I'll do a test! May be easier indeed ^ ^ ;) The first idea was to touch the statue, but I'll see.

Thx !!!

EDIT : That works !! Thanks for help !! :D

Re: [HELP] Throwing weapon

Posted: Sat Dec 22, 2012 11:55 am
by Pandafox
vorebane wrote:I'm not sure what you mean by slab, but I think this should help!

I would suggest placing a hidden_receptor on the wall where the statue is. In the 'activated by' field, put 'throwing_knife' or the item you want to activate your puzzle. If you want multiple items to work, put one hidden receptor for each. Then add your connector to whatever should be activated!

If by 'run a knife on a statue' you mean hit the statue with a knife, I don't know that this can be done yet.

Good luck!
wow! yes !! why did I not think that !?? :D
it was not my question but thanks !!

thogrinn : entre français on pourra s'aider ;)

Re: [HELP] Throwing weapon

Posted: Sat Dec 22, 2012 3:04 pm
by thogrinn
Pandafox wrote:
vorebane wrote:I'm not sure what you mean by slab, but I think this should help!

I would suggest placing a hidden_receptor on the wall where the statue is. In the 'activated by' field, put 'throwing_knife' or the item you want to activate your puzzle. If you want multiple items to work, put one hidden receptor for each. Then add your connector to whatever should be activated!

If by 'run a knife on a statue' you mean hit the statue with a knife, I don't know that this can be done yet.

Good luck!
wow! yes !! why did I not think that !?? :D
it was not my question but thanks !!

thogrinn : entre français on pourra s'aider ;)
Pas de problème, avec grand plaisir ! :lol: