Now let's say I have a node-based climb system already in place, and I want to add a randomized-landing element to it. All the nodes already land to two specific spots - one fall and one success, linked to that specific node by its tag. But all the nodes and waypoint landings also have the same tagging convention and only are separated by coordinate numbers.
Is it possible to pull a partial string out of a tag already retrieved, such as the string sTag or the OBJECT_SELF's tag itself? Can I for instance make a switch statement that checks if a certain part of the tag is == X, or is there perhaps a function that can simply check the number of characters in a string and interact with it by removing any of nY characters from the string starting from the end and working your way back?
Edit: In other words, once I get the tag from OBJECT_SELF that is normally used to determine the landing coordinates for pass/fail, I subtract the end few characters (leaving only the floor coordinate) to create a base tag from which I can then randomize the landing, without adding new waypoints and minimal new checks.
Modifié par Sarcose, 09 février 2012 - 06:43 .





Retour en haut






