mob/verb/Guild_Options()
set category = "Commands"
set hidden = 1
if(usr.guildin == 0)
switch(alert("You are not in a guild. Would you like to create one?","Guild Options","Yes","No"))
if("Yes")
var/guild = input("Name it (font color allowed but it cant be really big keep it to medium)","") as text
var/name = html_encode(guild)
if(length(name) > 26)
usr<<"Your guild has to be less than 26 characters"
return
else
Problem description: Basically im trying to let people create a guild using HTML but once they set the HTML tag I want to parse it and see if the final length is > 26.
EG: I enter in "Test" -- should check if "Test" is > 26 while ignoring all the font color = stuff I had to put in front of each letter
world << SizeOfStringWithoutHTML("<font color=#F00>Hello!</font>")
The above code will output 6 since "Hello!"