hello everyone , I want to use AC as my core with the newest unity version and I am looking for a leads on time & timers and also a leveling up/skills system . If any one can point me in the right direction i would deeply appreciate it! (Willing to spend money on another asset/scripts that wont cause any issues with AC)
A simple leveling system like the sims game series, were you level up a specific skill doing a specific action.
example : the player chooses to read about cooking and levels up a cooking skill or stat by doing so or if the player chooses to ignore a stat like hunger your health would start to decrease.
As for a time/r I am looking for a visual day & night system with weeks and hours with the ability to set a timer weekly or monthly in game to make specific payments to the player.
thanks for your time!
Comments
For both of these, you'd want to make use of Global Variables to keep track of states. An integer could record a particular stat's current level, and an integer or float could keep track of time.
Variables can be manipulated via Actions or via script - see the front page of the Scripting Guide. Variable values can also be displayed on-screen using tokens. Here are a couple of tutorials that may be relevant:
https://adventurecreator.org/tutorials/displaying-game-score
https://adventurecreator.org/tutorials/manipulating-variables-through-script
A timer can be made by running a background ActionList (create a new ActionList asset that has a When running field value of Run In Background), and then use the Variable: Set Action on a loop with an Engine: Wait to change its value every X seconds. A Variable: Check Action can then be used to read its value and react accordingly.
Some other threads on the forum covered similar topics:
https://adventurecreator.org/forum/discussion/6579/on-screen-timer
https://www.adventurecreator.org/forum/discussion/6218/a-timer-that-appears-in-a-menu-via-a-trigger
https://adventurecreator.org/forum/discussion/5019/global-timer
One last quick thing I wanted to ask was if you or anyone used a TON of variables in a mobile game and if it caused any issues, if so any ideas to improve?
If you're trying to implement custom gameplay that involves its own data structure, it may be better to rely on a custom script instead and hook it into AC's save system via this tutorial.