I'm trying to make a "Warning Points" NPC where a GM can assign a warning point to a player, as well as remove one. What I'm struggling with, is how to make it so that I can set a point (using a variable) for another player. Here's the relevant part of my script:
W_1:
mes "Enter the name of the player you wish to assign a warning point";
next;
input $@warnplayer$;
next;
mes "Now, please enter a brief reason for why this player is being assigned a warning point.";
next;
input $@warnreason$;
next;
set $@warnplayer$,#warningpoints+1;
mes "The player has been assigned a warning point.";
close;
W_2:
mes "Enter the name of the player you wish to have a warning point removed from.";
next;
input $@unwarnplayer$;
next;
mes "Now, please enter a brief reason for why this player is having a warning point removed.";
next;
input $@unwarnreason$;
next;
set $@unwarnplayer$,#warningpoints-1;
mes "The player has had a warning point removed.";
close;
I'm assuming that I'm just not using the "set" command correctly. Please help me fix my script so that I change variable for other players and not just the invoking player. Thank you.
Question
GreenMagic793
Hey guys,
I'm trying to make a "Warning Points" NPC where a GM can assign a warning point to a player, as well as remove one. What I'm struggling with, is how to make it so that I can set a point (using a variable) for another player. Here's the relevant part of my script:
I'm assuming that I'm just not using the "set" command correctly. Please help me fix my script so that I change variable for other players and not just the invoking player. Thank you.
Edited by greenmagic469Link to comment
Share on other sites
8 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.