Is there a function for changing hypertext colour?
Silver
11 Feb 2015, 14:11I can't see anything obvious in the function list.

Pertex
11 Feb 2015, 15:58You can add this function to your game:
<function name="SetLinkColour" parameters="colour">
request (LinkForeground, colour)
game.defaultlinkforeground = colour
</function>
Silver
11 Feb 2015, 16:20Thanks!
Silver
11 Feb 2015, 16:31So to call that Id just input:
SetLinkColour ("blue")
SetLinkColour ("blue")
HegemonKhan
11 Feb 2015, 20:14HK edit: my apologies (I gave wrong info).
Silver
11 Feb 2015, 20:58I was going by how other functions work:
SetBackgroundColour ("Blue")
SetBackgroundColour ("Blue")
The Pixie
11 Feb 2015, 21:39It does need quotes!
HegemonKhan
12 Feb 2015, 06:21my bad, I thought it was just a normal function call parameter (or I just been always using Objects for my parameters, hmm ~ I need to look up on this), my apologies.
The Pixie
12 Feb 2015, 08:10"Blue" is a string and is also the actual value you want the background, not a holder for the value. Look at these example:
colour = "blue" // blue is the actual value, and a string, so quotes
size = 5 // 5 is an integer, so no quotes
SetLinkColour (colour) // colour is a holder for the string value, no quotes
SetLinkColour ("blue")
ball.colour = colour
ball.colour = "Blue"
SetLinkSize (size)
SetLinkSize (5)
ball.size = size
ball.size = 5