Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: SPY-3 on August 23, 2004, 05:07 AM

Title: colors
Post by: SPY-3 on August 23, 2004, 05:07 AM
I need some examples of code that would make it so ÁQ would be colored.
ÁQ grey
ÁR green
ÁY red
ÁV blue
ÁP white
ÁZ yellow
and all in one message cause most time people wont just use one color in there messages. i also want to add diablo ones but i could figure it out from the code to do sc so can someone post code to do this? :D
Title: Re:colors
Post by: Eli_1 on August 23, 2004, 10:30 AM

myArray = Split(Message, "Á")
For i = 0 to UBound(myArray)
   If IsAColorConstant(Left$(myArray(i), 1)) Then
       DisplayCorrectColor(Right$(myArray, Len(myArray) - 1), AppropriateColor)
   End If
Next i
Title: Re:colors
Post by: SPY-3 on August 24, 2004, 06:34 AM
thank you! :D even though i didnt use it thanks for posting code