It compares two strings and returns true if they are identical or false if they are not.
PHP Code:
strequals(Monkey, Monkey) <- returns true
strequals(Monkey, Banana) <- returns false
#g is a GS1 variable containing your players current guildname.
So if my guild was "Amazing"
strequals(#g, Amazing) is effectively doing strequals(Amazing, Amazing) which would be true!
Now, since this function always returns true or false, you can use it in conditional statements (i.e. if () constructs).
PHP Code:
if (playertouchsme) { // returns true if player is touching so next line!
if (strequals(#g, Monkey) { // returns true if guild if Monkey!
setcharprop #c, Geez I hate GS1!!!;
}
else {
setcharprop #c, You're not in my guild!!!;
}
}
Should work. Apply lateral thinking when scripting. If something works here, it may work over here? Do not expect to have your hand held the whole way through =/