Jennifer In Control
Jennifer In Control
Title:assign tests Sex: Female T Male T Trans T Require: Limits: ;This is just a quick test script for experimenting with the fancy new assign feature. Thanks for adding it, Liz!! ; ; assign:name1:2 assign:name2:1 assign:name3: name1 + name2 show: Hello, $name1. Also $name2! $name3 button: Neato! How about strings? assign:name1:'testy1' assign:name2:'testy2' assign:name3: name1 + name2 show: Hello, $name1. Also $name2! By the way, here is both of those strings combined with a plus sign! $name3 button: Neato! What if we subtracted strings, then? assign:name1:'testy1' assign:name2:'testy2' assign:name3: name1 - name2 show: You get a NaN. See? $name3 . I just displayed name3 before this. button: Okay. Can we use assign in if's? assign:name1:599 assign:name2:2 assign:name3: name1 - name2 assign:name4: name1*name2 if:(name1 > name2) show: Yes! This is set to show if 'name1' is > 'name2.' $name1 , $name2. Here's name3 by the way, subtracting name2 from name1. $name3. We can even multiply! $name4 fi: button: Huzzah! Now wait 2 seconds, using name2? $name2 wait: name2 show: Like that! button: Yay! I'm done for now. Thank you so much for the great feature, Liz! ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;