Search found 171 matches

by kaypy
Tue Feb 18, 2014 2:15 pm
Forum: Dungeon Strikes Back (DSB)
Topic: dsb_export and importable archs
Replies: 6
Views: 3268

Re: dsb_export and importable archs

Oh, I see- the variables aren't preserved across sessions, but they also aren't flushed when reloading saves either.

Hmm. I wonder if you could use that to torment players for dying in previous sessions...

edit: OK, I think it should now be merely be a bad idea rather than actually broken 8-)
by kaypy
Tue Feb 18, 2014 1:59 am
Forum: Dungeon Strikes Back (DSB)
Topic: dsb_export and importable archs
Replies: 6
Views: 3268

Re: dsb_export and importable archs

I wouldn't recommend doing that. :shock: It was (mostly) tongue in cheek. (Some of it may live on to simplify my lighting code elsewhere...) Anyway, here's an easier way to do what you want: Ah yes. I was still thinking in terms of "where do I store this value I have?" instead of "do...
by kaypy
Mon Feb 17, 2014 3:14 pm
Forum: Dungeon Strikes Back (DSB)
Topic: dsb_export and importable archs
Replies: 6
Views: 3268

Re: dsb_export and importable archs

Hmm. I don't know that in general I can guarantee the existence of any particular champion, and I don't seem to have any way to iterate over them easily. I think this approach is getting hairy, fast. Hmm. There are always... other... approaches... --[[ A construct released upon the world by a gang o...
by kaypy
Sun Feb 16, 2014 9:29 am
Forum: Dungeon Strikes Back (DSB)
Topic: (fixed) Seg fault when nonsensically cycling leader
Replies: 0
Views: 5234

(fixed) Seg fault when nonsensically cycling leader

I get a crash fault on the following circumstances: Have exactly 1 champion Hit the next leader hotkey (presumably by accident) Sometimes the prev leader hotkey causes crashes, too. Other times it means that everything "works" after that... PROGRAM CRASH! Location: 0 10 5 Reason: Segmentat...
by kaypy
Sun Feb 16, 2014 7:51 am
Forum: Dungeon Strikes Back (DSB)
Topic: dsb_export and importable archs
Replies: 6
Views: 3268

dsb_export and importable archs

How hard would it be to make dsb_export available in importable arch scripts?

I was trying to make the complete darc armour have an anti-light aura, but copying the illumulet code requires that I have a global variable for it.
by kaypy
Sun Feb 16, 2014 5:21 am
Forum: Dungeon Strikes Back (DSB)
Topic: DM2 style sconces
Replies: 8
Views: 3871

DM2 style sconces

Hi Here is a rather hacky prototype for DM2 style lit sconces. http://en.file-upload.net/download-8626926/sconcelight.zip.html Is there any way I could hook into party movement somehow rather than polling like crazy? Of course, I don't really want to make system level changes in an importable arch, ...
by kaypy
Sat Feb 15, 2014 2:08 am
Forum: Dungeon Strikes Back (DSB)
Topic: Equipment sets
Replies: 3
Views: 4366

Equipment sets

Been playing around with lua some more. Here's an example of how to make "set" items, where having the full set gives additional bonuses http://en.file-upload.net/download-8633712/setitem.zip.html edit: now with a second example set, and boringly straightforward tracking code rather than w...
by kaypy
Fri Feb 14, 2014 6:16 pm
Forum: Dungeon Strikes Back (DSB)
Topic: (fixed) Minor bug with stairs
Replies: 0
Views: 5121

(fixed) Minor bug with stairs

1) find a stair
2) go either up or down
3) don't leave the stair tile you wind up on
4) hit either turn left or turn right twice in quick succession

the second turn leaves you facing the side of the stair rather than triggering another level change
by kaypy
Wed Feb 12, 2014 1:55 pm
Forum: DSB
Topic: [Custom dungeon] Chaos Hack [DSB] [Joramun]
Replies: 117
Views: 66982

Re: [DSB] Chaos Hack - a random dungeon generator

Oops. I actually made a fix for that and then forgot to upload it. Thanks http://en.file-upload.net/download-8612518/chaoshack_redux_1-1-4.zip.html This also prevents launchers from being used as machineguns and makes the item generation a touch more friendly- alcoves and chests are now significantl...
by kaypy
Wed Feb 12, 2014 11:10 am
Forum: Dungeon Strikes Back (DSB)
Topic: More fun with inventory events
Replies: 5
Views: 2675

Re: More fun with inventory events

I wasn't thinking of flushing the queue, just appending a "send this message now" event to the end of it. So I can do "move this item" "at the end of the queue (ie once the item is moved) do the next step" Here's a version that works except there are visible delays at e...
by kaypy
Wed Feb 12, 2014 1:36 am
Forum: Dungeon Strikes Back (DSB)
Topic: More fun with inventory events
Replies: 5
Views: 2675

