Lesson 11
Good job
Lesson 12
Failed
Incorrect output
You cannot use bj_lastCreatedUnit.
vJASS is not magic. You need to set the unit into a variable,
and use that variable. That is how bj_lastCreatedUnit works.
When you create a unit in GUI, you would be calling BJ functions.
Those functions set bj_lastCreatedUnit to whatever unit is being
created. Nothing magical about it.
Lesson 13
Failed
Try again
An integer drops the decimals, it does not round
If there is a real and an integer together, the output is a real, not
an integer
Keeping these ideas in mind and then see what kind of answers you get
Lesson 14
Failed
* Verify position 999, which wasn't set, is 0
Position 999 is 0, not 999
As you got incorrect output here, this means that you put the wrong values in for the
positions.
Keep in mind the difference between a position and index. Recall player id vs player number.
Lesson 14 P2
Failed
When running the map, you won't see the rifleman as you set the incorrect position
Keep in mind the difference between a position and an index
Lesson 15
Failed
"12345" -> 12345 -> (3 + 6) -> 12945 -> "12945"
Convert the string into an integer
Retrieve the 3 out of that integeer
Add 6 to the 3
Combine back with integer (the left side and right side)
Convert the completed integer back into a string
Lesson 16
Failed
Check lesson 16 on escape characters
It states that tabs don't work. You still need to get the
spacing, so just use spaces
" " works doesn't it?
You also forgot the "->"
Lesson 17
Failed
You displayed the first one correctly, but you forgot the second one.
Lesson 19
Failed
Once again, keep in mind the difference between a position and an index
Also, could have just used "9"
This was the expected code:
globals
string array spaz
endglobals
//! runtextmacro Function()
set spaz[13] = "9"
call Print(R2S(S2I(spaz[13])))
//! runtextmacro End_Code()
Project 2
Failed