Search found 10 matches

by sevenbirds
Sat Sep 22, 2012 5:43 pm
Forum: Modding
Topic: CFD 2012: Discussion thread (Submission Thread Link Within)
Replies: 112
Views: 106041

Re: Endless Dungeon 2012

I would be more than happy to help out with this, both contributing and helping coordinate. I think we need to set some ground rules and also review each level submission. As previously mentioned, we need to check for pits, ID conflicts, unfair/ impossible set ups, designs that could crash or freeze...
by sevenbirds
Thu Sep 20, 2012 9:27 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Lua scripts

petri wrote:Why not just spawn a poison cloud there?
It's times like this that make learning fun. Here I was trying to reinvent the wheel and that's all it took. Thank you so much!
by sevenbirds
Thu Sep 20, 2012 8:49 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Lua scripts

Hello everyone. I'm moving my questions to this thread instead of flooding the excellent scripting example one if that is all right. So I'm trying to create a tile that damage any player or monster that steps on it, then continuously deals damage over a period of time. Here is what I currently have....
by sevenbirds
Thu Sep 20, 2012 12:46 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Useful scripts repository

Unfortunately I'm not sure on that. I suppose it would depend on your usage of it? (Ex. Whether you wish to tie it to an Altar or have it globally affect your dungeon) Well, I appreciate the help none the less. you have been a great help! I was really just trying to use it to better understand it. ...
by sevenbirds
Thu Sep 20, 2012 12:35 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Useful scripts repository

I just tried out the sample for the poison trap above and got this error:
bad argument #1 for 'damagetile' ( number expected, got nil)
by sevenbirds
Thu Sep 20, 2012 12:30 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Useful scripts repository

actually, I'm an idiot and forgot to capitalize Print. Thanks though, especially the fast reponse.

now I have another question: how do I add the function to my dungeon? I know that I don't make a script entity for the new function and I think I need to save it as a .lua, but where does it go?
by sevenbirds
Thu Sep 20, 2012 12:25 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

Re: Useful scripts repository

A couple of script functions I wrote to check if anybody in your party is carrying a particular type of item : function checkForItemParty(item) local i = 1 repeat if checkForItem(party:getChampion(i), item) then return true end i = i + 1 until i == 5 return false end function checkForItem(champion,...
by sevenbirds
Thu Sep 20, 2012 12:01 am
Forum: Modding
Topic: help with insta-death square script and other Qs
Replies: 20
Views: 15886

help with insta-death square script and other Qs

insta-death square example by Montis and Xzalander - script: function instadeath() damageTile(party.level, party.x, party.y, party.facing, 128, "physical", 9001) hudPrint("You Foolish Adventurers, MWAHAHAHA!!!") end - create a hidden plate that is ONLY triggered by the party (no...
by sevenbirds
Wed Sep 19, 2012 11:40 pm
Forum: Modding
Topic: Need help understanding timers and counters.
Replies: 14
Views: 17667

Re: Need help understanding timers and counters.

Hello everyone,

I just wanted to chime in and say that this worked wonderfully. I implemented this in a maze full of ogres and had a friends test it out. It really got him sweating! Thanks for creating awesome posts guys.
by sevenbirds
Wed Sep 19, 2012 9:34 am
Forum: Modding
Topic: Need help with making a "gambling machine"
Replies: 17
Views: 18792

Re: Useful scripts repository

to create a "gambling" setup/machine, where you pay with a certain type of item, and then have a chance at winning a good thing or else get damaged : -------------- example from Shroom: I created 2 alcoves and a lever alcove_bet alcove_win lever_gamble Added an lua entity and put this cod...