changeset 165:e4a803df4c88 beta

Traipse Beta 'OpenRPG' {091203-00} Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc's main goal is to offer more advanced features and enhance the productivity of the user. Update Summary (Beta) New Features: Added Bookmarks Added 'boot' command to remote admin Added confirmation window for sent nodes Minor changes to allow for portability to an OpenSUSE linux OS Miniatures Layer pop up box allows users to turn off Mini labels, from FlexiRPG Zoom Mouse plugin added Images added to Plugin UI Switching to Element Tree Map efficiency, from FlexiRPG Added Status Bar to Update Manager New TrueDebug Class in orpg_log (See documentation for usage) Portable Mercurial Tip of the Day added, from Core and community New Reference Syntax added for custom PC sheets New Child Reference for gametree New Gametree Recursion method, mapping, context sensitivity, and effeciency.. New Features node with bonus nodes and Node Referencing help added Added 7th Sea die roller method; ie [7k3] = [7d10.takeHighest(3).open(10)] New 'Mythos' System die roller added Added new vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)]. Includes support for Mythos roller. Fixes: Fix to Text based Server Fix to Remote Admin Commands Fix to Pretty Print, from Core Fix to Splitter Nodes not being created Fix to massive amounts of images loading, from Core Fix to Map from gametree not showing to all clients Fix to gametree about menus Fix to Password Manager check on startup Fix to PC Sheets from tool nodes. They now use the tabber_panel Fixed Whiteboard ID to prevent random line or text deleting. Modified ID's to prevent non updated clients from ruining the fix. default_manifest.xml renamed to default_upmana.xml Fix to Update Manager; cleaner clode for saved repositories Fixes made to Settings Panel and no reactive settings when Ok is pressed.
author sirebral
date Thu, 03 Dec 2009 00:50:11 -0600
parents d263c8ff4d7c
children ff48c2741fe7
files orpg/dieroller/mythos.py orpg/orpg_version.py orpg/templates/feature.xml orpg/templates/nodes/die_roller_notes.xml
diffstat 4 files changed, 153 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/orpg/dieroller/mythos.py	Thu Dec 03 00:50:11 2009 -0600
@@ -0,0 +1,88 @@
+## a vs die roller as used by WOD games
+#!/usr/bin/env python
+# Copyright (C) 2000-2001 The OpenRPG Project
+#
+#       openrpg-dev@lists.sourceforge.net
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# --
+#
+# File: wod.py
+# Author: OpenRPG Dev Team
+# Maintainer:
+# Version:
+#   $Id: wod.py,v 1.14 2007/05/09 19:57:00 digitalxero Exp $
+#
+# Description: WOD die roller
+#
+# Targetthr is the Threshhold target
+# for compatibility with Mage die rolls.
+# Threshhold addition by robert t childers
+from die import *
+
+__version__ = "$Id: wod.py,v 1.14 2007/05/09 19:57:00 digitalxero Exp $"
+
+
+class mythos(std):
+    
+    def __init__(self,source=[],target=0,targetthr=0):
+        std.__init__(self,source)
+        self.target = target
+        self.targetthr = targetthr
+  
+    def vs(self,target):
+        self.target = target
+        if target == 2: self.targets = [2, 4, 6, 8, 10, 12]
+        if target == 3: self.targets = [3, 6, 9, 12]
+        if target == 4: self.targets = [4, 8, 12]
+        if target == 5: self.targets = [6, 12]
+        return self
+
+    
+    def thr(self,targetthr):
+        self.targetthr = targetthr
+        return self
+
+    
+    def sum(self):
+        rolls = []
+        s = 0
+        s1 = self.targetthr
+        botch = 0
+        for a in self.data: rolls.extend(a.gethistory())
+        for r in rolls:
+            if r in self.targets or r == 12:
+                s += 1
+                if s1 >0:
+                    s1 -= 1
+                    s -= 1
+                else: botch = 1
+            elif r == 1: s -= 1
+            if botch == 1 and s < 0: s = 0
+        return s
+
+    
+    def __str__(self):
+        if len(self.data) > 0:
+            myStr = "[" + str(self.data[0])
+            for a in self.data[1:]:
+                myStr += ","
+                myStr += str(a)
+            if self.sum() < 0: myStr += "] vs " +str(self.target)+" result of a botch"
+            elif self.sum() == 0: myStr += "] vs " +str(self.target)+" result of a failure"
+            else: myStr += "] vs " +str(self.target)+" result of (" + str(self.sum()) + ")"
+
+
+        return myStr
--- a/orpg/orpg_version.py	Wed Dec 02 21:21:34 2009 -0600
+++ b/orpg/orpg_version.py	Thu Dec 03 00:50:11 2009 -0600
@@ -4,7 +4,7 @@
 #BUILD NUMBER FORMAT: "YYMMDD-##" where ## is the incremental daily build index (if needed)
 DISTRO = "Traipse Beta"
 DIS_VER = "Ornery Orc"
