I am trying to create a system in game similar to pathfinders skill checks (perception, acrobatics, climb). I am using PK'8s data suite to store the ranks players add to these skills and have the system add their corresponding parameter(atk,def,etc.), skill rank, and the result of a d20 dice roll.
As of right now I have been doing this the long way with a common event containing conditional branches that determine if the actor is in the party or not, then calculates their score and compares it to the DC of the event which flips a switch that tell the event (say a trap) whether the actor succeeded or failed.. This is a lot of redundant work. So I am trying to figure out the way to create a 'For' loop where it replaces a placeholder in my script with a number N where N is the actor value. each time the loop run N changes to the actor value for the actor next in my party. That way I don't have to copy, paste, and edit fields for each specific actor and end up with countless conditional branches.
I could post my current event and common event though I don't think it will help much since I am going for a complete overhaul.
As of right now I have been doing this the long way with a common event containing conditional branches that determine if the actor is in the party or not, then calculates their score and compares it to the DC of the event which flips a switch that tell the event (say a trap) whether the actor succeeded or failed.. This is a lot of redundant work. So I am trying to figure out the way to create a 'For' loop where it replaces a placeholder in my script with a number N where N is the actor value. each time the loop run N changes to the actor value for the actor next in my party. That way I don't have to copy, paste, and edit fields for each specific actor and end up with countless conditional branches.
I could post my current event and common event though I don't think it will help much since I am going for a complete overhaul.