DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • June 24, 2016, 11:51:43 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Game add-on for Inn  (Read 2866 times)
0 Members and 1 Guest are viewing this topic.
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« on: November 30, 2004, 02:32:11 PM »

Play a game of Rock, Paper, Scissors with Seth the Bard.

For LoGD - v097
An add-on file for inn.php
Can be configured for wagering gold or free game.
Gold wagered is also adjustable.
Easy install with minimal changes.
Full details in file tag.

rockpaper.php
http://dragonprime.net/users/robert/rockpaper097.zip

For those who can code - this file can be altered to suit other purposes - one example: Change the game setting to be a free game, then change $who to "Wondering Spirits" and make links in the Graveyard - players can have some fun and be entertained while in the Shades.

Enjoy!
Logged

XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: November 30, 2004, 10:05:52 PM »

Would you mind altering that code to a 0.98 module? (or allow me to do so? ) Smiley
Logged

Running for more than three years now:
shelob
Guest
« Reply #2 on: November 30, 2004, 11:46:25 PM »

Not sure if this is what you're looking for, but a similar 0.9.8 mod already exists:
http://dragonprime.net/users/estin/rspgnome.zip

I can't remember how I came across it. Hope it helps.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #3 on: November 30, 2004, 11:48:28 PM »

Okay... this is a forest event... I wanted this as a game for the DHT or Seth...  Tongue
Logged

Running for more than three years now:
robert
Old Dog
Moderator
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #4 on: December 01, 2004, 10:57:50 AM »

Robert <slaps his head for not realizing its already been done!> a 097 project that started out as me trying to make a function to control ALL the outcome and output. Each failed attempt prompted me to scrap the idea and make one from scratch using plain simple code.

Looking at the rspgnome - which is a 098 forest event, I would say, use the existing rspgnome code and alter to suit. As it already IS in 098 format and contains a well written story line also - It'll be much easier for you to convert the rspgnome to meet your 098 needs.

I still work with the most current version: 097 - eventually when 098 is out of BETA and stable enough to be released, I'll work with 098, maybe.
« Last Edit: December 01, 2004, 10:59:04 AM by robert » Logged

Interloper
Guest
« Reply #5 on: December 07, 2004, 04:31:10 PM »


Just added this to my game, is sure to make players happy (they love to gamble).

Small problem I found however, is that when running out of gold you are still able to play one more time. For example, I set the cost to 10 gold, and played until I ran out, but even with 0 gold I was permitted to play again. It wasn't until the turn AFTER I ran out of gold (and played another game for free) that it stopped me from playing. Basically, something seems to be wrong with the addnav checking thing.

I fixed this by placing the navs in individual sections, and making it so that win, lose or draw the players only receive navigation options to play again (which returns to rockpaper.php) or return to the inn.

THere's probably a much easier way to solve this problem, but it's beyond me. Just thought I would mention it.

Thanks for the mod.  Cheesy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
38 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search