auto-equip sugar shield using a consult?

Theraze

Active member
It should... doesn't it pull custom outfit names? <Goes to check>

Edit: True... I wanted it to parse those as well. Guess that's something to see if it's possible to work on. Might be, might not.
 

xKiv

Active member
And if you do *that*, you can actually be wearing up to 9 custom outfits at the same time.
 

Theraze

Active member
Nice... so, guess that will get ignored, since there isn't really a good way to give the response... Could give a "equipped_outfit(String)" variable if it's wanted... that shouldn't be too difficult to work, and would work with customs as well as official outfits.
 

Bale

Minion
Bale to the rescue!

Hey do any of you know if there's an ash function I can call to check to see if I'm currently wearing one of my custom outfits or not?

The function you're looking for is string_modifier("outfit")

PHP:
outfit_name = "my custom outfit"
if(string_modifier("outfit") == outfit_name)
   print("Yay!  I'm wearing "+ outfit_name +".", "green");
else print("I'm not wearing "+ outfit_name +".", "red");
 

slyz

Developer
Unfortunately, string_modifier("outfit") will only return something if you are wearing one of the outfits listed in outfits.txt. If you really wanted to, you could put outfits.txt in your /data folder and add you custom outfits at the end of the file (giving them fake IDs).
 
Top