Creating a stat based on two strings

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: Creating a stat based on two strings

Postby miljön » Mon Nov 10, 2014 12:36 pm

Can i add somehow different colors into that expression format( '{1}{2}', if(...), if(...) ) ? For example {1} is always blue, {2} always red?
miljön
 
Posts: 40
Joined: Tue Feb 18, 2014 9:26 am

Re: Creating a stat based on two strings

Postby kraada » Mon Nov 10, 2014 12:40 pm

No you have to do colors on the Colors page. You can create rules there based on anything you could use in that format expression though so it should actually be easier than setting up a very complicated nested if() statement.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Creating a stat based on two strings

Postby 4StarGen » Mon Nov 10, 2014 1:21 pm

kraada I don't think you understand it correctly (or maybe it's just me)...

He want to create a single stat and color part of the strings in different ways... I don't think it is possible, he have to create many stats each one for a color

@miljön, you have a PM
4StarGen
 
Posts: 955
Joined: Sat Mar 08, 2014 6:58 am

Re: Creating a stat based on two strings

Postby miljön » Tue Nov 11, 2014 8:15 am

"He want to create a single stat and color part of the strings in different ways..." that was my plan :) That's why i thought i could maybe do it somehow in the format() function. @4StarGen: got it, will add you as soon as i am back from my trip
miljön
 
Posts: 40
Joined: Tue Feb 18, 2014 9:26 am

Previous

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: No registered users and 57 guests

cron