Invisible characters in ship names

From FreeSpace Wiki
Revision as of 16:45, 7 June 2005 by 81.182.81.212 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The wonders of invisible characters in names:

One of the handy features of FS2 is that its internal font does not support a lot of the high-ASCII characters, and just has a blank space instead of the actual symbol. This means that characters like ù, ø, or ¤ will appear as blank spaces inside of FS2 (but not Fred). This fact can be exploited to much benefit.

For example, say I want a ship to jump out and then jump back in later in the mission. Technically this is impossible, since a ship can only be created once in a mission (i.e. once the Aquitane has been created, if he leaves or is destroyed he cannot be created again). However, it is possible to have the Aquitane jump out of the mission, and then later have the Aquitane¤ jump in. In reality, the names are different, but to the player they will look identical.
Another example is the use of "counter ships". Say I want to give the player a directive to scan 7 of 10 cargo containers. There is no percent-ships-scanned sexp, so if I simply use the is-cargo-known-delay sexp, I will need to make a very complicated event covering every possible combination that would give me 70% scanned containers and 30% unscanned. But if I use counter ships, my life becomes much much easier:

First, I place 10 hostile stealth fighters far away from the field of battle, and name them things like ¤, ÿ, þ, ú, ø, and so on. Next, I set the departure cue of each one so that it leaves when one of the cargo containers is scanned (i.e. when Cargo 1 is scanned, ¤ departs, when Cargo 2 is scanned, ÿ departs). Now in the directive I can use the nice and easy percent-ship-departed sexp with all your counter ships listed underneath it as the condition for the sexp returning true. Meanwhile, because I used high-ASCII characters for names, the ships won't even appear on the player's ship list when he presses F3--as far as he knows, they don't even exist. Remember to check "No Arrival Music" or you'll have constant battle music playing, even in quiet parts of your mission.