| 07-28-2003, 12:47 PM | #1 |
I am really in need of a string condition that reads Compares the map's Author with the string "Vx" And if it is not, the map creates an infinite loop. |
| 07-28-2003, 05:02 PM | #2 |
Unfortunately there is no way to read out the author via JASS. |
| 07-31-2003, 02:49 PM | #3 |
Usually it's TRIGSTR_003 but you will have to look into the w3s file of your map, cause I#m not quite sure Nevertheless some maps don't save the author name in the w3s file, but some do Don't know what it depends on |
| 08-01-2003, 11:56 AM | #4 |
That's all about I was talking about, how do I get a string from the string file to compare it with "Vx"?, it is the "3" in my map too, this is to protect my map so I don't care if other maps doesn't have author strings. And yes, I am a newb in this jass thing, but I will become better! , I learned mIRC scripting alone in 1 moth, and I even created my own addon. |
| 08-01-2003, 02:27 PM | #5 |
I have tested around with it. These strings are not read by calling a native and getting it as return value. Instead when you call certain natives that take a string, they replace TRIGSTR_001 and similar in the string with the string from the .wts file. No wonder I overlooked that. Because the string is only replaced when calling certain natives, it is not easy to make such a comparison. "TRIGSTR_003" == "Vx" does not work. But I found a way. call SetPlayerName(Player(11), "TRIGSTR_003")) sets the name of Player 12 to "Vx". Now that can be retrieved. if GetPlayerName(Player(11)) != "Vx" then set a[-1] = 1 endif If a is an array that should make the game crash if the TRIGSTR_003 is not "Vx". |
| 08-01-2003, 02:36 PM | #6 |
This Rocks, actually you invented a new way to protect maps! |
