Thread: Feng-Shui and open-ended dice
-
January 11th, 2011, 13:33 #1
- Join Date
- Jan 2011
- Location
- Uppsala, SWEDEN
- Posts
- 11
Feng-Shui and open-ended dice
I'm new to this, so new that I don't have FGII yet. I was thinking about how hard it would be to write a ruleset for Feng-shui. Most of it would be fairly straight forward addition and subtraction of modifiers and or skills, as far as I can tell.
Only problem I see would be the standard resolution die, because I spent some time yesterday looking in this forums for how to build open-ended dice and I know it can be done, because at least Savage worlds has it in some form, only I have no clue about how or how useful that would be in this context. The fact that you use two, one positive and one negative (different coloured) open-ended dice could be solved by making them as different custom dice as shown in an example using d4s, somewhere in these forums.
So how hard would it be to write the code for a die-pair of one positive and one negative open-ended d6 to be rolled together?Obscurum est absentis lux lucis. Ego sum lux lucis!
-
January 11th, 2011, 19:13 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,424
Open-ended dice rolls (both low and high) are used in the Rolemaster ruleset as well.
The amount of work required to build a ruleset varies widely depending on how customized you want your ruleset to be. If you just want to make minor changes to an existing ruleset, it's going to be easier than building a ruleset with completely new character sheet, dice rolling behavior, combat tracker, etc. You will need to make modifications to XML files and/or LUA script to make any ruleset changes; so you should be comfortable with tinkering to do what you want, and any programming background will help. That said, the community here is very helpful, and you can post your questions here.
At it's core, FG can be used as a virtual tabletop to write notes, roll dice and chat. That's really all you need to play a game online, but all the other features in most rulesets are nice to have for that particular game system.
There's a wiki listed in the City Hall forum, which is managed by one of our excellent community members, and it contains links to all the community-made rulesets that are in the wild.
Check out the ruleset guides in the Library section as well for more info on ruleset creation.
Cheers,
JPG
-
January 11th, 2011, 21:38 #3
- Join Date
- Jan 2011
- Location
- Uppsala, SWEDEN
- Posts
- 11
Thanks you for the answer, but given that I have no access to either Rollmaster (if I remember it right ) or any other non-included ruleset I have no clue as to how to implement it, or even if I can look at the code they used to implement the openended rolls if I bought the games for that specific purpose. So my question remain, how would I implement a positive/negative openended d6-pair?
However I seem to have bought FGII when I got back from work.Obscurum est absentis lux lucis. Ego sum lux lucis!
-
January 11th, 2011, 22:03 #4
The FG scripting is written in Lua, which is somewhere between Javascript and Basic (like Javascript in functionality, but like Basic in syntax). If you are comfortable with writing code more generally, then implementing open-ended dice in FG isn't a very big deal.
If you aren't familiar with general coding, then learning the language and writing code for open-ended rolls is probably a tough challenge.
Just my 2c!
Stuart
-
January 11th, 2011, 22:39 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,424
I'll have to let others in the community address whether any of the community rulesets show examples of open-ended rolls.
I personally haven't built this functionality in any of my rulesets (4E and 3.5E), because it's not required for them. So, I don't have any examples to share.
Essentially, you would have to capture the final die roll, then roll again instead of printing a message to the chat window. When the open rolls stop, then you would need to output the result of all the rolls to the chat window.
Regards,
JPG
-
January 12th, 2011, 02:08 #6
Open ended how?
For a d4 do you want to keep rolling as long as the result is a 4?'Build it and they will come'
Universal Table Rolling Get it HERE
FG2 Help Files Get it HERE
Getting the Most Out of Notepad++ (FG2 & Lua spellcheck & Auto-Completion) Get it HERE
Printing the contents of a table Get it HERE
-
January 12th, 2011, 02:33 #7
Check out this thread. It's quite old, but may be helpful.
~P
-
January 12th, 2011, 08:47 #8
- Join Date
- Jan 2011
- Location
- Uppsala, SWEDEN
- Posts
- 11
Originally Posted by Moon Wizard
Originally Posted by SpudmanWP
Originally Posted by PhystusLast edited by pson; January 12th, 2011 at 09:00.
Obscurum est absentis lux lucis. Ego sum lux lucis!
-
November 10th, 2015, 04:06 #9
- Join Date
- May 2014
- Posts
- 10
I know this is an old thread, however I did achieve the desired effect using custom dice in the gameelements.xml file. I will note here, the variables I use are postmp (positive temp) and expos (exploded positive) as well as the neg (negative) abbreviations. You can access these dice using the radial from the d6 model and if you add them to a hotkey they work exactly as the do in the table top! Granted, it will not tell you if it's a critical... but you should realize that if both numbers are over 6 it is a crit.
Code:<customdie name="Positive"> <model>d6</model> <menuicon>d6icon</menuicon> <script> function onValue(result) if result==6 then postmp=result while postmp==6 do expos=math.random(6);result=result+expos;postmp=expos end end return result end </script> </customdie> <customdie name="Negative"> <model>d6</model> <menuicon>d6icon</menuicon> <script> function onValue(result) if result==6 then negtmp=result while negtmp==6 do exneg=math.random(6);result=result+exneg;negtmp=exneg end end return -result end </script> </customdie>
-
November 10th, 2015, 07:42 #10
- Join Date
- Jan 2011
- Location
- Uppsala, SWEDEN
- Posts
- 11
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks