Jump to content
zagr

Roll dice system help

Recommended Posts

hello, can someone help me with a roll system like in RPG.

 

Quote

_numberArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
_number = _numberArray call BIS_fnc_selectRandom;
hint str _number;

i want to make sure that all people will have the same result, the question is how can i make it so all people will see the result of a player, because each time i run my script globally i only see my results and my friend see only his results of a roll.

Share this post


Link to post
Share on other sites

remoteExec is probably what you're looking for:

player addAction ["Roll random number", {
	_random = str ceil random 10;
	_random remoteExec ["hint", 0];
}, nil, 0, true, false];

 

  • Like 3

Share this post


Link to post
Share on other sites
11 minutes ago, dreadedentity said:

remoteExec is probably what you're looking for:


player addAction ["Roll random number", {
	_random = str ceil random 10;
	_random remoteExec ["hint", 0];
}, nil, 0, true, false];

 

So, if im correct other people will see my result right?

Share this post


Link to post
Share on other sites
34 minutes ago, zagr said:

So, if im correct other people will see my result right?

That's what I'm hoping for, but I don't do a lot of MP scripting

Share this post


Link to post
Share on other sites
9 hours ago, dreadedentity said:

That's what I'm hoping for, but I don't do a lot of MP scripting

yeah it's working, thanks a lot!

Share this post


Link to post
Share on other sites

I know this reply might be a little late, but I wanted to chime in and offer some help with your RPG roll system. Creating a custom roll system can be a fun and exciting challenge.
When it comes to RPG roll systems, there are various approaches you can take depending on the complexity and mechanics of your game. You can use dice, cards, or even digital tools to simulate rolls and determine outcomes.
If you're looking for a digital solution, I recently came across a handy online tool called FlipSimu (flipsimu.com). It's a versatile d12 roller that provides an easy way to generate random numbers for your RPG needs. You can customize the number of sides and even add modifiers for more flexibility.

  • Haha 1

Share this post


Link to post
Share on other sites
3 hours ago, dominicyberx said:

I wanted to chime in and offer some help with your RPG roll system

 

OlNBTmF.gif

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×