|
o.-
|
When I used the dec, and put the number 119 in the box under it, and told it to convert, I got a player and a unit ID, which I was expecting. But then I re-converted BACK up. This time I got a new number, and hit convert button again, this time I got a new player with a new unit ID. Is that what you were trying to get me to do? |
|
Master of Temptation, Ruler of Aeronotics, and Secret Lover
|
Codevar fso = new ActiveXObject("Scripting.FileSystemObject"); var outputFileName = fso.GetParentFolderName(WScript.ScriptFullName) + "\\" + fso.GetBaseName(WScript.ScriptFullName) + ".txt"; var outputStream = fso.CreateTextFile(outputFileName, true); var DeathTable = 5808972; for(var turn = 0; turn < 1699; turn ++) { var Address = 0x0059CB8D + (turn * 336); var DeathOffset = Address - DeathTable; var UnitID = Math.floor(DeathOffset /48 ); var PlayerID = Math.floor((DeathOffset - (UnitID*48 )) /4) + 1; // 1-based var ByteOffset = Address & 3; outputStream.WriteLine("Deaths(P" + PlayerID + ", Exactly, 199, " + UnitID + ");"); } Save as dc.js and run. The output is the list of death conditions that you will have to use with SCMD. Good luck with that. It should work, but Im tired. ![]() ![]() ![]() ![]() ![]() ![]() |
|
Master of Temptation, Ruler of Aeronotics, and Secret Lover
|
1 more question. How would you change it so that it does that for player 2? . To lazy to do it manually. Thats great for conditions, but now I have to manually insert each of them into a trigger... cause I have other conditions I need...what those conditions do is check units, regardless of player ownership. The P7 refers to the extended unit's death. The conditions are checking every unit to see if its firing a spell (which I believe I checked for dark swarm specifically). So, changing them to P2 is not only pointless, but would not read what you wnated. And yes, you're going to have to do the rest yourself .SCMD is starcraft map draft, which is what your going to use if you want to use these easily. ![]() ![]() ![]() ![]() ![]() ![]() |