Coding help

retroPacifist
10 Nov 2016, 22:54

In my game, I have the line of code:

"<font color="HEX CODE"">skatingHeliophile [SH]</font color> began pestering " + (player.chumhandlefirst) + (player.chumhandlelast) + " [" + (player.chumhuandleinitials) + "]"

My variables are all set, but when I paste the code into a message, it doesn't set the attributes and attributes, just bracketed text. But when I put the code into an expression, it give me an error because of the < or > or something.


hegemonkhan
11 Nov 2016, 00:06

I would really recommend downloading notepad++ (it's free), if you don't have a good coding/editing software already:

https://notepad-plus-plus.org/

as it will color code, making it easier to read, write, and trouble-shoot your code (and/or others' code), as well have a lot of format/typing/editing abilities, I still need to learn to use, lol. It also has the line and character cursor positioning count, like with microsoft word and other such text software (which obviously is useful for finding errors in your code from the error messages as they give the line and character count of the issue/error) Also, if you're interested in learning more coding and the languages, notepad++, has a lot of them.

if you download and use notepad++, when you open it up, for quest coding, at the top menu bar, under 'languages', choose 'XML', as quest's own 'aslx' seems to have no thus far noticed differences, at least for me.


OurJud
11 Nov 2016, 16:30

retroPacifist, why have you asked the exact same question in three different threads?

We're not all at your beck and call and if people don't reply it's either because they don't know the answer or have other things to do at the time.

Pestering such as this is the quickest way to get yourself ignored for good, at least by me.


hegemonkhan
12 Nov 2016, 12:30

we probably will need to see your entire game code in order to track down what is wrong... but, maybe if you just post that section of code, expanded: post the entire mass of code block that has that line of code, and maybe the issue will jsut be here... otehrwise, we'll need to see your entire game code.


retroPacifist
12 Nov 2016, 12:39

Ah my bad, I couldn't tell which ones were my questions or not. Sorry for the spam, and I did actually get a solution!


OurJud
12 Nov 2016, 14:06
retroPacifist:
Ah my bad, I couldn't tell which ones were my questions or not.

Your avatar and username along the post is your first clue.