Invalid create instruction for 2 words


#1

I’m having trouble with creating a variable which is composed of 2 words.

The error I’m getting is: Invalid create instruction value must be a number, true/false, or a quoted string Doc Mitchell 40

My code looks like this:

Example
*create Doc Mitchell 40
   

#2

It has to be one word. You can use underscores as spaces, if you want: *create doc_mitchell 40


#3

The code only recognizes “Doc” as a variable.
Try this

*create docmitchell 40
*create docmitchellname "Doc Mitchell"

In the stats screen the relationship bar would look like this IIRC:

percent docmitchell $!{docmitchellname}

#4

But in the stats screen, it won’t show the underscore right ?


#5

Thanks, I’ll try that


#6

Not if you give it an alternate title, like this:

percent doc_mitchell Doc Mitchell


#7

Thanks, mate ! ( 20 char )


#8

The docmitchellname variable is only if the name ever changes in the stats.
Otherwise go with Lady luck’s code, and scratch that variable in total


#9

Ah ok ( 20 characters )