• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Number to String conversion

Mergon

Well-known member
Ok, I am frustrated.

Is there a function in HL scripting that allows you to convert a number into a string?

I am trying to put a string together that includes a number.

i.e.: sString = "I am number " & iNumber & " in the line up." where iNumber is assigned it's value from a numeric field value.

I am either slow, or just plain stupid. I can't find such a function and its something so necessary that it has to be there . . . :confused:
 
It's automatic. The line of code you posted should work as written with just the variable there.
 
Since I now know thanks to you that its automatic, I went and took a closer look at my scripting. Lo & behond, a simple, stupid error . . . I forgot a set of close quotes on 2 lines

<sigh>

"To err is human, but to really foul things up takes a computer." :)
 
When creating a custom expression to give you a list of skills,

component.BaseSkill gives you a list of all skills.

What do you add to the expression to get a list of skills the hero is NOT proficient in?
 
If you're proficient in a skill, the Helper.Proficient flag is added. So, you need to check for the flag not being there.

Code:
component.BaseSkill & !Helper.Proficient
 
ShadowChemish:

Yea, that was a Topic I created. I just couldn't figure out '& !Helper.Proficient'. :)

Thanks for the reminder though.
 
ShadowChemish:

Yea, that was a Topic I created. I just couldn't figure out '& !Helper.Proficient'. :)

Thanks for the reminder though.
LOL I guess you did. I honestly didn't notice until I looked now. I just remember writing up a big post about Custom Expressions and how they work. I don't remember "who" was asking. :D
 
Back
Top