- Joined
- Sep 27, 2016
- Messages
- 10
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I am trying to create ingame missions where the player can send party members but I am finding difficult to figure out what calculates success for a mission.
However, I am having trouble figuring out how to access the specific party members stats or if this correct way to do this algorithm.
I am thinking doing something like this:
Very Easy Missions: Overall combat stats and 100 being guaranteed success.
A beginner party member can be have a total combat stats: of 20
So I believe doing something that will calculates the partyMembers in the mission.
Barebones Example:
(1/100)*(playercombatstat) = Percentage of success of the mission
Then do:
double d = Math.random();
if (d < 0.75)
// Success
else
// Failure
However, I am having trouble figuring out how to access the specific party members stats or if this correct way to do this algorithm.
I am thinking doing something like this:
Very Easy Missions: Overall combat stats and 100 being guaranteed success.
A beginner party member can be have a total combat stats: of 20
So I believe doing something that will calculates the partyMembers in the mission.
Barebones Example:
(1/100)*(playercombatstat) = Percentage of success of the mission
Then do:
double d = Math.random();
if (d < 0.75)
// Success
else
// Failure


