Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

$PAGETEXT := "%HEALTH"

11 years ago

Is there a way to make it so that health actually shows up in digits?

I only want it to work in $PAGETEXT. 

$PAGETEXT := "%HEALTH"

11 years ago

Don't put the quotes around it.

$PAGETEXT := "%HEALTH"

11 years ago

%%HEALTH%% according to http://chooseyourstory.com/help/articles/article.aspx?ArticleId=3850

 

$PAGETEXT := "%HEALTH"

11 years ago

I'm trying to make it so it says 

$PAGETEXT := "He hits you for" + %DAMAGE + "damage!" 

But there isn't a space between (for, the number of damage, and damage)

HOW DO I MAKE A SPACE HAPPEN KILLAROBOT?!!!

It shows up like this! "He hits you for0damage" 

Never mind, I got it.

Just put this.

$PAGETEXT := "He hits you for" + " " + %DAMAGE + " " + "damage

Thanks Killa. 

 

$PAGETEXT := "%HEALTH"

11 years ago

BUT WHAT IF I WANT A LINE BREAK? IN THE $PAGETEXT? I CAN'T DO <BR>. 

$PAGETEXT := "%HEALTH"

11 years ago

yes you can 

$PAGETEXT:= "stuff" + "<br>" + "more stuff"

$PAGETEXT := "%HEALTH"

11 years ago

Thanks. I thought that wouldn't work for some reason. 

Reason being when I use "%HEATH" in quotations it just shows up as %HEALTH, so it made me thought that anything you put in quotation will just should up as it is. 

$PAGETEXT := "%HEALTH"

11 years ago

What about when you want a certain variable in $PAGETEXT to be a different color? Is that doable? 

$PAGETEXT := "%HEALTH"

11 years ago

I think you can change text colour the same way as you do with html. 

$PAGETEXT := "%HEALTH"

11 years ago

You know rather than doing + " " you can just do this:

$PAGETEXT := "He hits you for " + %DAMAGE + " damage"

(Add the space to the original sentences)

$PAGETEXT := "%HEALTH"

11 years ago

No, I did not think of that. But you know with copy and paste, I guess either way could work out.