Jump to content

How to subtract score every minute?


Recommended Posts

I'm making a mission wherein I want to time the player and reward players that complete the mission faster with a higher score. To this end, I set the score to 10,000 at the mission's start, and now I'm trying to set it up such that it subtracts 1 point for every in-universe minute that passes. However, I'm not sure how to get this to work properly. Any suggestions?

Link to comment
Share on other sites

You are correct, you can only modify score with constant values. Also, you can't have a loop running independently from your mission without disturbing it, there is no parallelism. You need to integrate a score loop before every objective node like this:

uZIj3r3.png

I have a display message there for debugging purposes, it can be an "always true" node. This node is the reference for the "time since" node. Those 3 need to be able to be activated multiple times, so remove the "once only" option.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...