-BUILD = "091202-00"
+BUILD = "091203-00"
 
 # This version is for network capability.
 PROTOCOL_VERSION = "1.2"
--- a/orpg/templates/feature.xml	Wed Dec 02 21:21:34 2009 -0600
+++ b/orpg/templates/feature.xml	Thu Dec 03 00:50:11 2009 -0600
@@ -20,8 +20,8 @@
 </nodehandler></nodehandler><nodehandler class="form_handler" frame="400,400,501,72" height="600" icon="orc" map="Traipse OpenRPG::Bonus Nodes" module="forms" name="Encounters" version="1.0" width="400">
   <nodehandler class="listbox_handler" frame="400,153,348,150" icon="gear" map="Traipse OpenRPG::Bonus Nodes::Encounters" module="forms" name="Roll" version="1.0">
   <list raw_mode="1" send_button="1" type="1">
-    <option selected="0" value="">!!Chart::([#1d3],0)!!</option>
-    <option selected="1" value="">!!Chart::([#1d2],1)!!</option>
+    <option selected="1" value="">!!Chart::([#1d3],1)!!</option>
+    <option selected="0" value="">!!Chart::([#1d2],1)!!</option>
     <option selected="0" value="">Option Text III</option>
   </list>
 </nodehandler><nodehandler class="rpg_grid_handler" frame="400,400,0,48" icon="grid" map="Traipse OpenRPG::Bonus Nodes::Encounters" module="rpg_grid" name="Chart" version="1.0">
@@ -131,13 +131,13 @@
 </text></nodehandler><nodehandler class="textctrl_handler" frame="400,400,452,36" icon="note" map="Traipse OpenRPG::User Manual" module="forms" name="Gametree Additions &amp; Tips" version="1.0"><text hide_title="0" multiline="1" raw_mode="0" send_button="0">  With the new additions to the gametree using nodes has never been easier nor has it ever been more fluid. Included here is a list of the additions to the gametree referencing model as well as some tips on how to make the gametree work the way it was intended.
 
 Grid Nodes:
-  Grid nodes are now referenceable with the coordinates of the grid. Example: !@Grid::(1,1)@!
+  Grid nodes are now referenceable with the coordinates of the grid. Example: !@Grid::(0,0)@!
 The example will return the top left most cell data. The grid understands coordinates like this (Row, Column)
 
   Grid nodes can reference node data just like any other node can.  With a new added feature grids are even more useful. By using a new die rolling syntax you can draw just the number of the modified roll.  While this will not pass during game play, you can use it with the grid node to create a random chart. The new die roll syntax is [#XdY]. # works just like q, yet it returns only the modified die result. 
 
   Here is an example with a 3 x 3 Grid
-Example: !@Grid::([#1d3], [#1d3])@!
+Example: !@Grid::([#1d3-1], [#1d3-1])@!
 
 The result will be a random event from the grid.
 
--- a/orpg/templates/nodes/die_roller_notes.xml	Wed Dec 02 21:21:34 2009 -0600
+++ b/orpg/templates/nodes/die_roller_notes.xml	Thu Dec 03 00:50:11 2009 -0600
@@ -1,13 +1,11 @@
-
-<nodehandler class="tabber_handler" icon="tabber" module="containers" name="Die Roller Notes" version="1.0">
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="Basics" version="1.0">
-    <text multiline="1" send_button="1">
-The new dieroller is design with expansion in mind. While there are a number of new dieroller options in the base roller, the new design facilitates the building of new rollers that can be loaded at any time.  In this test build three are 3 rollers: std, d20, and wod.  The std roller is the generic roller.  It has generic dice options and is the base for all other dierollers. The d20 and wod rollers are game specific rollers and have game specific options.  They also serve as examples for how to create your own rollers in python.
+<nodehandler class="tabber_handler" frame="987,495,14,101" icon="tabber" module="containers" name="Die Roller Notes" version="1.0">
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="Basics" version="1.0">
+    <text multiline="1" send_button="1">The new dieroller is design with expansion in mind. While there are a number of new dieroller options in the base roller, the new design facilitates the building of new rollers that can be loaded at any time.  In this test build three are 3 rollers: std, d20, and wod.  The std roller is the generic roller.  It has generic dice options and is the base for all other dierollers. The d20 and wod rollers are game specific rollers and have game specific options.  They also serve as examples for how to create your own rollers in python.
 
 ** Please not that this is our initial release of the roller.  The new syntax might see odd to you.  We are considering an alternative syntax, and this is being discussed on the openrpg.com forums. In if you have strong opinions on this, you might want to hop over there and give your 2 cents. **
 
 Dierollers:
-You can see what roller you are using by using the &quot;/dieroller&quot; command in chat.  By default it should be &quot;std&quot;.  To set the die roller, use &quot;/dieroller roller_name&quot;.  So to load the d20 roller, type &quot;/dieroller d20&quot;. Its easy!
+You can see what roller you are using by using the "/dieroller" command in chat.  By default it should be "std".  To set the die roller, use "/dieroller roller_name".  So to load the d20 roller, type "/dieroller d20". Its easy!
 
 Basic Syntax.
 The basic syntax is the same, 3d6+3, rolls three six side dice plus 3.  However, the new roller has other options, they look like this:
@@ -25,9 +23,8 @@
 This example rolls 10d10 with a minimum roll of 4 and takes the lowest 5.  Pretty nifty if I do say so myself.
 </text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="STD rollers" version="1.0">
-    <text multiline="1" send_button="1">
-Now that you know how to roll dice, lets look at the standard options.
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="STD rollers" version="1.0">
+    <text multiline="1" send_button="1">Now that you know how to roll dice, lets look at the standard options.
 
 takeHighest - take highest X rolls
 
@@ -54,9 +51,15 @@
 [10d10.each(2)] - add 2 to every die roll
 </text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="d20 roller" version="1.0">
-    <text multiline="1" send_button="1">
-Remember, to use the d20 roller type: &quot;/dieroller d20&quot;
+  <nodehandler class="textctrl_handler" frame="400,400,0,48" icon="note" map="Die Roller Notes" module="forms" name="7th Sea" version="1.0">
+    <text multiline="1" send_button="1">The 7th Sea roller is part of the Standard rollers in Traipse.
+
+The 7th Sea roller includes a truncated version that allows you to roll quickly.
+
+[7k3] = [3d10.takeHighest(3).open(10)]
+</text>
+  </nodehandler><nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="d20 roller" version="1.0">
+    <text multiline="1" send_button="1">Remember, to use the d20 roller type: "/dieroller d20"
 
 dc(DC,mod) - make a DC check.
 
@@ -67,17 +70,40 @@
 [1d20.attack(20,5,19) - make an attack roll against AC 20 with a modifier of +5 and a critical range of 19-20.
 </text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="wod roller" version="1.0">
-    <text multiline="1" send_button="1">
-Remember, to use the wod roller type: &quot;/dieroller wod&quot;
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="wod roller" version="1.0">
+    <text multiline="1" send_button="1">Remember, to use the wod roller type: "/dieroller wod"
 
 vs(target) - vs roll against target
 
-[3d10.vs(5)] - vs roll against 5.</text>
+[3d10.vs(5)] - vs roll against 5.
+
+The wod roller also has a shortend version in Traipse.
+[3v5] = [3d10.vs(5)]</text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="Hero Roller" version="1.0">
-    <text multiline="1" send_button="0">
-Skill Roller, example [3d6.sk(11,0)]--
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="mythos roller" version="1.0">
+    <text multiline="1" send_button="1">Remember, to use the mythos roller type: "/dieroller mythos"
+
+The mythos roller is a roller designed by community request. The roller uses a new style of versus similar to the wod roller.
+
+The difference is in the target. If the roller rolls [3d12.vs(2)], then the software looks for numerals of 2.
+
+Targets:
+2 = [2, 4, 6, 8, 10, 12]
+3 = [3, 6, 9, 12]
+4 = [4, 8, 12]
+6 = [6, 12]
+
+vs(target) - vs roll against target
+
+[3d12.vs(6)] - vs roll against 6, 12.
+
+The mythos roller also works with the new shortened vs. roll
+
+[3v3] = [3d12.vs(3)] - vs roll against 3, 6, 9, 12</text>
+  </nodehandler><nodehandler class="textctrl_handler" frame="400,400,308,51" icon="note" map="Die Roller Notes" module="forms" name="Hero Roller" version="1.0">
+    <text multiline="1" send_button="0">Remember, to use the hero roller type: "/dieroller hero"
+
+Skill Roller, example [3d6.sk(11,0)]
 Make a SKill roll.  The first number of the two modifiers is the rating in the skill, 11 meaning 11 or less.  The second number is any penalty or bonus you have for the roll.  A positive number is a bonus, a negative number is a penalty.  As with many Hero system rolls, the only die choice that makes sense is 3d6
 
 To-hit roller, example  [3d6.cv(5,1)]
@@ -96,22 +122,30 @@
 Make a damage roll for Killing damage.  Always uses a stun multiplier of 1 for ease of use with the Hit Location roller mentioned above.  No modifiers exist.  Contributed by Heroman
 </text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="? Option" version="1.0">
-    <text multiline="1" send_button="1">
-Another new feature is the ? option.  If you place a ? in a dice string you will be prompt by a dialog for the value.  This is useful when using die rolls in character sheets. From example:
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="? Option" version="1.0">
+    <text multiline="1" send_button="1">Another new feature is the ? option.  If you place a ? in a dice string you will be prompt by a dialog for the value.  This is useful when using die rolls in character sheets. From example:
 
 [3d6+?] - will ask you for a value to replace ?.
+
+The Hint System:
+You can add a hint to your ? Option by adding a label after ?
 [3d6+?StrMod] will ask you for a value to replace ? and give you the Hint that it should be your StrMod. This Hint system can be used for as many ? as you have in your roll
-[?NumDice}d6+?StrMod+?Weapon Bonus+?Misc Bonus] - If you notice the } after NumDice, that tells the Hint system to stop looking for Alpha character, otherwise it would try to include the d in it's hint.
+
+The Stop Break:
+The '}' character is a stop break that tells the Hint system to stop looking for Alpha characters.  
 
-A more game specific example might look like this:
+Example: [?NumDice}d6+?StrMod+?Weapon Bonus+?Misc Bonus] 
+
+If you notice the '}' after NumDice, that tells the Hint system to stop looking for Alpha character, otherwise it would try to include the d in it's hint.
+
+A more game specific example might look like this (using the d20 roller):
 
 [1d20.dc(?DC,5)] - this will prompted you for the ? value, which is the DC.</text>
   </nodehandler>
-  <nodehandler class="textctrl_handler" icon="note" module="forms" name="The End" version="1.0">
+  <nodehandler class="textctrl_handler" icon="note" map="Die Roller Notes" module="forms" name="The End" version="1.0">
     <text multiline="1" send_button="1">Well, that's all I have to say about the new roller.  More options and game specific rollers on the way.  If you're interested in coding a roller for your favorite game, drop by the dev server and we'll try and help you out.
 
 -Chris Davis
 </text>
   </nodehandler>
-</nodehandler>
+</nodehandler>
\ No newline at end of file