Actually everyone’s code are exactly the same, with additional bling-bling of our preference, of course.
My code includes a QoL improvement where…
the notification text of “You have equipped this”
is replaced by a grayed-out choice “You already equipped the sword.”
@Minnow’s code includes a “sheathing” option that will allow your player to stop wielding any weapon.
@Miseri’s code is actually pretty similar with @seabean’s, but YMMV.
For pure list of *if
s, you won’t get the error.
But for the combination of *if
- *else
- *elseif
, you’ll get the error.
*shamelessly put a link to his own thread