Apologies if I didn't explain it properly. I don't like dumping everything in the Update method so this is the way I do it for example:
`public class Test : MonoBehaviour
{
public Text moneyText;public void AddMoney(){ AC.GlobalVariables.GetVar…
Thank you I got most of it, but could you explain where the "PlayerInvCollection" comes from? is that the inventory Name you set in menus or? Because that is giving me an error in code, should I be referencing an inventory? if so then how …
@Rairun I've done something like that as well but it doesn't seem to work still. I must be missing something. Once you create the actionlist where do you put it?
Sorry if I didn't explain it properly. I've already gotten the Time Formula to work and all and have it saved as Global variable "Time"(Float type). And some Debug buttons that add minutes, hours to that time etc for testing purposes which…
Using the editor yeah it is, but I'm trying to understand the scripting side, so that I may learn how to create my own custom actions with its own logic etc.
Sorry to add another question here, but I thought instead of creating another forum I could just ask here since its relating my previous question.
I added the variables component to the npc, and now I wanna access or set that variable, how can I do…
Just wanna add that if I wanted to do the above example with parameters, how can I do that? so that I can just enter whatever value I want to add money.