(done) Event System

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
ian_scho
High Lord
Posts: 2807
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

(done) Event System

Post by ian_scho »

An 'Event' system is a whim really, but I like the idea alot. Let me explain.

The champions walk onto an event square and are presented with an alternative dungeon view.
The view may be a blank background or an image specified by the dungeoneer.
The view will contain text as well, shown at the top, middle or bottom of the screen as again, this the content, text colour and position is specified by the dugneoneer.
At the bottom of the view, one or many buttons exist with the option of showing another view as explained above. Maybe updating the text such as a story, or changing the background. Also the button could exit from the event on the square, leaving them with the normal view. Finally, and this is where the strengths of DSB come in here, a button could fire off a LUA script to make changes to the dungeon, such as dropping an item at the feet of our champions.

Phew. Anyways, that's how I'd see it. It's a lot of work, Sophia, but I remember it as almost the only reason that EOB could be better than DM. The option to tell a story, or interact at a more 'personal' level. It's been mentioned before elsewhere in the forum. Just drop it at the end of your huge 'To do... Maybe' list.
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Post by Joramun »

I'm not 100 % sure, but I think you can do all of that already !

There is a function to "pause" all activity
in the dungeon, named dsb_lock_game()
Then you can display your view, either by
dsb_party_place() the party somewhere
you want, or display a screen using some
bitmap as haze etc.

I'm not sure you can click an attack method
when the game is locked, but at the end of
the sequence you can unlock the game and
then display a set of "attack methods" to let
the player choose.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

A lot of this can be done already.
I've been somewhat quiet because I've been giving this a little more thought, especially what can already be done, what can't be done, and what can be done but the method is so contrived that a more reasonble method might be needed.

I think some kind of "overlay" system like CSBwin has would be very useful for displaying effects like this, and would be more elegant than a haze on the party's tile.

Any text and whatnot can already be displayed with calls to dsb_write, so that should be fine.

As for options... still not sure on that one.
Joramund is correct, though: Attack methods can't be clicked with the game locked.
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

I'll update this since with 0.16's ability to show a fullscreen "cut scene" or the like, and trap clicks made in this mode, just about any sort of event screen is now doable.
Post Reply