Hi guys, basically what I would like to achieve is to keep track of, and later check, integers based on the player who activated the script.
So the script's actions to set the integers would read as follows ;
Quote
If player one is the activator, then int X = Y
If player two is activator, then int A = B
And then to check the integer;
Quote
If player one is the activator, and if X = Y, then do something
if player two is the activator, and if A = B, then do something
else print error message
To be clear, the "do something" is the same thing either way, but I only want a player who has set one of integers to be able to check it and thus trigger the event.
I feel like perhaps I'm overthinking it and that's it's a simple solution, or that it's too complicated and I'm not thinking hard enough, haha. Maybe a give inventory/check inventory function would be an elegant solution, but that would require creating a dummy inventory item, and I'd rather not, but of course if that's a viable option, then I'll look into it.
Either way, any help or alternative suggestions would be much appreciated.
Question
Legion6k
Hi guys, basically what I would like to achieve is to keep track of, and later check, integers based on the player who activated the script.
So the script's actions to set the integers would read as follows ;
And then to check the integer;
To be clear, the "do something" is the same thing either way, but I only want a player who has set one of integers to be able to check it and thus trigger the event.
I feel like perhaps I'm overthinking it and that's it's a simple solution, or that it's too complicated and I'm not thinking hard enough, haha. Maybe a give inventory/check inventory function would be an elegant solution, but that would require creating a dummy inventory item, and I'd rather not, but of course if that's a viable option, then I'll look into it.
Either way, any help or alternative suggestions would be much appreciated.
Share this post
Link to post
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.