Objective condition hashing
dolphinspired opened this issue ยท 0 comments
Instead of doing comparisons like this:
Unit name is "Chicken" == "Chicken" ? PASS
Location name "Goldshire" == "Northshire" ? FAIL
What if we hash the expected values on compilation, so comparison would look like this?
Unit name is "Chicken" -> hash() -> "euv7e9rc" == "euv7e9rc" ? PASS
Location name "Goldshire" -> hash() -> "b7aejf9c" == "e7bje9c0" ? FAIL
Pro: Could maintain secrecy of objectives
Con: Larger compliation size (display text needs to be packaged with quest)
Con: Won't work for non-equality comparisons (like locations within a radius of a coordinate