Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hmmm. RPGs. Perl. Methinks there be possibilities.

My creative juices left the following mess:
I'm envisioning a system whereby turns are periodic (x turns per day), and results in calls to user built packages that handle calls for game events.

Each player takes a base module and is free to modify the handlers to send responses back to the environment as pleases them.

Environment script sanity checks response signals (i.e. is this a valid move for character (like no initiate calling down the "Wrath of Wall" on anonymous monks).

Players are free, of course, to respond to "Signal: Greeting" with "Response: Boiling Oil" all they want.

If no signal is sent, player/character module is allowed one sub WhileIdle per turn.

Framework: packages may be hosted remotely if desired (like if I have a Perl-enabled webhost), or gamesite hosted. Each module must return a result in X seconds or be defaulted to no response (for better or worse). Gamesite hosted modules do not write or read the disk, but may fetch one XML file from offsite (hosting to be provided by player)-- and probably should be verified by a second party before eval'ed.

Hmmm. Better yet. All player modules get signals and respond using XML, whether onsite or off. Offsite gets a slightly longer timeout due to HTTP transaction.

Of course there would be an obligatory stats and "state of the world" page. And obviously some messaging capability. (Players could send messages as part of their turn...)

] ichimunki stopped rambling at this point, and was noticed to have a vacant stare on his face, but looking a little giddy at the same time.

In reply to Re: Re: An inkling of an magnificent idea. by ichimunki
in thread An inkling of an magnificent idea. by wombat

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2023-05-31 00:21 GMT
Find Nodes?
    Voting Booth?

    No recent polls found