• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Discovery Development Discovery Developers Forum Discovery Unofficial Development Discovery Mod FLHook Projects
1 2 Next »
[FLHook] Dice rework

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

[FLHook] Dice rework
Offline Remnant
03-21-2018, 02:29 AM, (This post was last modified: 03-21-2018, 04:47 AM by Remnant.)
#1
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

Hey there folks. At the moment, I can't tackle any large FLHook projects due to college classes, although I intend on tackling a few big projects as soon as summer rolls around. FLhook sounds like a scary way to keep busy.

Until then however, I'll tackle a few smaller projects that can be completed in a few hours. Because why not.



Dice Roll Rework

Basically: It's implementation of the classical 'xDy[+-]z' syntax for rolling dice. (1d20 | 4d8 | 1d100+3 | 40d20-3)

[Image: diceroll.png]
*Note: Only the user rolling the command gets the line explaining how everything was added up. No need to spam the chat with pointless numbers.
The line explaining how everything was tallied up is now displayed publicly as well.
That line will not be shown if it's too big. (ie: tons of dice being rolled at once)


The command supports addition and subtraction as modifiers.
The regex which parses the command to see if you used the right syntax only allows up to 3 digit numbers for the dice size, and dice amount. It however allows up to 5 digits for the modifier value.

When will I see this ingame?
I can't say. There's just a few more bugs I want to fix before I make a github pull request. From there, it all depends on @Alex. peer-reviewing, accepting the code changes, and giving the current admin team an updated version of playercntl.

I'll have the code changes up for the dev-team in a few hours, though.



Happy rolling!
If you've got any other ideas, toss toss this account a PM. Or post it somewhere.


[+]Spoiler
Ps: Regex makes me sad.
Whoever wrote regex parsing was a madman.
Code:
wregex expr(L"(\\d{1,2})[Dd](\\d{1,3})(([+\\-*])?(\\d{1,5}))?");
Reply  
Offline JorgeRyan
03-21-2018, 02:35 AM,
#2
The Brotherhood
Posts: 1,021
Threads: 64
Joined: Jul 2016

Are you telling me we could start playing Daimyos and Dragons in the game now?

Sweet Smile

[Image: EjUDu1h.png]
Feedback and comm bumping here
Reply  
Offline Enkidu
03-21-2018, 02:38 AM, (This post was last modified: 03-21-2018, 02:48 AM by Enkidu.)
#3
UN| Unioners
Posts: 4,082
Threads: 378
Joined: Apr 2013

You mean Donaus and Derilicts?


This will be a great feature. Huge potential in it to expand the casino role.

[Image: XTF1d6x.png]
THE SYNDIC LEAGUES
(A co-operative of Rheinland's Shipping Unions, retired from a life of piracy.)
Information | Recruitment | Message Dump |
Feedback | Diplomatic channel
(Links pending redevelopment).
Reply  
Offline Remnant
03-21-2018, 04:25 AM, (This post was last modified: 03-21-2018, 04:25 AM by Remnant.)
#4
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

(03-21-2018, 02:38 AM)Tænì Wrote: This will be a great feature. Huge potential in it to expand the casino role.

If this is looked at from a Casino tool, would you say that it'd be appropriate to show the individual rolls to EVERYONE instead of just the roller, then?
That way if you have games where it requires 2 dice to be rolled, you'd want all players to see the individual dice values.

I hid that part initially as I didn't want to clutter up the chat too much, although I suppose if it's abused the admin team can deal with people.

Should I make an adjustment so everyone can see all of the text?
Reply  
Offline Vexykin
03-21-2018, 04:42 AM, (This post was last modified: 03-21-2018, 04:44 AM by Vexykin.)
#5
Member
Posts: 2,069
Threads: 194
Joined: Jan 2010

I literally wished couple hours ago for somebody to remake the Casino RP on Discord. I remember times where there were Luxury Yachts in front on Manhattan doing very awesome Casino RP

This is giving me more hope Smile
Fyi, i don't like gambling that much...But i always saw that as an awesome Roleplaying way in Freelancer.

Keep it up!
Reply  
Offline Enkidu
03-21-2018, 04:43 AM, (This post was last modified: 03-21-2018, 04:43 AM by Enkidu.)
#6
UN| Unioners
Posts: 4,082
Threads: 378
Joined: Apr 2013

(03-21-2018, 04:25 AM)Remnant Wrote:
(03-21-2018, 02:38 AM)Tænì Wrote: This will be a great feature. Huge potential in it to expand the casino role.

If this is looked at from a Casino tool, would you say that it'd be appropriate to show the individual rolls to EVERYONE instead of just the roller, then?
That way if you have games where it requires 2 dice to be rolled, you'd want all players to see the individual dice values.

I hid that part initially as I didn't want to clutter up the chat too much, although I suppose if it's abused the admin team can deal with people.

Should I make an adjustment so everyone can see all of the text?

If everyone can see the roles, would also be good for a hypothetical Ingame D'n'D scenario. Say, resolving the outcome of an RP boarding Operation, which happens more often than you might think.

[Image: XTF1d6x.png]
THE SYNDIC LEAGUES
(A co-operative of Rheinland's Shipping Unions, retired from a life of piracy.)
Information | Recruitment | Message Dump |
Feedback | Diplomatic channel
(Links pending redevelopment).
Reply  
Offline Remnant
03-21-2018, 04:44 AM,
#7
Member
Posts: 2,206
Threads: 248
Joined: Apr 2012

Alright. I'll swap the function out so it's visible to everyone.
If staff grumbles, maybe down the line I'll just let them set if it should be personal, or public in a config or something.
Reply  


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2025 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode