Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

States.PlayerGetObjectives #387

Closed
Kromster80 opened this issue Mar 6, 2024 · 1 comment
Closed

States.PlayerGetObjectives #387

Kromster80 opened this issue Mar 6, 2024 · 1 comment

Comments

@Kromster80
Copy link
Owner

Returns IDs of all objectives a player has.

function States.PlayerGetAllObjectives(aPlayer: Integer): TKMIntegerArray;
function States.PlayerObjectiveStatus(aObjective: Integer): TKMObjectiveStatus;
function States.PlayerObjectiveType(aObjective: Integer): TKMObjectiveType;

Reason: currently, we have to save all the script-made objectives into Integer variables, and if we want any logic to run depending on what objectives were completed/failed etc, we also have to track the objective status in separate variables. Does it work? Yes. Is it ideal? No.

@Kromster80
Copy link
Owner Author

Added in r14892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant