Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (3)
    As of 2020-10-22 04:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My favourite web site is:












      Results (225 votes). Check out past polls.

      Notices?