With this method there is no need to place wp's except for the chest random wp and a trigger, which can be as big or small as you want.
Our secrets systems use only a trigger, and the system I suggested to the op would only need either a wp or a position. Both a wp and a trigger seem like overkill. The int is too, though I like the principle. Really, cleanest would be a string holding the position/s of secrets in the area, with space and comma seperators, e.g., "35.1,22.0,0.1 11.0,4.0,1.1". Then you could just set the var and run everything off the item. If GetLocalString(oArea, "Blah") != "", there's secret treasure in the area, and you can parse the string to figure out which is nearest. Also pretty easy to wipe all but one of the substrings with seperator " " if you only want one position valid per reset or whatever...
Funky
Modifié par FunkySwerve, 24 août 2013 - 10:30 .