OK, the hyperlink function is great, but it has a big drawback. It can only send something to the world. If i want to invoke a function from the script/plugin, it's impossible to do so universally, because not every user uses the slash as his script character (i myself use double slashes, "//"). A better way would be if the hyperlink called a script function on click, including world.send. That way, we could do whatever we wanted with hyperlinks, such as writing special functions using a hyperlink as the event. E.g.
Sub HyperlinkClick
World.Note "Sending information to the world..."
World.Send "Some random stuff."
World.EnableTimer "RandomTimer", True
End Sub
Also, while we're at it, don't use the default "True" and "False" of the scripting engine to print stuff (look at the chat.xml plugin).
Instead of
World.Note varConnected
do this:
If varConnected Then
World.Note "True"
Else
World.Note "False"
End If
The reason for this, is that "True" and "False" are translated in the script engine. For example, "True" is translated to "Alithes" (but with different ascii characters, of course). Unless the font is greek (most fixed-width fonts aren't), garbage is printed... This means that:
World.Note True
prints "Alithes" in garbage chars.
Sub HyperlinkClick
World.Note "Sending information to the world..."
World.Send "Some random stuff."
World.EnableTimer "RandomTimer", True
End Sub
Also, while we're at it, don't use the default "True" and "False" of the scripting engine to print stuff (look at the chat.xml plugin).
Instead of
World.Note varConnected
do this:
If varConnected Then
World.Note "True"
Else
World.Note "False"
End If
The reason for this, is that "True" and "False" are translated in the script engine. For example, "True" is translated to "Alithes" (but with different ascii characters, of course). Unless the font is greek (most fixed-width fonts aren't), garbage is printed... This means that:
World.Note True
prints "Alithes" in garbage chars.