Re: More fun with inventory events

What I think might be useful would be almost the opposite- How hard would it be to add something like dsb_msg(END_OF_QUEUE,id,messagetype,data)? What I am working towards is equipment that occupies multiple slots by putting itself in the primary slot and having virtual items it places in the other s...
by kaypy
Tue Feb 11, 2014 5:07 pm
Forum: Dungeon Strikes Back (DSB)
Topic: More fun with inventory events
Replies: 5
Views: 2675

More fun with inventory events

Suppose you have the following code function dlog(text) __log(text) dsb_write(debug_color, text ) end function log_on_remove(self,id,who) dlog("MOVED : " .. id) end obj.silk_shirt.after_from_torso=log_on_remove obj.tabard.after_from_legs=log_on_remove -- callback for M_NEXTTICK function te...
by kaypy
Mon Feb 10, 2014 11:04 am
Forum: Dungeon Strikes Back (DSB)
Topic: inventory events
Replies: 2
Views: 1856

Re: inventory events

Thanks.

Hmm. It didn't quite help as much as I thought, though. I'll have to think about this some more...
by kaypy
Fri Feb 07, 2014 12:24 pm
Forum: Dungeon Strikes Back (DSB)
Topic: inventory events
Replies: 2
Views: 1856

inventory events

Hi I'm getting some odd results while fiddling with inventory events and messages. A simplified test case- on unequipping the item, you get a debug message from from_ and after_from_ as well as two different tick events. The item has two actions that will move it in addition to directly unequipping ...
by kaypy
Fri Jan 31, 2014 4:09 pm
Forum: DSB
Topic: [Custom dungeon] Chaos Hack [DSB] [Joramun]
Replies: 117
Views: 66982

Re: [DSB] Chaos Hack - a random dungeon generator

OK, I've finally gotten some substantial modifications into a seems-to-be-working state. The code still needs a heap of cleanup work, but more than that it needs me to stop tinkering and do some serious playtesting. Since I'm not going to be progressing for a while, I thought I'd put what I have her...
by kaypy
Wed Jan 29, 2014 2:39 am
Forum: DSB
Topic: [Custom dungeon] Chaos Hack [DSB] [Joramun]
Replies: 117
Views: 66982

Re: [DSB] Chaos Hack - a random dungeon generator

Having even a single flask makes everything orders of magnitude easier of course. By the way, while testing further modifications, I found a teleporter for the first time, and trying it out resulted in a stack overflow crash. I think it was teleporting the party back and forth over and over till it ...
by kaypy
Wed Jan 29, 2014 2:19 am
Forum: Dungeon Strikes Back (DSB)
Topic: Loading a lua file
Replies: 5
Views: 3308

Re: Loading a lua file

Thanks It's not a big deal if I can't put it in a separate file. I just didn't want to have there be an easy way to do it which I missed because I didn't know my way around the system enough. I've been playing around with modifications to Chaos Hack, so all my editing is by necessity hand-coded, but...
by kaypy
Tue Jan 28, 2014 3:06 pm
Forum: Dungeon Strikes Back (DSB)
Topic: Loading a lua file
Replies: 5
Views: 3308

Loading a lua file

I am currently attempting to separate some configuration off of the dungeon.lua and into a file of its own. The problem is that I am somewhat stymied in loading in said file. I can get it to load via dsb_import_arch, but that can only be done in the objects.lua, which means it doesn't show up in dun...
by kaypy
Tue Jan 28, 2014 12:27 am
Forum: Dungeon Strikes Back (DSB)
Topic: limits to dsb_rand
Replies: 12
Views: 5072

Re: limits to dsb_rand

OK, I'll admit that's a seriously big number 8-)

Thanks
by kaypy
Mon Jan 27, 2014 9:19 am
Forum: Dungeon Strikes Back (DSB)
Topic: limits to dsb_rand
Replies: 12
Views: 5072

limits to dsb_rand

Are there any particular limits to how far you can push dsb_rand? I'm throwing some pretty big numbers at it so I'm wondering if I ought to be breaking it up to something like dsb_rand(0,9999)*10000 + dsb_rand(0,9999) where the exact details would depend on the number I am after and what dsb_rand ca...
by kaypy
Sun Jan 19, 2014 8:24 am
Forum: DSB
Topic: [Custom dungeon] Chaos Hack [DSB] [Joramun]
Replies: 117
Views: 66982

Re: [DSB] Chaos Hack - a random dungeon generator

Finally stumbled across this 2 years later... So, I made a few tweaks (having read things a bit first) and just finished a playthrough. Thankyou to Joramun for making this available, and to Sophia for DSB itself 8-) Tweak notes: Item generation was tweaked to guarantee a flask and compass on the fir...