[Adventurer] Ingredient Identification


#1

The level Ingredient Identification is available for testing!

It takes place in the dungeon, and is an experiment with introducing the concept of variables in a different way.

If you have any feedback or find any bugs in the level, please respond here!


#2

I like it a lot, I was just wondering why I couldn’t use hero.getCooldown(“bash”) I thought it would be a number but it didn’t complete the level, maybe because it would be 0. Anyway I like the level a lot. :grin:


#3

Finished the level. No bugs found.


#4

Same here (#Good level)


#5

For all these values the level didn’t pass

var alolol = "faults"; // OK
// var blolol = someVariableName;
// var blolol = hero.health;
var blolol = hero.distanceTo(Vector(0,0));
pet.say(blolol);

but the pet knows the right answer.


#6

If you define a variable as the same as another variable or used predefined functions that return values, the level says you fail.


#7

In the HINTS can be noted that these pots can contain only strings and numbers. The level passes if you put in a variable logical true and fails with false . If your code is:

var someVariableName = "a string";
var lolol = 42;
var olol = 'ooh';
var lolol = true;
pet.say(lolol);


I like the idea as introduction to variables, but the level needs fine-tuning.


#8

Thanks for all of the feedback!

I fixed the level so it will accept falsey values.


#9

var same_var = “a string”;
var same_var = 42;
var same_var = true;
var same_var = false;

Is that expected?
ps:
I have a suggestion for making the level less error-prone and instructive for beginners.
Enforced unique declaration of variable. Pots contain: first: numeric value; second: string; third: Boolean value; fourth: null

var varStr = "a string";
var varNum = 42;
var varBool = true;
var varNull = null;

#10

I really like the funny variables you put in this level. :wink:


#11
var func = function() {
    hero.say("yeah");
};

and
var arr = {firstName: "Bob", lastName: "Zealot"};
are both invalid, not sure if it’s a bug or if anonymous functions and associative arrays just aren’t implimented in CC.


#12

image

Bob :slight_smile: anonymous functions are implemented!


#13

Cool nice! :stuck_out_tongue: