OSDN Git Service

スクリプト半分の実装やっと終わり
authorKillery <Killery@kiritani-no-mac-mini.local>
Sun, 20 Sep 2015 03:05:10 +0000 (12:05 +0900)
committer桐谷 諭史 <Killery@kiritani-no-Mac-mini.local>
Sun, 20 Sep 2015 03:05:10 +0000 (12:05 +0900)
15 files changed:
Awars III.xcodeproj/project.pbxproj
Awars III/Awars III-Info.plist
Awars III/FieldScene.h
Awars III/FieldScene.m
Awars III/FieldView.h
Awars III/FieldView.m
Awars III/LevelList.h [new file with mode: 0644]
Awars III/LevelList.m [new file with mode: 0644]
Awars III/MapEditor.h
Awars III/MapEditor.m
Awars III/MapView.m
Awars III/ScenarioList.h
Awars III/ScenarioList.m
Awars III/Title.m
Awars III/en.lproj/MainMenu.xib

index 76b1501..5ca3309 100755 (executable)
@@ -16,7 +16,6 @@
                C60E05AA166B143C003D5239 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = C60E05A8166B143C003D5239 /* Credits.rtf */; };
                C60E05AD166B143C003D5239 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C60E05AC166B143C003D5239 /* AppDelegate.m */; };
                C60E05B0166B143C003D5239 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = C60E05AE166B143C003D5239 /* MainMenu.xib */; };
-               C60E05B8166B143D003D5239 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C60E05B7166B143D003D5239 /* SenTestingKit.framework */; };
                C60E05B9166B143D003D5239 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C60E0599166B143C003D5239 /* Cocoa.framework */; };
                C60E05C1166B143D003D5239 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C60E05BF166B143D003D5239 /* InfoPlist.strings */; };
                C60E05C4166B143D003D5239 /* Awars_IIITests.m in Sources */ = {isa = PBXBuildFile; fileRef = C60E05C3166B143D003D5239 /* Awars_IIITests.m */; };
                C6AA2925188489520083001C /* LoadChipList.m in Sources */ = {isa = PBXBuildFile; fileRef = C6AA2924188489520083001C /* LoadChipList.m */; };
                C6AD18B3169D0A0100783718 /* Gallery.m in Sources */ = {isa = PBXBuildFile; fileRef = C6AD18B2169D0A0100783718 /* Gallery.m */; };
                C6AD18B7169D1E9900783718 /* セレクター.png in Resources */ = {isa = PBXBuildFile; fileRef = C6AD18B6169D1E9900783718 /* セレクター.png */; };
+               C6B6D9361B942B200073242D /* LevelList.m in Sources */ = {isa = PBXBuildFile; fileRef = C6B6D9351B942B200073242D /* LevelList.m */; };
                C6BCF51A169D575900DC5D53 /* タイトル.png in Resources */ = {isa = PBXBuildFile; fileRef = C6BCF519169D575900DC5D53 /* タイトル.png */; };
                C6C3697E189148FE00A10A87 /* lc24.png in Resources */ = {isa = PBXBuildFile; fileRef = C6C3697D189148FE00A10A87 /* lc24.png */; };
                C6C6685E1A95C5C6006BAECB /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C6C6685D1A95C5C6006BAECB /* Images.xcassets */; };
                C60E05AB166B143C003D5239 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
                C60E05AC166B143C003D5239 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
                C60E05AF166B143C003D5239 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = "<group>"; };
-               C60E05B6166B143D003D5239 /* Awars IVTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Awars IVTests.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
-               C60E05B7166B143D003D5239 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; };
+               C60E05B6166B143D003D5239 /* Awars IVTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Awars IVTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
                C60E05BE166B143D003D5239 /* Awars IIITests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Awars IIITests-Info.plist"; sourceTree = "<group>"; };
                C60E05C0166B143D003D5239 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
                C60E05C2166B143D003D5239 /* Awars_IIITests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Awars_IIITests.h; sourceTree = "<group>"; };
                C6AD18B1169D0A0000783718 /* Gallery.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Gallery.h; sourceTree = "<group>"; };
                C6AD18B2169D0A0100783718 /* Gallery.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Gallery.m; sourceTree = "<group>"; };
                C6AD18B6169D1E9900783718 /* セレクター.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "セレクター.png"; sourceTree = "<group>"; };
+               C6B6D9341B942B200073242D /* LevelList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LevelList.h; sourceTree = "<group>"; };
+               C6B6D9351B942B200073242D /* LevelList.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = LevelList.m; sourceTree = "<group>"; };
                C6BCF519169D575900DC5D53 /* タイトル.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "タイトル.png"; sourceTree = "<group>"; };
                C6C3697D189148FE00A10A87 /* lc24.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = lc24.png; sourceTree = "<group>"; };
                C6C6685D1A95C5C6006BAECB /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
                        isa = PBXFrameworksBuildPhase;
                        buildActionMask = 2147483647;
                        files = (
-                               C60E05B8166B143D003D5239 /* SenTestingKit.framework in Frameworks */,
                                C60E05B9166B143D003D5239 /* Cocoa.framework in Frameworks */,
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        isa = PBXGroup;
                        children = (
                                C60E0595166B143C003D5239 /* Awars IV.app */,
-                               C60E05B6166B143D003D5239 /* Awars IVTests.octest */,
+                               C60E05B6166B143D003D5239 /* Awars IVTests.xctest */,
                        );
                        name = Products;
                        sourceTree = "<group>";
                                C623C1ED1B26784600ADEDAF /* AVKit.framework */,
                                C623C1EB1B26783F00ADEDAF /* AVFoundation.framework */,
                                C60E0599166B143C003D5239 /* Cocoa.framework */,
-                               C60E05B7166B143D003D5239 /* SenTestingKit.framework */,
                                C60E059B166B143C003D5239 /* Other Frameworks */,
                        );
                        name = Frameworks;
                                C6D43FFF16B5DFC4003C9C53 /* ScenarioEditor.m */,
                                C6691617182B4F6600CB4D2A /* StandView.h */,
                                C6691618182B4F6600CB4D2A /* StandView.m */,
+                               C6B6D9341B942B200073242D /* LevelList.h */,
+                               C6B6D9351B942B200073242D /* LevelList.m */,
                        );
                        name = Scenario;
                        sourceTree = "<group>";
                        );
                        name = "Awars IVTests";
                        productName = "Awars IIITests";
-                       productReference = C60E05B6166B143D003D5239 /* Awars IVTests.octest */;
-                       productType = "com.apple.product-type.bundle.ocunit-test";
+                       productReference = C60E05B6166B143D003D5239 /* Awars IVTests.xctest */;
+                       productType = "com.apple.product-type.bundle.unit-test";
                };
 /* End PBXNativeTarget section */
 
                C60E058C166B143C003D5239 /* Project object */ = {
                        isa = PBXProject;
                        attributes = {
+                               LastTestingUpgradeCheck = 0700;
                                LastUpgradeCheck = 0450;
                                ORGANIZATIONNAME = Killery;
                        };
                                C6E8DA29167C85EE00BFEC32 /* ChipView.m in Sources */,
                                C6E8DA2C167C860B00BFEC32 /* SeedView.m in Sources */,
                                C6E8DA2F167C863500BFEC32 /* SChipView.m in Sources */,
+                               C6B6D9361B942B200073242D /* LevelList.m in Sources */,
                                C6E8DA36167C98D800BFEC32 /* MapChipList.m in Sources */,
                                C6E8DA71167E787300BFEC32 /* BuildChipList.m in Sources */,
                                C6E8DA78167F34F700BFEC32 /* UnitChipList.m in Sources */,
                        buildSettings = {
                                BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Awars III.app/Contents/MacOS/Awars III";
                                COMBINE_HIDPI_IMAGES = YES;
-                               FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
+                               FRAMEWORK_SEARCH_PATHS = (
+                                       "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
+                                       "$(inherited)",
+                               );
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                                GCC_PREFIX_HEADER = "Awars III/Awars III-Prefix.pch";
                                INFOPLIST_FILE = "Awars IIITests/Awars IIITests-Info.plist";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                TEST_HOST = "$(BUNDLE_LOADER)";
-                               WRAPPER_EXTENSION = octest;
                        };
                        name = Debug;
                };
                        buildSettings = {
                                BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Awars III.app/Contents/MacOS/Awars III";
                                COMBINE_HIDPI_IMAGES = YES;
-                               FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
+                               FRAMEWORK_SEARCH_PATHS = (
+                                       "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
+                                       "$(inherited)",
+                               );
                                GCC_PRECOMPILE_PREFIX_HEADER = YES;
                                GCC_PREFIX_HEADER = "Awars III/Awars III-Prefix.pch";
                                INFOPLIST_FILE = "Awars IIITests/Awars IIITests-Info.plist";
                                PRODUCT_NAME = "$(TARGET_NAME)";
                                TEST_HOST = "$(BUNDLE_LOADER)";
-                               WRAPPER_EXTENSION = octest;
                        };
                        name = Release;
                };
index 21f0809..fb89847 100755 (executable)
@@ -15,7 +15,7 @@
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
-       <string>0.54</string>
+       <string>0.55</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
index 5d4cb1a..1badfda 100755 (executable)
@@ -31,6 +31,10 @@ typedef struct _UNIT{
     int y;
     int z;
     
+    int ix;
+    int iy;
+    int iz;
+    
     NSImage *img;
     
     bool loadChipFlag;
@@ -91,6 +95,17 @@ typedef struct _PLAYER{
 
 }PLAYER;
 
+typedef struct _UNITPOINT{
+
+    struct _UNITPOINT *next;
+    
+    int x;
+    int y;
+
+}UNITPOINT;
+
+double eventTime;
+
 PLAYER P[10];
 
 UNIT *U;
@@ -131,6 +146,9 @@ UNITCHIP CSLUC;
 UNIT *CSLU;
 UNIT *CSLUorigin;
 
+
+bool battleSetUp;
+bool battleSetUpIgnore;
 bool battleRdy;
 bool pushStanbyFlag;
 
@@ -235,6 +253,20 @@ bool stageClearFlag2;
 bool backTitleFlag;
 bool backTitleFlag2;
 
+int cntTimerMin;
+int cntTimerSec;
+
+bool coolTime;
+
+int waypR[1002][1002];
+int objeR[1002][1002];
+UNITPOINT *postUnitPoint;
+UNITPOINT *postUnitPointTop;
+bool unitPointMakeSureFlag;
+bool unitPointMakeSureFlag2;
+
+UNITPOINT *UP;
+UNITPOINT *UPT;
 @interface FieldScene : NSObject
 {
     NSTimer *time;
index 6ba016f..cb1f50c 100755 (executable)
@@ -73,7 +73,9 @@
         P[1].food = 500;
         P[1].money = 500;
         
+        eventTime = 0;
         
+        [self HensuuLoad];
     }
     
 
     bugFixFlag1 = false;
     bugFixFlag2 = false;
     bugFixFlag3 = false;
+    
+    eventTime = 0;
+    coolTime = true;
 }
 
 -(void)EventLoopFS:(NSTimer*)time{
     
+    if(coolTime){
+        static int lmao = 0;
+        
+        lmao++;
+        
+        if(lmao > 50){
+            coolTime = false;
+            lmao = 0;
+        }
+    
+    }
+    
+    
+    
+    
     if(setBattleModeFlag){
         if(!battleReadyUpFlag){battleReadyUpFlag = true;
         [battleReadyUpPN1 setStringValue:P[0].name];
         }
         [self setBattlePanel];
     }
+    if(battleSetUp){
+        if(!battleSetUpIgnore){
+        [self AttackDisplay];
+        
+        windowPoint.x = [mapWindow frame].origin.x;
+        windowPoint.y = [mapWindow frame].origin.y;
+        [battleWindow setFrameOrigin:windowPoint];
+        [battleWindow makeKeyAndOrderFront:nil];
+        battleRdy = true;
+        battleSetUp = false;
+        }
+    }
+    
+    
     if(battleRdy){
         [self DisplayMessage];
     }
         MS.D = MSDtop;
         
         cpuTurnEndFlag = false;
+        battleSetUpIgnore = false;
     }
 w000p:
     
@@ -1963,12 +1998,15 @@ w000p:
         case MESSAGE_FLAG:
             messageDialog = true;
             [self setMessage:MS0];
+            coolTime = true;
             break;
         case SELECTION_FLAG:
             MS0 = [self setSelection:MS0];
+            coolTime = true;
             break;
         case INPUTNUMBER_FLAG:
             MS0 = [self setDefault:MS0];
+            coolTime = true;
             break;
     
         case SWITCH_FLAG:
@@ -1981,7 +2019,7 @@ w000p:
             MS0 = [self setDefault:MS0];
             break;
         case BRANCH_FLAG:
-            MS0 = [self setDefault:MS0];
+            MS0 = [self setBranch:MS0];
             break;
         case LABEL_FLAG:
             MS0 = [self setLabel:MS0];
@@ -2006,6 +2044,7 @@ w000p:
             break;
         case GAMEOVER_FLAG:
             MS0 = [self setGameOver:MS0];
+            coolTime = true;
             break;
         case STAGECLEAR_FLAG:
             MS0 = [self setStageClear:MS0];
@@ -2286,6 +2325,7 @@ w000p:
         U->C.S_C.WT =  floor(U->C.S_M.WT/2 + 0.5);
     }
     
+    eventTime++;
     
     BTop = B;
     while (B) {
@@ -2566,14 +2606,30 @@ w000p:
                 
                 U->next = calloc(1, sizeof(UNIT));
                 U->atkRange = 0;
+                
+                U->ix = U->x;
+                U->iy = U->y;
+                U->iz = 0;
+                
+                UNIT *Ucrnt = U;
+                
+                U = UTop;
+                while(U){
+                    if(Ucrnt->x == U->x && Ucrnt->y == U->y){
+                        Ucrnt->iz++;
+                    }
+                    U = U->next;
+                }
+                
+                U = Ucrnt;
             }
         
         }
     }
     
     if(U) U->next = NULL;
+    
     U = UTop;
-
 }
 
 -(void)initBuildStatus{
@@ -7130,23 +7186,18 @@ SKIP1:
 
 -(IBAction)battleStart:(id)sender{
     battleFlag = false;
-    battleRdy = true;
+    battleSetUp = true;
     battleSet1Flag = false;
     battleSet2Flag = false;
     battleSettingFlag = false;
-    [self AttackDisplay];
-    
-    windowPoint.x = [mapWindow frame].origin.x;
-    windowPoint.y = [mapWindow frame].origin.y;
-    [battleWindow setFrameOrigin:windowPoint];
-    [battleWindow makeKeyAndOrderFront:nil];
+
     [battlePanel close];
 }
 
 
 -(void)battleStartCPU{
     battleFlag = false;
-    battleRdy = true;
+    battleSetUp = true;
     battleSet1Flag = false;
     battleSet2Flag = false;
     battleSettingFlag = false;
@@ -7535,197 +7586,1420 @@ SKIP1:
     return MS0;
 }
 
--(MAPSCRIPT0*)setLabelJump:(MAPSCRIPT0*)MS0{
-    
-    MAPSCRIPT0 *CRMS0 = MS0;
-    MS0 = MSDP0top;
-    while(MS0){
-        MS0->endFlag = false;
-        MS0 = MS0->next;
-    }
-    MS0 = CRMS0;
-    MS0->endFlag = true;
-
-    MS0 = MSDP0top;
-    
-    if([CRMS0->labelJump isEqualToString:MS0->label]){
-        MS0->endFlag = false;
-    }else{
-        
-        while (MS0) {
-            
-            if(MS0->next)
-            if([CRMS0->labelJump isEqualToString:MS0->next->label])
-                break;
-            
-            MS0->endFlag = true;
-                MS0 = MS0->next;
-        }
-    }
-    if(!MS0){
-        MS0 = CRMS0;
-        return MS0;
-    }
-    
-    return MS0;
-}
-
--(MAPSCRIPT0*)setDefault:(MAPSCRIPT0*)MS0{
-    
-    MS0->endFlag = true;
-    return MS0;
-}
-
--(MAPSCRIPT0*)setLabel:(MAPSCRIPT0*)MS0{
-
-    MS0->endFlag = true;
-    return MS0;
-}
+-(MAPSCRIPT0*)setBranch:(MAPSCRIPT0*)MS0{
 
--(MAPSCRIPT0*)setComment:(MAPSCRIPT0*)MS0{
+    MAPSCRIPT0 *CRMS0 = MS0;
+    bool branchEndFlag = false;
+    bool branchSuceedFlag = false;
+    bool trueFlag = true;
     
-    MS0->endFlag = true;
-    return MS0;
-}
-
-
--(MAPSCRIPT0*)setSelection:(MAPSCRIPT0*)MS0{
     
-    static bool initFlag = false;
+    if(MS0->endFlag)
+        return MS0;
     
-    if(!initFlag){
-        initFlag = true;
+    if(1){
         
-        MAPSCRIPT2 *MS2top = MS0->S2;
-        
-        slctPoint.x = [mapWindow frame].origin.x + 100;
-        slctPoint.y = [mapWindow frame].origin.y + 300;
+        if(MS0->S4.suicchiFlag){
+            if(MS0->S4.suicchiONOFF == 0){
+                if(MS0->S4.suicchi)
+                for (int i = 0;*(MS0->S4.suicchi + i);i++) {
+                    if(!Suicchi[*(MS0->S4.suicchi + i)]){
+                        trueFlag = false;
+                    }
+                }
+            }else{
+                if(MS0->S4.suicchi)
+                    for (int i = 0;*(MS0->S4.suicchi + i);i++) {
+                        if(Suicchi[*(MS0->S4.suicchi + i)]){
+                            trueFlag = false;
+                        }
+                    }
+            }
+        }
         
-        [slctBtn1 setHidden:YES];
-        [slctBtn2 setHidden:YES];
-        [slctBtn3 setHidden:YES];
-        [slctBtn4 setHidden:YES];
-        [slctBtn5 setHidden:YES];
-        [slctBtn6 setHidden:YES];
-        [slctBtn7 setHidden:YES];
-        [slctBtn8 setHidden:YES];
-        [slctBtn9 setHidden:YES];
+        if(MS0->S4.hensuFlag){
         
-        for(int i = 1;MS0->S2;i++){
+            if(MS0->S4.teisuFlag){
+                if(MS0->S4.hensuType == 0){
+                    if([Hensuu[MS0->S4.hensu1] intValue] == MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 1){
+                    if([Hensuu[MS0->S4.hensu1] intValue] >= MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 2){
+                    if([Hensuu[MS0->S4.hensu1] intValue] <= MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 3){
+                    if([Hensuu[MS0->S4.hensu1] intValue] > MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 4){
+                    if([Hensuu[MS0->S4.hensu1] intValue] < MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 5){
+                    if([Hensuu[MS0->S4.hensu1] intValue] != MS0->S4.teisuValue){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
             
-            if(i == 1){
-                [slctBtn1 setTitle:MS0->S2->selection];
-                [slctBtn1 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 60) display:YES];
-            }
-            if(i == 2){
-                [slctBtn2 setTitle:MS0->S2->selection];
-                [slctBtn2 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 90) display:YES];
-            }
-            if(i == 3){
-                [slctBtn3 setTitle:MS0->S2->selection];
-                [slctBtn3 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 120) display:YES];
+            }if(MS0->S4.hensu2flag){
+                if(MS0->S4.hensuType == 0){
+                    if([Hensuu[MS0->S4.hensu1] isEqualToString:Hensuu[MS0->S4.hensu2]]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 1){
+                    if([Hensuu[MS0->S4.hensu1] intValue] >= [Hensuu[MS0->S4.hensu2] intValue]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 2){
+                    if([Hensuu[MS0->S4.hensu1] intValue] <= [Hensuu[MS0->S4.hensu2] intValue]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 3){
+                    if([Hensuu[MS0->S4.hensu1] intValue] > [Hensuu[MS0->S4.hensu2] intValue]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 4){
+                    if([Hensuu[MS0->S4.hensu1] intValue] < [Hensuu[MS0->S4.hensu2] intValue]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.hensuType == 5){
+                    if(![Hensuu[MS0->S4.hensu1] isEqualToString:Hensuu[MS0->S4.hensu2]]){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
             }
             
-            if(i == 4){
-                [slctBtn4 setTitle:MS0->S2->selection];
-                [slctBtn4 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 150) display:YES];
-            }
-            if(i == 5){
-                [slctBtn5 setTitle:MS0->S2->selection];
-                [slctBtn5 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 180) display:YES];
-            }
-            if(i == 6){
-                [slctBtn6 setTitle:MS0->S2->selection];
-                [slctBtn6 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 210) display:YES];
-            }
-            if(i == 7){
-                [slctBtn7 setTitle:MS0->S2->selection];
-                [slctBtn7 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 240) display:YES];
-            }
-            if(i == 8){
-                [slctBtn8 setTitle:MS0->S2->selection];
-                [slctBtn8 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 270) display:YES];
-            }
-            if(i == 9){
-                [slctBtn9 setTitle:MS0->S2->selection];
-                [slctBtn9 setHidden:NO];
-                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 300) display:YES];
-            }
-            slctBtnNum = i;
-            if(slctBtnNum > 9)
-                slctBtnNum = 9;
-            MS0->S2 = MS0->S2->next;
-        }
-        MS0->S2 = MS2top;
-        
-        
-        
-        [selectionWindow makeKeyAndOrderFront:nil];
-    }
-    
-    
-    if(slctedBtnNum > 0){
-        MAPSCRIPT0 *CRMS0 = MS0;
-        
-        MS0 = MSDP0top;
-        while(MS0){
-            MS0->endFlag = false;
-            MS0 = MS0->next;
-        }MS0 = CRMS0;
-        
-        MAPSCRIPT2 *MS2top = MS0->S2;
-        MAPSCRIPT2 *CRMS2;
-        
-        for(int i = 1;i < slctedBtnNum;i++){
-            MS0->S2 = MS0->S2->next;
         }
-            CRMS2 = MS0->S2;
-        
-        MS0->S2 = MS2top;
+        if(MS0->S4.timerFlag){
         
-        MS0 = MSDP0top;
-        if([CRMS2->labelJump isEqualToString:MS0->label]){
-            MS0->endFlag = false;
-        }else{
-            
-            while (MS0) {
+            if(MS0->S4.timerType == 0){
+                if(MS0->S4.timerMin <= cntTimerMin){
                 
-                if(MS0->next)
-                    if([CRMS2->labelJump isEqualToString:MS0->next->label])
-                        break;
+                }else if(MS0->S4.timerSec <= cntTimerSec && MS0->S4.timerMin <= cntTimerMin){
                 
-                MS0->endFlag = true;
-                MS0 = MS0->next;
+                }else{
+                    trueFlag = false;
+                }
+            
+            
+            
+            }else{
+                if(MS0->S4.timerMin >= cntTimerMin){
+                    
+                }else if(MS0->S4.timerSec >= cntTimerSec && MS0->S4.timerMin >= cntTimerMin){
+                    
+                }else{
+                    trueFlag = false;
+                }
+            
             }
         }
-        if(!MS0){
-            MS0 = CRMS0;
-            return MS0;
-        }
         
-        
-        MS0->endFlag = true;
-        initFlag = false;
-        slctedBtnNum = 0;
-        }
-    
-    return MS0;
-}
 
--(MAPSCRIPT0*)setAppearance:(MAPSCRIPT0*)MS0{
-    
-    MS3T = MS0->S3;
-    while(MS0->S3){
-        int x, y;
-        UNITCHIP u;
+        
+        if(MS0->S4.unitNumFlag){
+            int team0num = 0;
+            int team1num = 0;
+            int team2num = 0;
+            if(MS0->S4.team == 0){
+                UTop = U;
+                while (U) {
+                    if(U->team == 0)
+                        team0num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if(MS0->S4.unitNum == team0num){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if(MS0->S4.unitNum <= team0num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if(MS0->S4.unitNum >= team0num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+
+            
+            }else if(MS0->S4.team == 1){
+                UTop = U;
+                while (U) {
+                    if(U->team == 1)
+                        team1num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if(MS0->S4.unitNum == team1num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if(MS0->S4.unitNum <= team1num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if(MS0->S4.unitNum >= team1num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }else if(MS0->S4.team == 2){
+                UTop = U;
+                while (U) {
+                    if(U->team == 2)
+                        team2num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if(MS0->S4.unitNum == team2num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if(MS0->S4.unitNum <= team2num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if(MS0->S4.unitNum >= team2num){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }
+        
+        }
+        
+    
+
+        if(MS0->S4.unitTypeFlag && MS0->S4.unitNumFlag){
+            UNIT2 *sjt = MS0->S4.subj;
+            UNIT *chosen;
+            UNIT *chosenT;
+            int cntUnit = 0;
+            bool lmao;
+            while(MS0->S4.subj){
+                U = UTop;
+                while(U){
+                    if(MS0->S4.subj->x == U->ix && MS0->S4.subj->y == U->iy && U->iz == 1){
+                        if(chosen){
+                            chosen->next = calloc(1, sizeof(UNIT));
+                            if(!lmao){
+                                chosenT = chosen;
+                            }
+                            lmao = true;
+                            chosen = chosen->next;
+                        }
+                        if(!chosen){
+                            chosen = calloc(1, sizeof(UNIT));
+                        }
+                        chosen = U;
+                        
+                        if(!U->dead)
+                            cntUnit++;
+                    }
+                    U = U->next;
+                }U = UTop;
+                MS0->S4.subj = MS0->S4.subj->next;
+            }MS0->S4.subj = sjt;
+            chosen = chosenT;
+
+            int objeSCSunitCnt = 0;
+            
+            
+            int Unum = 0;
+            U = UTop;;
+            while (U) {
+                Unum++;
+                U = U->next;
+            }U = UTop;
+            
+            if(MS0->S4.objeFlag){
+                
+                UNIT2 *objeT = MS0->S4.obje;
+                
+                while (MS0->S4.obje) {
+                    
+                
+                
+                U = UTop;
+                while(U){
+                    for (int i = 0;i < 1002;i++) {
+                        for (int k = 0;k < 1002;k++) {
+                            objeR[i][k] = 0;
+                        }
+                    }
+                    [self checkPlaceHani:MS0->S4.objeRange+1 tX:MS0->S4.obje->y tY:MS0->S4.obje->x aMap:objeR u:U scsCnt:&objeSCSunitCnt];
+                    
+                    int Cnum = 0;
+                    
+                    for(int bx=1;bx<=chipWidth;bx++){
+                        for(int by=1;by<=chipHeight;by++){
+                            if(objeR[bx][by] != 999 && objeR[bx][by] > 0){
+                                
+                                if(objeR[U->x][U->y] > 0){
+                                    Cnum++;
+                                    if(Unum < Cnum) goto omfgUnitOver2;
+                                    
+                                    
+                                    
+                                    static bool okflag = true;
+                                    
+                                    if(UP)
+                                    {
+                                        if(!UPT){
+                                            UPT = UP;
+                                        }
+                                        
+                                        UP = UPT;
+                                        while (UP) {
+                                            if(UP->x == U->x && UP->y == U->y){
+                                                
+                                                break;
+                                            }else{
+                                                okflag = true;
+                                            }
+                                            
+                                            UP = UP->next;
+                                        }
+                                        
+                                    }
+                                    UP = UPT;
+                                    
+                                    if(!UP) UP = calloc(1, sizeof(UNITPOINT));
+                                    else if(UP){
+                                        while(UP->next) UP = UP->next;
+                                    }
+                                    if(okflag){
+                                        UP->x = U->x;
+                                        UP->y = U->y;
+                                        UP->next = calloc(1, sizeof(UNITPOINT));
+                                        okflag = false;
+                                        objeSCSunitCnt++;
+                                    }
+                                }
+                                
+                            }
+                        }
+                    }
+                    
+                omfgUnitOver2:
+                    UP = NULL;
+                    UPT = NULL;
+                    NSLog(@"%@, %d, %d", U->C.name, objeSCSunitCnt, objeR[0][0]);
+                    
+                    U = U->next;
+                }U = UTop;
+                    
+                    MS0->S4.obje = MS0->S4.obje->next;
+            }
+                MS0->S4.obje = objeT;
+            }
+            
+            
+            int team0num = 0;
+            int team1num = 0;
+            int team2num = 0;
+            if(MS0->S4.team == 0){
+                UTop = U;
+                while (U) {
+                    if(U->team == 0)
+                        team0num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team0num) && (MS0->S4.unitNum == cntUnit)
+                       && (MS0->S4.unitNum == objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum == team0num) && (MS0->S4.unitNum == cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team0num) && (MS0->S4.unitNum <= cntUnit)
+                       && (MS0->S4.unitNum <= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum <= team0num) && (MS0->S4.unitNum <= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team0num) && (MS0->S4.unitNum >= cntUnit)
+                       && (MS0->S4.unitNum >= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum >= team0num) && (MS0->S4.unitNum >= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+                
+                
+            }else if(MS0->S4.team == 1){
+                UTop = U;
+                while (U) {
+                    if(U->team == 1)
+                        team1num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team1num) && (MS0->S4.unitNum == cntUnit)
+                       && (MS0->S4.unitNum == objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum == team1num) && (MS0->S4.unitNum == cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team1num) && (MS0->S4.unitNum <= cntUnit)
+                       && (MS0->S4.unitNum <= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum <= team1num) && (MS0->S4.unitNum <= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team1num) && (MS0->S4.unitNum >= cntUnit)
+                       && (MS0->S4.unitNum >= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum >= team1num) && (MS0->S4.unitNum >= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }else if(MS0->S4.team == 2){
+                UTop = U;
+                while (U) {
+                    if(U->team == 2)
+                        team2num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team2num) && (MS0->S4.unitNum == cntUnit)
+                       && (MS0->S4.unitNum == objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum == team2num) && (MS0->S4.unitNum == cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team2num) && (MS0->S4.unitNum <= cntUnit)
+                       && (MS0->S4.unitNum <= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum <= team2num) && (MS0->S4.unitNum <= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team2num) && (MS0->S4.unitNum >= cntUnit)
+                       && (MS0->S4.unitNum >= objeSCSunitCnt)){
+                        
+                    }else if((MS0->S4.unitNum >= team2num) && (MS0->S4.unitNum >= cntUnit) && !MS0->S4.objeFlag){
+                    
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }
+        
+        
+        
+        
+        
+        
+        }
+        
+        
+        
+        
+        if(MS0->S4.placeFlag && MS0->S4.unitNumFlag){
+            int Unum = 0;
+            U = UTop;;
+            while (U) {
+                Unum++;
+                U = U->next;
+            }U = UTop;
+            
+            
+            
+                PLACEMENT *wpt = MS0->S4.wayp;
+                int waypCnt = 0;
+                int waypSCScnt = 0;
+                bool waypSCS = false;
+                int waypSCSunitCnt = 0;
+            
+            
+            
+                while (MS0->S4.wayp) {
+                    waypCnt++;
+                    
+                    
+                    
+                    
+                    if(MS0->S4.wayp->type == 0){
+                    U = UTop;
+                    while(U){
+                        if(MS0->S4.wayp->x == U->x && MS0->S4.wayp->y == U->y){
+                            waypSCScnt++;
+                            waypSCSunitCnt++;
+                            break;
+                        }
+                        U = U->next;
+                    }U = UTop;
+                        
+                    }else if(MS0->S4.wayp->type == 1){
+                        U = UTop;
+                        while(U){
+                            for (int i = 0;i < 1002;i++) {
+                                for (int k = 0;k < 1002;k++) {
+                                    waypR[i][k] = 0;
+                                }
+                            }
+                            [self checkPlaceHani:MS0->S4.wayp->z+1 tX:MS0->S4.wayp->y tY:MS0->S4.wayp->x aMap:waypR u:U scsCnt:&waypSCSunitCnt];
+                            
+                            int Cnum = 0;
+                            
+                            for(int bx=1;bx<=chipWidth;bx++){
+                                for(int by=1;by<=chipHeight;by++){
+                                    if(waypR[bx][by] != 999 && waypR[bx][by] > 0){
+                                        
+                                        if(waypR[U->x][U->y] > 0){
+                                            Cnum++;
+                                            if(Unum < Cnum) goto omfgUnitOver;
+                                            
+                                            
+
+                                            static bool okflag = true;
+                                            
+                                            if(UP)
+                                            {
+                                                if(!UPT){
+                                                    UPT = UP;
+                                                }
+                                                
+                                                UP = UPT;
+                                                while (UP) {
+                                                    if(UP->x == U->x && UP->y == U->y){
+                                                        
+                                                        break;
+                                                    }else{
+                                                        okflag = true;
+                                                    }
+                                                    
+                                                    UP = UP->next;
+                                                }
+                                            
+                                            }
+                                            UP = UPT;
+                                            
+                                            if(!UP) UP = calloc(1, sizeof(UNITPOINT));
+                                            else if(UP){
+                                                while(UP->next) UP = UP->next;
+                                            }
+                                            if(okflag){
+                                                UP->x = U->x;
+                                                UP->y = U->y;
+                                                UP->next = calloc(1, sizeof(UNITPOINT));
+                                                okflag = false;
+                                                waypSCSunitCnt++;
+                                            }
+                                        }
+                                        
+                                    }
+                                }
+                            }
+                            
+                        omfgUnitOver:
+                            UP = NULL;
+                            UPT = NULL;
+                            NSLog(@"%d", waypSCSunitCnt);
+                            
+                             U = U->next;
+                        }U = UTop;
+                    
+                    
+                    
+                    
+                    }else if(MS0->S4.wayp->type == 2){
+                        U = UTop;
+                        waypSCSunitCnt = 0;
+                        while(U){
+                            if((MS0->S4.wayp->x <= U->x) && (MS0->S4.wayp->x2 >= U->x) &&
+                               (MS0->S4.wayp->y <= U->y) && (MS0->S4.wayp->y2 >= U->y)){
+                                
+                                
+                                int Cnum = 0;
+                                
+                                if(1){
+                                    Cnum++;
+                                    if(Unum < Cnum) goto omfgUnitOver;
+                                    
+                                    
+                                    
+                                    static bool okflag = true;
+                                    
+                                    if(UP)
+                                    {
+                                        if(!UPT){
+                                            UPT = UP;
+                                        }
+                                        
+                                        UP = UPT;
+                                        while (UP) {
+                                            if(UP->x == U->x && UP->y == U->y){
+                                                
+                                                break;
+                                            }else{
+                                                okflag = true;
+                                            }
+                                            
+                                            UP = UP->next;
+                                        }
+                                        
+                                    }
+                                    UP = UPT;
+                                    
+                                    if(!UP) UP = calloc(1, sizeof(UNITPOINT));
+                                    else if(UP){
+                                        while(UP->next) UP = UP->next;
+                                    }
+                                    if(okflag){
+                                        UP->x = U->x;
+                                        UP->y = U->y;
+                                        UP->next = calloc(1, sizeof(UNITPOINT));
+                                        okflag = false;
+                                        waypSCScnt++;
+                                        waypSCSunitCnt++;
+                                    }
+                                }
+                                
+                                
+                                
+                                
+                            }
+                            U = U->next;
+                        }U = UTop;
+                    }
+                    
+                    MS0->S4.wayp = MS0->S4.wayp->next;
+                }MS0->S4.wayp = wpt;
+            NSLog(@"%d", waypSCSunitCnt);
+            
+            if(waypSCScnt >= waypCnt)
+                waypSCS = true;
+            
+            
+            
+            int team0num = 0;
+            int team1num = 0;
+            int team2num = 0;
+            if(MS0->S4.team == 0){
+                UTop = U;
+                while (U) {
+                    if(U->team == 0)
+                        team0num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team0num) && (MS0->S4.unitNum == waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team0num) && (MS0->S4.unitNum <= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team0num) && (MS0->S4.unitNum >= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+                
+                
+            }else if(MS0->S4.team == 1){
+                UTop = U;
+                while (U) {
+                    if(U->team == 1)
+                        team1num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team1num) && (MS0->S4.unitNum = waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team1num) && (MS0->S4.unitNum <= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team1num) && (MS0->S4.unitNum >= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }else if(MS0->S4.team == 2){
+                UTop = U;
+                while (U) {
+                    if(U->team == 2)
+                        team2num++;
+                    U = U->next;
+                }U = UTop;
+                
+                if(MS0->S4.unitType == 0){
+                    if((MS0->S4.unitNum == team2num) && (MS0->S4.unitNum == waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 1){
+                    if((MS0->S4.unitNum <= team2num) && (MS0->S4.unitNum <= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitType == 2){
+                    if((MS0->S4.unitNum >= team2num) && (MS0->S4.unitNum >= waypSCSunitCnt)){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }
+            }
+            
+        }
+        
+        
+        if(MS0->S4.unitCMDflag){
+            
+            if(MS0->S4.team == 0){
+                
+                if(!MS0->S4.subj && !MS0->S4.obje){
+                
+                if(MS0->S4.unitCMD == 0){
+                    if(unitMoveEndFlag){
+                        
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitCMD == 1){
+                    if(battleSetUp){
+                        battleSetUpIgnore = true;
+                    }else{
+                        trueFlag = false;
+                    }
+                }else if(MS0->S4.unitCMD == 2){
+                    
+                }
+                
+                
+                }else if(MS0->S4.subj && !MS0->S4.obje){
+                    
+                    
+                    
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1){
+                    
+                    if(MS0->S4.unitCMD == 0){
+                        if(unitMoveEndFlag){
+                            
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 1){
+                        if(battleSetUp){
+                            battleSetUpIgnore = true;
+                        }else{
+                            trueFlag = false;
+                    
+                        }
+                   
+                    }else if(MS0->S4.unitCMD == 2){
+                        
+                    
+                    }
+                    }
+                    
+                    
+                
+                    
+                }else if(MS0->S4.subj && MS0->S4.obje){
+                    
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       Utarget->ix == MS0->S4.obje->x && Utarget->iy == MS0->S4.obje->y && Utarget->iz == 1){
+                    
+                    if(MS0->S4.unitCMD == 0){
+                        if(unitMoveEndFlag){
+                            
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 1){
+                        if(battleSetUp){
+                            battleSetUpIgnore = true;
+                        }else{
+                            trueFlag = false;
+                            
+                        }
+                        
+                    }else if(MS0->S4.unitCMD == 2){
+                        
+                        
+                    }
+                    
+                    
+                    
+                    
+                    
+                    }
+                }if(MS0->S4.subj && MS0->S4.build){
+                
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       BC[buildNum[Uselected->x][Uselected->y]].nameID == MS0->S4.build->C->nameID){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                
+                
+                    }
+                }
+            
+            }else if(MS0->S4.team == 1){
+                if(!MS0->S4.subj && !MS0->S4.obje){
+                    
+                    if(MS0->S4.unitCMD == 0){
+                        if(unitMoveEndFlag){
+                            
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 1){
+                        if(battleSetUp){
+                            battleSetUpIgnore = true;
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 2){
+                        
+                    }
+                    
+                    
+                }else if(MS0->S4.subj && !MS0->S4.obje){
+                    
+                    
+                    
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                    }
+                    
+                    
+                    
+                    
+                }else if(MS0->S4.subj && MS0->S4.obje){
+                    
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       Utarget->ix == MS0->S4.obje->x && Utarget->iy == MS0->S4.obje->y && Utarget->iz == 1){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                        
+                        
+                        
+                        
+                        
+                    }
+                }if(MS0->S4.subj && MS0->S4.build){
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       BC[buildNum[Uselected->x][Uselected->y]].nameID == MS0->S4.build->C->nameID){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                        
+                        
+                    }
+                }
+            }else if(MS0->S4.team == 2){
+                if(!MS0->S4.subj && !MS0->S4.obje){
+                    
+                    if(MS0->S4.unitCMD == 0){
+                        if(unitMoveEndFlag){
+                            
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 1){
+                        if(battleSetUp){
+                            battleSetUpIgnore = true;
+                        }else{
+                            trueFlag = false;
+                        }
+                    }else if(MS0->S4.unitCMD == 2){
+                        
+                    }
+                    
+                    
+                }else if(MS0->S4.subj && !MS0->S4.obje){
+  
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                    }
+                
+                }else if(MS0->S4.subj && MS0->S4.obje){
+                    
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       Utarget->ix == MS0->S4.obje->x && Utarget->iy == MS0->S4.obje->y && Utarget->iz == 1){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+
+                    }
+                }if(MS0->S4.subj && MS0->S4.build){
+                    
+                    if(Uselected->ix == MS0->S4.subj->x && Uselected->iy == MS0->S4.subj->y && Uselected->iz == 1 &&
+                       BC[buildNum[Uselected->x][Uselected->y]].nameID == MS0->S4.build->C->nameID){
+                        
+                        if(MS0->S4.unitCMD == 0){
+                            if(unitMoveEndFlag){
+                                
+                            }else{
+                                trueFlag = false;
+                            }
+                        }else if(MS0->S4.unitCMD == 1){
+                            if(battleSetUp){
+                                battleSetUpIgnore = true;
+                            }else{
+                                trueFlag = false;
+                                
+                            }
+                            
+                        }else if(MS0->S4.unitCMD == 2){
+                            
+                            
+                        }
+                        
+                        
+                    }
+                }
+            }
+        }
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+        
+        
+        
+        
+        
+        
+        
+        
+        
+        
+    
+    
+    
+    
+    }
+    
+        
+    
+    
+    
+    
+    
+    
+    branchEndFlag = true;
+    
+    if(trueFlag){
+        branchSuceedFlag = true;
+    }
+    
+    
+    if(branchEndFlag){
+        if(!branchSuceedFlag){
+            MS0 = MSDP0top;
+            while(MS0){
+                MS0->endFlag = false;
+                MS0 = MS0->next;
+            }
+            MS0 = CRMS0;
+            MS0->endFlag = true;
+            
+            MS0 = MSDP0top;
+            
+            if([CRMS0->S4.FAILrabel isEqualToString:MS0->label]){
+                MS0->endFlag = false;
+            }else{
+                
+                while (MS0) {
+                    
+                    if(MS0->next)
+                        if([CRMS0->S4.FAILrabel isEqualToString:MS0->next->label]){
+                            MS0->endFlag = true;
+                            MS0 = MS0->next;
+                            break;
+                        }
+                    
+                    MS0->endFlag = true;
+                    MS0 = MS0->next;
+                }
+            }
+            if(!MS0){
+                MS0 = CRMS0;
+                return MS0;
+            }
+
+        }else if(branchSuceedFlag){
+            MS0 = MSDP0top;
+            while(MS0){
+                MS0->endFlag = false;
+                MS0 = MS0->next;
+            }
+            MS0 = CRMS0;
+            MS0->endFlag = true;
+            
+            MS0 = MSDP0top;
+            
+            if([CRMS0->S4.COMPrabel isEqualToString:MS0->label]){
+                MS0->endFlag = false;
+            }else{
+                
+                while (MS0) {
+                    
+                    if(MS0->next)
+                        if([CRMS0->S4.COMPrabel isEqualToString:MS0->next->label]){
+                            MS0->endFlag = true;
+                            MS0 = MS0->next;
+                            break;
+                        }
+                    
+                    MS0->endFlag = true;
+                    MS0 = MS0->next;
+                }
+            }
+            if(!MS0){
+                MS0 = CRMS0;
+                return MS0;
+            }
+        }
+    }
+    
+
+    return MS0;
+}
+
+
+-(void)checkPlaceHani:(int)cnsPow tX:(int)startX tY:(int)startY aMap:(int[][1002])aMap u:(UNIT*)u scsCnt:(int*)scsCnt{
+    
+    if(cnsPow < 0) return;
+    
+    int i0;
+    int *j0 = scsCnt;
+    if(aMap[startY][startX] <= cnsPow)
+        aMap[startY][startX] = cnsPow;
+    
+    if(startY < 0) startY = 0;
+    if(startX < 0) startX = 0;
+    if(cnsPow < 0) cnsPow = 0;
+    
+    i0 = cnsPow - 1;
+    
+    if(aMap[startY-1][startX] >= 0 && cnsPow > 0)
+        [self checkPlaceHani:i0 tX:startX tY:startY-1 aMap:aMap u:u scsCnt:j0];
+    
+    i0 = cnsPow - 1;
+    if(aMap[startY+1][startX] >= 0 && cnsPow > 0)
+        [self checkPlaceHani:i0 tX:startX tY:startY+1 aMap:aMap u:u scsCnt:j0];
+    
+    i0 = cnsPow - 1;
+    if(aMap[startY][startX-1] >= 0 && cnsPow > 0)
+        [self checkPlaceHani:i0 tX:startX-1 tY:startY aMap:aMap u:u scsCnt:j0];
+    
+    i0 = cnsPow - 1;
+    if(aMap[startY][startX+1] >= 0 && cnsPow > 0)
+        [self checkPlaceHani:i0 tX:startX+1 tY:startY aMap:aMap u:u scsCnt:j0];
+    
+    
+}
+
+-(MAPSCRIPT0*)setLabelJump:(MAPSCRIPT0*)MS0{
+    
+    MAPSCRIPT0 *CRMS0 = MS0;
+    MS0 = MSDP0top;
+    while(MS0){
+        MS0->endFlag = false;
+        MS0 = MS0->next;
+    }
+    MS0 = CRMS0;
+    MS0->endFlag = true;
+
+    MS0 = MSDP0top;
+    
+    if([CRMS0->labelJump isEqualToString:MS0->label]){
+        MS0->endFlag = false;
+    }else{
+        
+        while (MS0) {
+            
+            if(MS0->next)
+                if([CRMS0->labelJump isEqualToString:MS0->next->label]){
+                    MS0->endFlag = true;
+                    MS0 = MS0->next;
+                    break;
+                }
+            
+            MS0->endFlag = true;
+                MS0 = MS0->next;
+        }
+    }
+    if(!MS0){
+        MS0 = CRMS0;
+        return MS0;
+    }
+    
+    return MS0;
+}
+
+-(MAPSCRIPT0*)setDefault:(MAPSCRIPT0*)MS0{
+    
+    MS0->endFlag = true;
+    return MS0;
+}
+
+-(MAPSCRIPT0*)setLabel:(MAPSCRIPT0*)MS0{
+
+    MS0->endFlag = true;
+    return MS0;
+}
+
+-(MAPSCRIPT0*)setComment:(MAPSCRIPT0*)MS0{
+    
+    MS0->endFlag = true;
+    return MS0;
+}
+
+
+-(MAPSCRIPT0*)setSelection:(MAPSCRIPT0*)MS0{
+    
+    static bool initFlag = false;
+    
+    if(!initFlag){
+        initFlag = true;
+        
+        MAPSCRIPT2 *MS2top = MS0->S2;
+        
+        slctPoint.x = [mapWindow frame].origin.x + 100;
+        slctPoint.y = [mapWindow frame].origin.y + 300;
+        
+        [slctBtn1 setHidden:YES];
+        [slctBtn2 setHidden:YES];
+        [slctBtn3 setHidden:YES];
+        [slctBtn4 setHidden:YES];
+        [slctBtn5 setHidden:YES];
+        [slctBtn6 setHidden:YES];
+        [slctBtn7 setHidden:YES];
+        [slctBtn8 setHidden:YES];
+        [slctBtn9 setHidden:YES];
+        
+        for(int i = 1;MS0->S2;i++){
+            
+            if(i == 1){
+                [slctBtn1 setTitle:MS0->S2->selection];
+                [slctBtn1 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 60) display:YES];
+            }
+            if(i == 2){
+                [slctBtn2 setTitle:MS0->S2->selection];
+                [slctBtn2 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 90) display:YES];
+            }
+            if(i == 3){
+                [slctBtn3 setTitle:MS0->S2->selection];
+                [slctBtn3 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 120) display:YES];
+            }
+            
+            if(i == 4){
+                [slctBtn4 setTitle:MS0->S2->selection];
+                [slctBtn4 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 150) display:YES];
+            }
+            if(i == 5){
+                [slctBtn5 setTitle:MS0->S2->selection];
+                [slctBtn5 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 180) display:YES];
+            }
+            if(i == 6){
+                [slctBtn6 setTitle:MS0->S2->selection];
+                [slctBtn6 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 210) display:YES];
+            }
+            if(i == 7){
+                [slctBtn7 setTitle:MS0->S2->selection];
+                [slctBtn7 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 240) display:YES];
+            }
+            if(i == 8){
+                [slctBtn8 setTitle:MS0->S2->selection];
+                [slctBtn8 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 270) display:YES];
+            }
+            if(i == 9){
+                [slctBtn9 setTitle:MS0->S2->selection];
+                [slctBtn9 setHidden:NO];
+                [selectionWindow setFrame:NSMakeRect(slctPoint.x, slctPoint.y, 400, 300) display:YES];
+            }
+            slctBtnNum = i;
+            if(slctBtnNum > 9)
+                slctBtnNum = 9;
+            MS0->S2 = MS0->S2->next;
+        }
+        MS0->S2 = MS2top;
+        
+        
+        
+        [selectionWindow makeKeyAndOrderFront:nil];
+    }
+    
+    
+    if(slctedBtnNum > 0){
+        MAPSCRIPT0 *CRMS0 = MS0;
+        
+        MS0 = MSDP0top;
+        while(MS0){
+            MS0->endFlag = false;
+            MS0 = MS0->next;
+        }MS0 = CRMS0;
+        
+        MAPSCRIPT2 *MS2top = MS0->S2;
+        MAPSCRIPT2 *CRMS2;
+        
+        for(int i = 1;i < slctedBtnNum;i++){
+            MS0->S2 = MS0->S2->next;
+        }
+            CRMS2 = MS0->S2;
+        
+        MS0->S2 = MS2top;
+        
+        MS0 = MSDP0top;
+        if([CRMS2->labelJump isEqualToString:MS0->label]){
+            MS0->endFlag = false;
+        }else{
+            
+            while (MS0) {
+                
+                if(MS0->next)
+                    if([CRMS2->labelJump isEqualToString:MS0->next->label]){
+                        MS0->endFlag = true;
+                        MS0 = MS0->next;
+                        break;
+                    }
+                
+                MS0->endFlag = true;
+                MS0 = MS0->next;
+            }
+        }
+        if(!MS0){
+            MS0 = CRMS0;
+            return MS0;
+        }
+        
+        
+        MS0->endFlag = true;
+        initFlag = false;
+        slctedBtnNum = 0;
+        }
+    
+    return MS0;
+}
+
+-(MAPSCRIPT0*)setAppearance:(MAPSCRIPT0*)MS0{
+    
+    MS3T = MS0->S3;
+    while(MS0->S3){
+        int x, y;
+        UNITCHIP u;
         u = MS0->S3->U;
         x = MS0->S3->x;
         y = MS0->S3->y;
@@ -8034,6 +9308,35 @@ SKIP1:
 
 
 
+-(void)HensuuLoad{
+    
+    NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+    [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+    
+    
+    NSData *InitialData = [NSData dataWithContentsOfFile:@"data/Others/var.txt"];
+    NSString *pathVar = @"data/Others/var.txt";
+    NSString *fileData = @"";
+    
+    if(!InitialData){
+        [[NSFileManager defaultManager] createFileAtPath:pathVar contents:nil attributes:nil];
+    }
+    
+    HensuuNum = 0;
+    fileData = [NSString stringWithContentsOfFile:pathVar encoding:NSUTF8StringEncoding error:nil];
+    NSArray *fileDataArray = [fileData componentsSeparatedByString:@"\n"];
+    
+    for(int i = 0;i < [fileDataArray count];i++){
+        
+        NSArray *item = [[fileDataArray objectAtIndex:i] componentsSeparatedByString:@","];
+        
+        Hensuu[i] = [[item objectAtIndex:1] retain];
+        HensuuName[i] = [[item objectAtIndex:2] retain];
+        HensuuNum++;
+    }
+    
+    
+}
 @end
 
 
index 07eb9be..aa1e270 100755 (executable)
@@ -122,6 +122,7 @@ int cpuTargY;
 bool unitMoveBugFixFlag;
 bool unitNoMoveStanbyFlag;
 
+
 @interface FieldView : NSView
 {
     NSTimer *time;
index 5864ef1..b6294f4 100755 (executable)
@@ -7,7 +7,7 @@
 //
 
 #import "FieldView.h"
-
+#import "FieldScene.h"
 
 @implementation FieldView
 -(BOOL)isFlipped{
         return;
     }
     
+    if(coolTime)
+        return;
+    
     if(cpuAImodeflag)
         return;
     
     
     switch (cpuMODE) {
         case MODE_CPU_IDLE:
+            if(coolTime)
+                return;
+            
             if(unitMoveEndFlag){
                 pushStanbyFlag = true;
             }
                 return;
             if(endGameCondition)
                 return;
-            if(battleFlag || battleRdy)
+            if(battleFlag || battleRdy || battleSetUp)
                 return;
             
             unitMoveEndFlag = false;
                         U->C.S_C.WT =  floor(U->C.S_M.WT/2 + 0.5);
                     }
                     
+                    eventTime++;
+                    
                     BTop = B;
                     while (B) {
                         if(B->x == wtPx && B->y == wtPy && B->C.capture){
                 
                 U = UTop;
                 
-                
+                eventTime++;
                 wtRdy = false;
                 pushStanbyFlag = true;
                 
             
             U = UTop;
             
+            eventTime++;
+            
             pushStanbyFlag = true;
             
             cpuModeMOVEflag = false;
 
 -(void)loadMesh:(NSMutableArray *)theMapString index:(int)index{
     
-    /*
-    NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
-    [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
-    
-    NSString *fileData;
-    NSString *pathDATA = @"Map/";
-    
-    for(int i = 0;i<1000;i++){
-        for(int j = 0;j< 1000;j++){
-            chipNum[i][j] = 0;
-            buildNum[i][j] = -1;
-            unitNum[i][j] = -1;
-        }
-    }
-    
-    NSString *OMFG = [[theMapString objectAtIndex:index] retain];
-    
-    pathDATA = [pathDATA stringByAppendingFormat:@"%@", OMFG];
-    
-    //NSLog(@"%@", pathDATA);
-    
-    fileData = [NSString stringWithContentsOfFile:pathDATA encoding:NSUTF8StringEncoding error:nil];
-    fileDataArray = [fileData componentsSeparatedByString:@"\n"];
-    
-    int chipType = 0;
-    int chipIndexDelta = 0;
-    int chipIndexDelta2 = 0;
-    NSArray *items0 = [[fileDataArray objectAtIndex:0] componentsSeparatedByString:@","];
-    chipWidth = (int)[items0 count];
-    int omanko = 0;
-    bool oopsIsRight;
-    for(int i=0;i < [fileDataArray count];i++){
-        if([fileDataArray objectAtIndex:0] == NULL) break;
-        NSArray *items = [[fileDataArray objectAtIndex:i] componentsSeparatedByString:@","];
-        
-        NSRange rangeSearch = [[items objectAtIndex:0] rangeOfString:@"####"];
-        omanko++;
-        if(rangeSearch.location != NSNotFound){
-            if(!oopsIsRight) {chipHeight = omanko-1; oopsIsRight = true;}
-            chipType++;
-            continue;
-        }
-        
-        if(chipType == 0){chipIndexDelta++;
-            for(int j=0;j < [items count];j++){
-                chipNum[j][i] = [[items objectAtIndex:j] intValue];
-                chipWidth = (int)[items count];
-                chipHeight = chipIndexDelta;
-            }
-        }else if(chipType == 1){chipIndexDelta2++;
-            for(int j=0;j < [items count];j++){
-                buildNum[j][i - chipIndexDelta-1] = [[items objectAtIndex:j] intValue]-1;
-            }
-        }else if(chipType == 2){
-            for(int j=1;j < [items count];j++){
-                unitNum[[[items objectAtIndex:2] intValue]][[[items objectAtIndex:1] intValue]] = [[items objectAtIndex:0] intValue]-1;
-            }
-        }
-        
-    }
-*/
+
 }
 
 
         [self DrawImage:chipAttack x:(Utarget->x-1)*32 y:(Utarget->y-1)*32 cx:bx cy:by f:0.6];
    //[self DrawImage:chipSelect x:(2-1)*32 y:(1-1)*32 cx:0 cy:0 f:1.0];
     
+    /*
+    for(bx=1;bx<=chipWidth;bx++){
+        for(by=1;by<=chipHeight;by++){
+
+            if(waypR[bx][by] != 999 && waypR[bx][by] > 0){
+                [self DrawImage:chip x:(bx-1)*32 y:(by-1)*32 cx:bx cy:by f:0.7];
+                
+            }
+        }
+        
+    }*/
+    
+    
     
     initMapFlag = true;
 }
diff --git a/Awars III/LevelList.h b/Awars III/LevelList.h
new file mode 100644 (file)
index 0000000..a2140b0
--- /dev/null
@@ -0,0 +1,46 @@
+//
+//  LevelList.h
+//  Awars III
+//
+//  Created by 桐谷 諭史 on 2015/08/31.
+//  Copyright (c) 2015年 Killery. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import "ScenarioList.h"
+#import "MapEditor.h"
+
+int LL1row;
+int LL2row;
+
+
+@interface LevelList : NSObject
+{
+    NSTimer *levelTimer;
+    
+    IBOutlet NSWindow *levelWindow;
+    
+    NSMutableArray *levelListMA1;
+    IBOutlet NSArrayController *levelListAC1;
+    IBOutlet NSTableView *levelListTV1;
+    
+    NSMutableArray *levelListMA2;
+    IBOutlet NSArrayController *levelListAC2;
+    IBOutlet NSTableView *levelListTV2;
+    
+    NSMutableArray *levelListMA3;
+    IBOutlet NSArrayController *levelListAC3;
+    IBOutlet NSTableView *levelListTV3;
+}
+
+-(IBAction)levelEditor:(id)sender;
+
+-(IBAction)ins1:(id)sender;
+-(IBAction)del1:(id)sender;
+
+-(IBAction)ins2:(id)sender;
+-(IBAction)del2:(id)sender;
+
+-(IBAction)submit:(id)sender;
+
+@end
diff --git a/Awars III/LevelList.m b/Awars III/LevelList.m
new file mode 100644 (file)
index 0000000..0931836
--- /dev/null
@@ -0,0 +1,493 @@
+//
+//  LevelList.m
+//  Awars III
+//
+//  Created by 桐谷 諭史 on 2015/08/31.
+//  Copyright (c) 2015年 Killery. All rights reserved.
+//
+
+#import "LevelList.h"
+
+@implementation LevelList
+
+-(void)awakeFromNib{
+    [levelListTV1 setTarget:self];
+    [levelListTV1 setAction:@selector(clickLL1:)];
+    
+    [levelListTV2 setTarget:self];
+    [levelListTV2 setAction:@selector(clickLL2:)];
+}
+
+-(id)init{
+    levelTimer  = [NSTimer
+             scheduledTimerWithTimeInterval:0.01
+             target:self
+             selector:@selector(EventLoop:)
+             userInfo:nil
+             repeats:YES
+             ];
+    levelListMA1 = [NSMutableArray new];
+    levelListMA2 = [NSMutableArray new];
+    levelListMA3 = [NSMutableArray new];
+    
+    [self initLevelTitleList];
+    
+    return self;
+}
+
+-(void)EventLoop:(NSTimer*)time{
+    
+    if(SCinputEndFlag){
+        [self initLevelTitleList];
+        SCinputEndFlag = false;
+    }
+    
+    
+    if([levelListMA1 count] > 0 && LL1row >=0){
+        SC[LL1row+1].name = [[[levelListMA1 objectAtIndex:LL1row] valueForKey:@"name"] retain];
+        SC[LL1row+1].img = [[[levelListMA1 objectAtIndex:LL1row] valueForKey:@"img"] retain];
+    }
+    
+    if([levelListMA2 count] >0 && LL2row >= 0){
+        
+        NSString *string1 = [[[levelListMA2 objectAtIndex:LL2row] valueForKeyPath:@"name"] retain];
+        NSString *string2 = [[[levelListMA2 objectAtIndex:LL2row] valueForKeyPath:@"op"] retain];
+        NSString *string3 = [[[levelListMA2 objectAtIndex:LL2row] valueForKeyPath:@"ed"] retain];
+        NSString *string4 = [[[levelListMA2 objectAtIndex:LL2row] valueForKeyPath:@"map"] retain];
+        
+        
+        [SC[LL1row+1].sName replaceObjectAtIndex:LL2row withObject:string1];
+        [SC[LL1row+1].nameSceneStart replaceObjectAtIndex:LL2row withObject:string2];
+        [SC[LL1row+1].nameSceneEnd replaceObjectAtIndex:LL2row withObject:string3];
+        [SC[LL1row+1].nameMAP replaceObjectAtIndex:LL2row withObject:string4];
+        
+        
+    }
+    
+}
+
+
+
+-(void)initLevelTitleList{
+    
+    
+    [self willChangeValueForKey:@"levelListMA1"];
+    [levelListMA1 removeAllObjects];
+    [self didChangeValueForKey:@"levelListMA1"];
+    
+    for(int i = 1;i <= SCarray;i++){
+
+        NSMutableDictionary* dict = [NSMutableDictionary new];
+        
+        NSString *string = SC[i].iName;
+        
+            [dict setValue:[NSString stringWithFormat:@"%@", SC[i].name] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"%@", string] forKey:@"img"];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA1"];
+        
+        
+    }
+    
+    
+    NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+    [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+    
+    NSArray *Farray;
+    NSString *filePath = @"Map";
+    Farray = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:filePath error:nil];
+    
+    fileNumb = (int)[Farray count];
+    for (int i = 1; i < fileNumb;i++) {
+        MF[i].fileName = [[Farray objectAtIndex:i] retain];
+    }
+    
+    [self willChangeValueForKey:@"levelListMA3"];
+    [levelListMA3 removeAllObjects];
+    [self didChangeValueForKey:@"levelListMA3"];
+    
+    for(int i = 1; i < fileNumb;i++){
+        NSMutableDictionary* dict = [NSMutableDictionary new];
+        
+        [dict setValue:[NSString stringWithFormat:@"%@", MF[i].fileName] forKey:@"name"];
+        [self willChangeValueForKey:@"levelListMA3"];
+        [levelListMA3 addObject:dict];
+        [self didChangeValueForKey:@"levelListMA3"];
+    }
+}
+
+
+-(void)clickLL1:(id)sender{
+    LL1row = (int)[levelListTV1 clickedRow];
+    
+    [self willChangeValueForKey:@"levelListMA2"];
+    [levelListMA2 removeAllObjects];
+    [self didChangeValueForKey:@"levelListMA2"];
+    
+    if([levelListTV1 clickedRow] >= 0){
+        
+        for(int i = 0;i < [SC[LL1row+1].nameMAP count];i++){
+            NSMutableDictionary* dict = [NSMutableDictionary new];
+            
+            [dict setValue:[NSString stringWithFormat:@"%@",[SC[LL1row+1].sName objectAtIndex:i]] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"%@",[SC[LL1row+1].nameSceneStart objectAtIndex:i]] forKey:@"op"];
+            [dict setValue:[NSString stringWithFormat:@"%@",[SC[LL1row+1].nameSceneEnd objectAtIndex:i]] forKey:@"ed"];
+            [dict setValue:[NSString stringWithFormat:@"%@",[SC[LL1row+1].nameMAP objectAtIndex:i]] forKey:@"map"];
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA2"];
+            
+        }
+        
+    }
+}
+
+-(void)clickLL2:(id)sender{
+    LL2row = (int)[levelListTV2 clickedRow];
+}
+
+
+-(IBAction)levelEditor:(id)sender{
+    [levelWindow makeKeyAndOrderFront:nil];
+    
+}
+
+
+
+
+
+
+
+-(IBAction)ins1:(id)sender{
+    
+    if(1){
+        NSMutableDictionary *dict = [NSMutableDictionary new];
+        if([levelListMA1 count] == 0){
+            SC[1].name = [@"新規タイトル" retain];
+            
+            [dict setValue:[NSString stringWithFormat:@"%@", SC[1].name] forKey:@"name"];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+        }else if(LL1row == -1){
+            
+            SC[[levelListMA1 count]+1].name = [@"新規タイトル" retain];
+            
+            [dict setValue:[NSString stringWithFormat:@"%@", SC[[levelListMA1 count]+1].name] forKey:@"name"];
+            
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+            
+        }else if(LL1row > 0){
+            
+            [self SCinsert:LL1row+1];
+            
+            [dict setValue:[NSString stringWithFormat:@"%@", SC[LL1row+1].name] forKey:@"name"];
+            
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 insertObject:dict atIndex:LL1row];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+            
+        }else{
+            
+            [self SCinsert:LL1row+1];
+            
+            [dict setValue:[NSString stringWithFormat:@"%@", SC[LL1row+1].name] forKey:@"name"];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 insertObject:dict atIndex:LL1row];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+        }
+        
+        
+        
+    }
+    
+}
+
+void insertSC(SCENARIO *ptr, SCENARIO *last, int val)
+{
+    for(SCENARIO *dst = last; --dst >= ptr; ){
+        
+        *(dst + 1) = *dst;      // 要素をひとつ後ろにずらす
+    
+    }
+    
+    
+    ptr->name = [@"新規タイトル" retain];
+    ptr->nameSceneStart = NULL;
+    ptr->nameSceneEnd = NULL;
+    ptr->nameMAP = NULL;
+    
+    //NSLog(@"%p,%p",SC, ptr);
+    
+}
+
+-(void)SCinsert:(int)row{
+    
+    
+    insertSC(&SC[row], &SC[SCarray+1], row);// [2] の位置に 2 を挿入。最後の 5 は破棄
+}
+
+void deleteSC(SCENARIO *ptr, SCENARIO *last)
+{
+    while ( ++ptr < last )
+        *(ptr - 1) = *ptr;//  要素をひとつ前にずらす
+}
+-(void)SCdelete:(int)row{
+    
+    deleteSC(&SC[row], &SC[SCarray+1]);      // [2] の要素を削除。最後の 5 はそのまま
+    
+}
+
+
+-(IBAction)del1:(id)sender{
+    SCENARIO SCNULL[0];
+    if(1){
+        if([levelListMA1 count] == 0){
+            return;
+        }else if(LL1row == -1){
+           
+            if([levelListMA1 count] > 1) [self SCdelete:(int)[levelListMA1 count]];
+            else [self SCdelete:LL1row+1];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 removeObjectAtIndex:[levelListMA1 count]-1];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+            
+        }else if(LL1row > 0){
+            [self SCdelete:LL1row+1];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 removeObjectAtIndex:LL1row];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+            
+        }else{
+            
+            [self SCdelete:LL1row+1];
+            
+            [self willChangeValueForKey:@"levelListMA1"];
+            [levelListMA1 removeObjectAtIndex:LL1row];
+            [self didChangeValueForKey:@"levelListMA1"];
+            [levelListAC1 setSelectionIndex:999];
+            
+        }
+        
+    }
+
+    LL1row = -1;
+}
+
+-(IBAction)ins2:(id)sender{
+
+    
+    if(1){
+        NSMutableDictionary *dict = [NSMutableDictionary new];
+        if([levelListMA2 count] == 0){
+            SC[LL1row+1].sName = [NSMutableArray new];
+            SC[LL1row+1].nameSceneStart = [NSMutableArray new];
+            SC[LL1row+1].nameSceneEnd = [NSMutableArray new];
+            SC[LL1row+1].nameMAP = [NSMutableArray new];
+            NSString *howCouldYou = [@"NULL" retain];
+            [SC[LL1row+1].sName addObject:howCouldYou];
+            [SC[LL1row+1].nameSceneStart addObject:howCouldYou];
+            [SC[LL1row+1].nameSceneEnd addObject:howCouldYou];
+            [SC[LL1row+1].nameMAP addObject:howCouldYou];
+            
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"op"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"ed"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"map"];
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+        }else if(LL2row == -1){
+            NSString *just = [@"NULL" retain];
+            [SC[LL1row+1].sName addObject:just];
+            [SC[LL1row+1].nameSceneStart addObject:just];
+            [SC[LL1row+1].nameSceneEnd addObject:just];
+            [SC[LL1row+1].nameMAP addObject:just];
+            
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"op"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"ed"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"map"];
+            
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 addObject:dict];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+            
+        }else if(LL2row > 0){
+            NSString *just = [@"NULL" retain];
+            [SC[LL1row+1].sName insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameSceneStart insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameSceneEnd insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameMAP insertObject:just atIndex:LL2row];
+            
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"op"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"ed"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"map"];
+            
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 insertObject:dict atIndex:LL2row];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+            
+        }else{
+            NSString *just = [@"NULL" retain];
+            [SC[LL1row+1].sName insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameSceneStart insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameSceneEnd insertObject:just atIndex:LL2row];
+            [SC[LL1row+1].nameMAP insertObject:just atIndex:LL2row];
+            
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"name"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"op"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"ed"];
+            [dict setValue:[NSString stringWithFormat:@"NULL"] forKey:@"map"];
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 insertObject:dict atIndex:LL2row];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+        }
+        
+        
+        
+    }
+}
+-(IBAction)del2:(id)sender{
+    SCENARIO SCNULL[0];
+    if(1){
+        if([levelListMA2 count] == 0){
+            return;
+        }else if(LL2row == -1){
+            
+            if([levelListMA2 count] > 1) {
+                [SC[[levelListMA2 count]].sName removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[[levelListMA2 count]].nameSceneStart removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[[levelListMA2 count]].nameSceneEnd removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[[levelListMA2 count]].nameMAP removeObjectAtIndex:[levelListMA2 count]-1];
+            
+            }
+            else{
+                [SC[1].sName removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[1].nameSceneStart removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[1].nameSceneEnd removeObjectAtIndex:[levelListMA2 count]-1];
+                [SC[1].nameMAP removeObjectAtIndex:[levelListMA2 count]-1];
+            }
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 removeObjectAtIndex:[levelListMA2 count]-1];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+            
+        }else if(LL2row > 0){
+            //SC[LL1row+1] = SCNULL[0];
+            
+            [SC[LL1row+1].sName removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameSceneStart removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameSceneEnd removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameMAP removeObjectAtIndex:LL2row];
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 removeObjectAtIndex:LL2row];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+            
+        }else{
+            
+            //SC[LL1row+1] = SCNULL[0];
+            
+            [SC[LL1row+1].sName removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameSceneStart removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameSceneEnd removeObjectAtIndex:LL2row];
+            [SC[LL1row+1].nameMAP removeObjectAtIndex:LL2row];
+            
+            
+            
+            [self willChangeValueForKey:@"levelListMA2"];
+            [levelListMA2 removeObjectAtIndex:LL2row];
+            [self didChangeValueForKey:@"levelListMA2"];
+            [levelListAC2 setSelectionIndex:999];
+            
+        }
+        
+    }
+    
+    LL2row = -1;
+}
+
+
+
+
+
+
+
+
+
+-(IBAction)submit:(id)sender{
+    
+    NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+    [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+
+    NSString *pathDATA = @"data/Scenario/preset.txt";
+    NSString *pathFOLDER = @"data/Scenario/img";
+    
+    NSString *fileData = @"";
+    for(int i = 1;i <= SCarray;i++){
+        if(i > 1) fileData = [fileData stringByAppendingString:@"\n"];
+        fileData = [fileData stringByAppendingFormat:@"###%@###%@\n", SC[i].name, SC[i].iName];
+        for(int k = 0;k < [SC[i].sName count];k++){
+            if(k > 0) fileData = [fileData stringByAppendingString:@"\n"];
+            fileData = [fileData stringByAppendingFormat:@"%@##%@##%@##%@",
+                        [SC[i].sName objectAtIndex:k], [SC[i].nameSceneStart objectAtIndex:k],
+                        [SC[i].nameSceneEnd objectAtIndex:k], [SC[i].nameMAP objectAtIndex:k]];
+        }
+        
+    }
+    
+    [fileData writeToFile:pathDATA atomically:YES encoding:NSUTF8StringEncoding error:nil];
+    
+    [levelWindow close];
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+@end
index de1c32f..c467e2a 100644 (file)
@@ -230,6 +230,9 @@ typedef struct _MAPSCRIPTD{
     int y;
     int type;
     bool endFlag;
+    double ET1;
+    double ET2;
+    int ETtype;
     
     int *switch1;
     int *switch2;
@@ -401,6 +404,8 @@ bool EDbranchBuildFlag;
 
 bool fuckingRetardedBtnPushed1;
 
+int fileNumb;
+
 @interface MapEditor : NSObject
 {
     NSTimer *time0;
@@ -416,6 +421,12 @@ bool fuckingRetardedBtnPushed1;
     
     
     
+    
+    IBOutlet NSTextField *EDeventTimeTF1;
+    IBOutlet NSTextField *EDeventTimeTF2;
+    IBOutlet NSPopUpButton *EDeventTrigger;
+    
+    
     IBOutlet NSTextField *TFcurrentChipIndex;
     
     IBOutlet NSPanel *PMCL;
@@ -445,8 +456,6 @@ bool fuckingRetardedBtnPushed1;
     IBOutlet NSTextField *saveMapTF;
     
     
-    int fileNumb;
-    
     
     IBOutlet NSWindow *eventWindow;
     NSMutableArray *eventListMA;
index a6d5ce7..24f885a 100755 (executable)
         [self didChangeValueForKey:@"loadMapListMA"];
     }
 
+    
+    
 }
 
 -(void)initSaveMapList{
         [self didChangeValueForKey:@"saveMapListMA"];
     }
 
-
+    if(MFselectedRow == -1){
+         [saveMapTF setStringValue:@"NewMap.txt"];
+    }else{
+        [saveMapTF setStringValue:MF[MFselectedRow+1].fileName];
+    }
 }
 
 -(IBAction)loadMap:(id)sender{
 
 -(IBAction)EDclose:(id)sender{
     
+    
     MAPSCRIPT MS = MF[MFselectedRow+1].MS;
+    MS.D = msdtop;
+    
     
     [MS.SCRPTname replaceObjectAtIndex:[eventListAC selectionIndex] withObject:[EDnameTF stringValue]];
     
     
     [eventListAC setValue:[NSString stringWithFormat:@"●%@", [MS.SCRPTname objectAtIndex:[eventListAC selectionIndex]]] forKeyPath:@"selection.value"];
     
+    MS.D->ET1 = [EDeventTimeTF1 doubleValue];
+    MS.D->ET2 = [EDeventTimeTF2 doubleValue];
+    MS.D->ETtype = (int)[EDeventTrigger indexOfSelectedItem];
+    
+    MF[MFselectedRow+1].MS.D = MS.D;
+    
     MF[MFselectedRow+1].MS.D = MSDTOPP;
     
     EDproceedFlag = false;
         [EDswitch2Btn setState:YES];
     else
         [EDswitch2Btn setState:NO];
+    
+    [EDeventTimeTF1 setStringValue:[NSString stringWithFormat:@"%g", MS.D->ET1]];
+    [EDeventTimeTF2 setStringValue:[NSString stringWithFormat:@"%g", MS.D->ET2]];
+    [EDeventTrigger selectItemAtIndex:MS.D->ETtype];
+    
     MS.D = mdTop;
     MF[MFselectedRow+1].MS.D = MS.D;
         
     
     [EDbranchUnitNum setState:MS0->S4.unitNumFlag];
     [EDbranchUnitSelect setState:MS0->S4.unitTypeFlag];
+    [EDbranchUnitValue setStringValue:[NSString stringWithFormat:@"%d", MS0->S4.unitNum]];
     [EDbranchUnitPlace setState:MS0->S4.placeFlag];
     [EDbranchUnitElect setState:MS0->S4.unitCMDflag];
     [EDbranchUnitObje setState:MS0->S4.objeFlag];
     [EDbranchTimerSecTF setIntValue:MS0->S4.timerSec];
     [EDbranchPUB13 selectItemAtIndex:MS0->S4.timerType];
     [EDbranchUnitTeam setIntValue:MS0->S4.team];
-    [EDbranchUnitNum setIntValue:MS0->S4.unitNum];
     [EDbranchPUB21 selectItemAtIndex:MS0->S4.unitType];
     [EDbranchPUB22 selectItemAtIndex:MS0->S4.unitCMD];
-    [EDbranchObjeRange setIntValue:MS0->S4.objeRange];
+    [EDbranchObjeRange setStringValue:[NSString stringWithFormat:@"%d",MS0->S4.objeRange]];
     
     [self willChangeValueForKey:@"EDbranchSuicchiMA"];
     [EDbranchSuicchiMA removeAllObjects];
 }
 -(IBAction)EDvarSetSave:(id)sender{
 
-    [self EDvarSetFileDirectory];
+    [self EDvarSetFileDirectorySave];
+    [self EDvarSetFileDirectoryLoad];
 }
 
 -(void)EDvarSetFileDirectoryLoad{
             instantNum++;
         }
     }
-    
+    /*
     if(0){
         for(int k = 0;k < instantNum;k++){
             NSString *string = [[EDvarHensuSet1MA objectAtIndex:k] valueForKey:@"value"];
             [self didChangeValueForKey:@"EDvarHensuSet2MA"];
             
             for(int i = HensuuMin;i <= HensuuMax;i++){
+                
                 NSMutableDictionary* dict = [NSMutableDictionary new];
                 
                 [dict setValue:[NSString stringWithFormat:@"%d",i] forKey:@"num"];
                 [EDvarHensuSet2MA addObject:dict];
                 [self didChangeValueForKey:@"EDvarHensuSet2MA"];
                 
-                /*
+     
                 Hensuu[i] = [[[EDvarHensuSet2MA objectAtIndex:(HensuuMax-i)] objectForKey:@"value"] retain];
                 HensuuName[i] = [[[EDvarHensuSet2MA objectAtIndex:(HensuuMax-i)] objectForKey:@"name"]retain];
-                */
+     
                 
             }
         }
-    }
+    }*/
     
     
     
     
 }
 
+-(void)EDvarSetFileDirectorySave{
+
+    
+    NSString *directoryPath = [[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent];
+    [[NSFileManager defaultManager] changeCurrentDirectoryPath:directoryPath];
+    
+    
+    NSData *InitialData = [NSData dataWithContentsOfFile:@"data/Others/var.txt"];
+    NSString *pathVar = @"data/Others/var.txt";
+    NSString *fileData = @"";
+    
+    if(!InitialData){
+        [[NSFileManager defaultManager] createFileAtPath:pathVar contents:nil attributes:nil];
+    }
+    
+    int instantNum = 0;
+    
+    for(int i = 0;i < HensuuNum;i++){
+        if(i%100 == 0){
+            instantNum++;
+        }
+    }
+    
+    if(1){
+        for(int k = 0;k < instantNum;k++){
+            NSString *string = [[EDvarHensuSet1MA objectAtIndex:EDvarHensuSet1Row] valueForKey:@"value"];
+            NSArray *array2 = [string componentsSeparatedByString:@"["];
+            NSArray *array = [[array2 objectAtIndex:1] componentsSeparatedByString:@"~"];
+            
+            HensuuMin = [[array objectAtIndex:0] intValue];
+            HensuuMax = [[array objectAtIndex:1] intValue];
+            
+            for(int i = HensuuMin;i <= HensuuMax;i++){
+                
+                Hensuu[i] = [[[EDvarHensuSet2MA objectAtIndex:(HensuuMax-i)] objectForKey:@"value"] retain];
+                HensuuName[i] = [[[EDvarHensuSet2MA objectAtIndex:(HensuuMax-i)] objectForKey:@"name"]retain];
+                
+            }
+            break;
+        }
+    }
+    
+
+
+    for (int i = 0;i < HensuuNum;i++) {
+        if(i > 0)
+            fileData = [fileData stringByAppendingFormat:@"\n"];
+        
+        fileData = [fileData stringByAppendingFormat:@"%d,%@,%@", i, Hensuu[i], HensuuName[i]];
+    }
+    
+    [fileData writeToFile:pathVar atomically:YES encoding:NSUTF8StringEncoding error:nil];
+
+}
+
 
 -(IBAction)EDappearClose:(id)sender{
 
 -(IBAction)EDbranchPlaceHaniSubmit:(id)sender{
     
     EDbranchPlaceHani3Flag = true;
+    [EDbrachPlaceHaniWindow close];
 }
 
 -(IBAction)EDbranchPlaceAddkukei:(id)sender{
index 73b29d2..cf512dd 100644 (file)
             if(buildTeam[bx][by] >= 0) [self DrawImage:buildTeamImg[buildTeam[bx][by]] x:(bx-1)*32 y:(by-1)*32 cx:bx cy:by];
             if(unitTeam[bx][by] >= 0) [self DrawImage:unitTeamImg[unitTeam[bx][by]] x:(bx-1)*32 y:(by-1)*32 cx:bx cy:by];
             
-            
+            //if(waypR[bx][by] != 999 && waypR[bx][by] > 0) [self DrawImage:chip x:(bx-1)*32 y:(by-1)*32 cx:bx cy:by];
         }
     
     }
     if(EDbranchPlaceKukei2Flag) [self DrawImage:chip x:(eSlctX - 1)*32 y:(eSlctY -1)*32 cx:0 cy:0];
     if(EDbranchObjeFlag) [self DrawImage:chip2 x:(eSlctX - 1)*32 y:(eSlctY -1)*32 cx:0 cy:0];
     if(EDbranchBuildFlag) [self DrawImage:chip2 x:(eSlctX - 1)*32 y:(eSlctY -1)*32 cx:0 cy:0];
+    
+    
+
+    [self DrawImage:chip2 x:(eSlctX - 1)*32 y:(eSlctY -1)*32 cx:0 cy:0];
 }
 
 -(void)initMapChipFileDirectory{
                 MS.D->x = [[items4 objectAtIndex:0] intValue];
                 MS.D->y = [[items4 objectAtIndex:1] intValue];
                 
+                NSArray *items100 = [[items2 objectAtIndex:1] componentsSeparatedByString:@"ET["];
+                if([items100 count] > 1){
+                    NSArray *items102 = [[items100 objectAtIndex:0] componentsSeparatedByString:@"]"];
+                    MS.D->ETtype = [[items102 objectAtIndex:1] intValue];
+                    NSArray *items101 = [[items100 objectAtIndex:1] componentsSeparatedByString:@","];
+                    MS.D->ET1 = [[items101 objectAtIndex:0] doubleValue];
+                    MS.D->ET2 = [[items101 objectAtIndex:1] doubleValue];
+                }
+                
                 
                 NSArray *items51 = [[items2 objectAtIndex:1] componentsSeparatedByString:@"ON["];
                 if([items51 count] > 1){
                 
                 [MS.D->SCRPT addObject:str];
                 
+                if(MS.D->P->S4.suicchiFlag){
+                    NSString *string = @"";
+                    if(MS.D->P->S4.suicchiONOFF == 0)
+                        string = [string stringByAppendingFormat:@"スイッチON"];
+                    else
+                        string = [string stringByAppendingFormat:@"スイッチOFF"];
+                    
+                    if(MS.D->P->S4.suicchi)
+                        for (int i = 0;*(MS.D->P->S4.suicchi + i);i++) {
+                            if(i > 0)
+                                string = [string stringByAppendingFormat:@","];
+                            string = [string stringByAppendingFormat:@"%d",*(MS.D->P->S4.suicchi + i)];
+                        }
+                    [MS.D->SCRPT addObject:string];
+                }
                 if(MS.D->P->S4.hensuFlag){
                 NSString *string = @"変数";
                 
         fileData = [fileData stringByAppendingFormat:@"●"];
         fileData = [fileData stringByAppendingFormat:@"%@ ", [MS.SCRPTname objectAtIndex:index]];
         fileData = [fileData stringByAppendingFormat:@"%d[%d,%d]", MS.D->type,MS.D->x, MS.D->y];
+        fileData = [fileData stringByAppendingFormat:@"%dET[%g,%g]", MS.D->ETtype,MS.D->ET1, MS.D->ET2];
         if(MS.D->switch1)
         if(*MS.D->switch1 > 0){
         fileData = [fileData stringByAppendingFormat:@"ON["];
index fb84249..0f8e2dd 100755 (executable)
@@ -26,6 +26,9 @@ typedef struct _SCENARIO{
 SCENARIO SC[255];
 int scenarioNumb;
 int storyNumb;
+int SCarray;
+
+bool SCinputEndFlag;
 
 @interface ScenarioList : NSObject
 {
@@ -46,8 +49,6 @@ int storyNumb;
     NSArray *fileDataArray;
     NSInteger sceneNumb;
     
-    int SCarray;
-    
     IBOutlet NSWindow *eventSceneWindow;
 }
 
index 4f422cd..f8501f1 100755 (executable)
 @implementation ScenarioList
 -(IBAction)startButton:(id)sender{
     [SLPanel close];
-    [NSApp stopModal];
 }
 -(IBAction)backButton:(id)sender{
     [SLPanel close];
-    [NSApp stopModal];
 }
 
 -(IBAction)windowMove:(id)sender{
@@ -78,6 +76,8 @@
     SLPpoint.x = [titleWindow frame].origin.x + 100;
     SLPpoint.y = [titleWindow frame].origin.y + 100;
     [SLPanel setFrameOrigin:SLPpoint];
+    
+    //NSLog(@"%p", SC[1].img);
 }
 
 
                     NSData *imgData = [NSData dataWithContentsOfFile:imagePath];
                     
                     if(imgData)
-                       SC[aDelta].img = [[NSImage alloc] initWithData:[[NSFileHandle fileHandleForReadingAtPath:imagePath] readDataToEndOfFile]];
+                       SC[aDelta].img = [[[NSImage alloc] initWithData:[[NSFileHandle fileHandleForReadingAtPath:imagePath] readDataToEndOfFile]] retain];
                     
                     if(!imgData){
-                        SC[aDelta].img = [NSImage imageNamed:SC[aDelta].iName];
+                        SC[aDelta].img = [[NSImage imageNamed:SC[aDelta].iName] retain];
                     }
                 }
             }else if(rangeSearch2.location != NSNotFound){
             //NSLog(@"SC[%d].sName %@", aDelta, SC[aDelta].sName);
         }
     }
+    
+    SCinputEndFlag = true;
 }
 
 -(void)initScenarioList{
index 336e171..0e57eb4 100755 (executable)
 
 -(IBAction)Start:(id)sender{
     [StartWindow makeKeyAndOrderFront:nil];
-    [NSApp runModalForWindow:StartWindow];
 }
 -(IBAction)Continue:(id)sender{
     [ContinueWindow makeKeyAndOrderFront:nil];
-    [NSApp runModalForWindow:ContinueWindow];
 }
 -(IBAction)Gallery:(id)sender{
     galleryClickedFlag = true;
index abdba8e..d117dfd 100755 (executable)
                     <textField verticalHuggingPriority="750" id="558">
                         <rect key="frame" x="17" y="443" width="118" height="17"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Version alpha 0.54" id="559">
+                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Version alpha 0.55" id="559">
                             <font key="font" metaFont="system"/>
                             <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
                             <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                 <outlet property="EDbranchUnitTV" destination="4Qh-wd-Vkd" id="GxB-uP-Oa1"/>
                 <outlet property="EDbranchUnitTeam" destination="bw4-oE-hZH" id="Vn1-Vf-LCu"/>
                 <outlet property="EDbranchUnitValue" destination="GUh-SF-1eo" id="SnW-3U-aUL"/>
+                <outlet property="EDeventTimeTF1" destination="LCC-mq-PsF" id="xQj-nk-1nQ"/>
+                <outlet property="EDeventTimeTF2" destination="89j-NJ-SNG" id="3eZ-Wq-5AU"/>
+                <outlet property="EDeventTrigger" destination="rAO-0J-ajM" id="wf8-1O-86w"/>
                 <outlet property="EDhp1AC" destination="fEW-Dh-30u" id="yTW-ra-ZxX"/>
                 <outlet property="EDhp1TV" destination="Xwe-1P-CYg" id="Erx-4l-IiR"/>
                 <outlet property="EDhp2AC" destination="3IQ-ze-3zY" id="lwS-FX-wEM"/>
                 <outlet property="EDtimerTF1" destination="NcS-6r-bj5" id="ZaS-Ah-io1"/>
                 <outlet property="EDtimerTF2" destination="gmG-4C-wSf" id="oaZ-mP-YTj"/>
                 <outlet property="EDtimerWindow" destination="Cnw-Ln-Ynn" id="MgO-JO-uws"/>
-                <outlet property="EDunitBtn" destination="K0y-aM-J2b" id="5hi-nE-I8U"/>
-                <outlet property="EDunitPUB" destination="bYx-Q2-5ul" id="A81-x8-7m3"/>
                 <outlet property="EDvalueAC" destination="37K-9A-DeL" id="nCL-1o-tUl"/>
                 <outlet property="EDvalueSetWIndow" destination="vCd-mx-DZf" id="dDe-T0-qno"/>
                 <outlet property="EDvalueTV" destination="rq5-pj-WYL" id="6KQ-zD-PZv"/>
                 <outlet property="topName" destination="870" id="ndk-B5-RuD"/>
             </connections>
         </customObject>
+        <customObject id="uJI-Be-wdu" customClass="LevelList">
+            <connections>
+                <outlet property="levelListAC1" destination="A8Z-3g-Ph1" id="Bpt-SM-4Wc"/>
+                <outlet property="levelListAC2" destination="Emr-ho-xrS" id="ziT-hz-IDn"/>
+                <outlet property="levelListAC3" destination="o1D-3J-bih" id="0Al-TP-qLu"/>
+                <outlet property="levelListTV1" destination="8xp-0M-W7f" id="3cW-AY-j1z"/>
+                <outlet property="levelListTV2" destination="dJb-ef-LFc" id="jWx-Kt-qpj"/>
+                <outlet property="levelWindow" destination="N2U-Rv-jyJ" id="3TT-Jv-15v"/>
+            </connections>
+        </customObject>
+        <arrayController id="A8Z-3g-Ph1" userLabel="levelListAC1">
+            <connections>
+                <binding destination="uJI-Be-wdu" name="contentArray" keyPath="levelListMA1" id="4zJ-36-dYc"/>
+            </connections>
+        </arrayController>
+        <arrayController id="Emr-ho-xrS" userLabel="levelListAC2">
+            <connections>
+                <binding destination="uJI-Be-wdu" name="contentArray" keyPath="levelListMA2" id="IN7-Ex-XiM"/>
+            </connections>
+        </arrayController>
+        <arrayController id="o1D-3J-bih" userLabel="levelListAC3">
+            <connections>
+                <binding destination="uJI-Be-wdu" name="contentArray" keyPath="levelListMA3" id="rpg-ax-5pf"/>
+            </connections>
+        </arrayController>
         <arrayController id="SDf-7k-75Z" userLabel="EDbranchSuicchiAC">
             <connections>
                 <binding destination="3826" name="contentArray" keyPath="EDbranchSuicchiMA" id="sbG-s0-mlG"/>
                         </scroller>
                     </scrollView>
                     <button verticalHuggingPriority="750" id="9713">
-                        <rect key="frame" x="11" y="179" width="105" height="32"/>
+                        <rect key="frame" x="11" y="157" width="105" height="32"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                         <buttonCell key="cell" type="push" title="タイトルへ" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="9714">
                             <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
                             <action selector="removeTextList:" target="9720" id="Oev-Lb-J1u"/>
                         </connections>
                     </button>
+                    <button verticalHuggingPriority="750" id="ZxN-t6-AVd">
+                        <rect key="frame" x="11" y="190" width="100" height="32"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="push" title="レベル追加" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="GdB-6l-UDi">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" size="13" name="HiraKakuProN-W3"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="levelEditor:" target="uJI-Be-wdu" id="18t-Hs-r2C"/>
+                        </connections>
+                    </button>
                 </subviews>
             </view>
         </window>
         <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="rCv-M4-34U" userLabel="イベントウィンドウ詳細">
             <windowStyleMask key="styleMask" titled="YES"/>
             <rect key="contentRect" x="678" y="400" width="640" height="480"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
             <view key="contentView" id="qdx-SO-LTa">
                 <rect key="frame" x="0.0" y="0.0" width="640" height="480"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <box autoresizesSubviews="NO" title="発動条件" borderType="line" id="uiV-wM-zIV">
-                        <rect key="frame" x="7" y="16" width="223" height="389"/>
-                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <view key="contentView">
-                            <rect key="frame" x="1" y="1" width="221" height="373"/>
-                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                            <subviews>
-                                <textField verticalHuggingPriority="750" id="TNN-Ng-Vih">
-                                    <rect key="frame" x="36" y="167" width="96" height="22"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Z3A-pb-Tfg">
-                                        <font key="font" metaFont="system"/>
-                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                                <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="TEX-B8-Ahk">
-                                    <rect key="frame" x="12" y="249" width="97" height="94"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <clipView key="contentView" id="ms6-k3-iQy">
-                                        <rect key="frame" x="1" y="1" width="95" height="92"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                        <subviews>
-                                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="el7-mT-iKE">
-                                                <rect key="frame" x="0.0" y="0.0" width="95" height="19"/>
-                                                <autoresizingMask key="autoresizingMask"/>
-                                                <size key="intercellSpacing" width="3" height="2"/>
-                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
-                                                <tableColumns>
-                                                    <tableColumn editable="NO" width="92" minWidth="40" maxWidth="1000" id="JUj-UJ-hFL">
-                                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
-                                                            <font key="font" metaFont="smallSystem"/>
-                                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
-                                                        </tableHeaderCell>
-                                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="tIz-1l-YKn">
-                                                            <font key="font" metaFont="system"/>
-                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                        </textFieldCell>
-                                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
-                                                        <connections>
-                                                            <binding destination="AFK-Ig-Gpn" name="value" keyPath="arrangedObjects.value" id="a1T-xl-ivl">
-                                                                <dictionary key="options">
-                                                                    <bool key="NSCreatesSortDescriptor" value="NO"/>
-                                                                </dictionary>
-                                                            </binding>
-                                                        </connections>
-                                                    </tableColumn>
-                                                </tableColumns>
-                                            </tableView>
-                                        </subviews>
-                                        <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </clipView>
-                                    <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="1mW-C8-lhZ">
-                                        <rect key="frame" x="1" y="20" width="161" height="16"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                    <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="yWS-lO-tW7">
-                                        <rect key="frame" x="224" y="17" width="15" height="102"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                </scrollView>
-                                <button id="K0y-aM-J2b">
-                                    <rect key="frame" x="10" y="143" width="100" height="18"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <buttonCell key="cell" type="check" title="ユニットの数" bezelStyle="regularSquare" imagePosition="left" inset="2" id="oFc-ot-0A6">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" size="13" name="AquaKana"/>
-                                    </buttonCell>
-                                </button>
-                                <popUpButton verticalHuggingPriority="750" id="bYx-Q2-5ul">
-                                    <rect key="frame" x="10" y="113" width="205" height="26"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="ptf-pn-LEm" id="aL0-eH-Pkn">
-                                        <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="menu"/>
-                                        <menu key="menu" title="OtherViews" id="sKi-GT-EZg">
-                                            <items>
-                                                <menuItem title="Item 1" state="on" id="ptf-pn-LEm"/>
-                                                <menuItem title="Item 2" id="xO9-Lx-8Gd"/>
-                                                <menuItem title="Item 3" id="77J-tK-5UG"/>
-                                            </items>
-                                        </menu>
-                                    </popUpButtonCell>
-                                </popUpButton>
-                                <button id="tI3-OG-GK5">
-                                    <rect key="frame" x="10" y="41" width="191" height="18"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <buttonCell key="cell" type="check" title="ユニットが以下を選択した時" bezelStyle="regularSquare" imagePosition="left" inset="2" id="qxy-mW-Jya">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" size="13" name="AquaKana"/>
-                                    </buttonCell>
-                                </button>
-                                <popUpButton verticalHuggingPriority="750" id="e6h-Dv-FJs">
-                                    <rect key="frame" x="10" y="11" width="205" height="26"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <popUpButtonCell key="cell" type="push" title="待機" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="8hJ-Yx-JFq" id="a1a-lR-kSS">
-                                        <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="menu"/>
-                                        <menu key="menu" title="OtherViews" id="3bG-aC-1JA">
-                                            <items>
-                                                <menuItem title="待機" state="on" id="8hJ-Yx-JFq"/>
-                                                <menuItem title="攻撃" id="xWp-bL-Mpj"/>
-                                                <menuItem title="説得" id="i4g-MB-K4R"/>
-                                            </items>
-                                        </menu>
-                                    </popUpButtonCell>
-                                </popUpButton>
-                                <button id="N7b-Kl-HEP">
-                                    <rect key="frame" x="114" y="347" width="100" height="18"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <buttonCell key="cell" type="check" title="スイッチOFF" bezelStyle="regularSquare" imagePosition="left" inset="2" id="tPn-sX-oeB">
-                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
-                                        <font key="font" size="13" name="AquaKana"/>
-                                    </buttonCell>
-                                </button>
-                                <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="9Kq-mc-lLj">
-                                    <rect key="frame" x="116" y="249" width="96" height="92"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <clipView key="contentView" id="yHg-qj-MIb">
-                                        <rect key="frame" x="1" y="1" width="94" height="90"/>
-                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                                        <subviews>
-                                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="7Vq-ff-JM0">
-                                                <rect key="frame" x="0.0" y="0.0" width="94" height="19"/>
-                                                <autoresizingMask key="autoresizingMask"/>
-                                                <size key="intercellSpacing" width="3" height="2"/>
-                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
-                                                <tableColumns>
-                                                    <tableColumn editable="NO" width="91" minWidth="40" maxWidth="1000" id="osB-c8-Ym4">
-                                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
-                                                            <font key="font" metaFont="smallSystem"/>
-                                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
-                                                        </tableHeaderCell>
-                                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="gFk-IV-8wL">
-                                                            <font key="font" metaFont="system"/>
-                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                                        </textFieldCell>
-                                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
-                                                        <connections>
-                                                            <binding destination="8ZU-c6-Pte" name="value" keyPath="arrangedObjects.value" id="kmn-Ih-r0U">
-                                                                <dictionary key="options">
-                                                                    <bool key="NSCreatesSortDescriptor" value="NO"/>
-                                                                </dictionary>
-                                                            </binding>
-                                                        </connections>
-                                                    </tableColumn>
-                                                </tableColumns>
-                                            </tableView>
-                                        </subviews>
-                                        <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </clipView>
-                                    <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="iEW-Jk-Mfx">
-                                        <rect key="frame" x="1" y="20" width="161" height="16"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                    <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="rzH-je-44c">
-                                        <rect key="frame" x="224" y="17" width="15" height="102"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                    </scroller>
-                                </scrollView>
-                                <textField verticalHuggingPriority="750" id="01u-Ce-tdA">
-                                    <rect key="frame" x="36" y="74" width="96" height="22"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="kdq-8w-qa4">
-                                        <font key="font" metaFont="system"/>
-                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="VFH-HF-IaU">
-                                    <rect key="frame" x="10" y="77" width="17" height="17"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="値" id="8T4-VL-KDN">
-                                        <font key="font" size="13" name="AquaKana"/>
-                                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                                <popUpButton verticalHuggingPriority="750" id="bmo-33-CfM">
-                                    <rect key="frame" x="138" y="71" width="75" height="26"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <popUpButtonCell key="cell" type="push" title="同値" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="hfk-9X-usA" id="bN2-jt-3JW">
-                                        <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
-                                        <font key="font" metaFont="menu"/>
-                                        <menu key="menu" title="OtherViews" id="yWo-CC-i02">
-                                            <items>
-                                                <menuItem title="同値" state="on" id="hfk-9X-usA"/>
-                                                <menuItem title="以上" id="kSI-Cq-Ezz"/>
-                                                <menuItem title="以下" id="Csi-IW-Emk"/>
-                                            </items>
-                                        </menu>
-                                    </popUpButtonCell>
-                                </popUpButton>
-                                <textField verticalHuggingPriority="750" id="5jq-zS-8Nz">
-                                    <rect key="frame" x="180" y="141" width="30" height="22"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="2CC-pg-9or">
-                                        <font key="font" metaFont="system"/>
-                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="Uek-x5-5Mt">
-                                    <rect key="frame" x="138" y="144" width="43" height="17"/>
-                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="チーム" id="tvl-Rd-aMa">
-                                        <font key="font" size="13" name="AquaKana"/>
-                                        <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                        <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
-                                    </textFieldCell>
-                                </textField>
-                            </subviews>
-                        </view>
-                        <color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
-                        <color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
-                    </box>
                     <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="gHg-kw-cjR">
                         <rect key="frame" x="235" y="64" width="406" height="417"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                             <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
                         </textFieldCell>
                     </textField>
-                </subviews>
-            </view>
-        </window>
-        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="vCd-mx-DZf" userLabel="変数リスト">
-            <windowStyleMask key="styleMask" titled="YES"/>
-            <rect key="contentRect" x="678" y="400" width="640" height="442"/>
-            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/>
-            <view key="contentView" id="f4b-3z-KkT">
-                <rect key="frame" x="0.0" y="0.0" width="640" height="442"/>
-                <autoresizingMask key="autoresizingMask"/>
-                <subviews>
-                    <button verticalHuggingPriority="750" id="hh9-nj-eDn">
-                        <rect key="frame" x="547" y="13" width="79" height="32"/>
-                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <buttonCell key="cell" type="push" title="閉じる" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="hW9-Os-yoq">
-                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
-                            <font key="font" size="13" name="AquaKana"/>
-                        </buttonCell>
-                        <connections>
-                            <action selector="EDvarSetClose:" target="3826" id="wqV-DE-6IY"/>
-                        </connections>
-                    </button>
-                    <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="vSy-uR-1yG">
-                        <rect key="frame" x="20" y="81" width="207" height="306"/>
+                    <box autoresizesSubviews="NO" title="発動条件" borderType="line" id="uiV-wM-zIV">
+                        <rect key="frame" x="7" y="16" width="223" height="389"/>
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                        <clipView key="contentView" id="WSx-zf-Gkh">
-                            <rect key="frame" x="1" y="1" width="205" height="304"/>
+                        <view key="contentView">
+                            <rect key="frame" x="1" y="1" width="221" height="373"/>
                             <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                             <subviews>
-                                <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="KiL-6v-fdZ">
-                                    <rect key="frame" x="0.0" y="0.0" width="205" height="19"/>
-                                    <autoresizingMask key="autoresizingMask"/>
-                                    <size key="intercellSpacing" width="3" height="2"/>
-                                    <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                    <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
-                                    <tableColumns>
-                                        <tableColumn editable="NO" width="202" minWidth="40" maxWidth="1000" id="ELp-L1-PAA">
-                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
-                                                <font key="font" metaFont="smallSystem"/>
-                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
-                                            </tableHeaderCell>
-                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="fOt-pD-HVj">
-                                                <font key="font" metaFont="system"/>
-                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
-                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
-                                            </textFieldCell>
-                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
-                                            <connections>
-                                                <binding destination="B7Y-Yq-yrY" name="value" keyPath="arrangedObjects.value" id="5sL-Os-rJz">
-                                                    <dictionary key="options">
+                                <textField verticalHuggingPriority="750" id="TNN-Ng-Vih">
+                                    <rect key="frame" x="36" y="167" width="96" height="22"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Z3A-pb-Tfg">
+                                        <font key="font" metaFont="system"/>
+                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                                <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="TEX-B8-Ahk">
+                                    <rect key="frame" x="12" y="249" width="97" height="94"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <clipView key="contentView" id="ms6-k3-iQy">
+                                        <rect key="frame" x="1" y="1" width="95" height="92"/>
+                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                        <subviews>
+                                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="el7-mT-iKE">
+                                                <rect key="frame" x="0.0" y="0.0" width="95" height="19"/>
+                                                <autoresizingMask key="autoresizingMask"/>
+                                                <size key="intercellSpacing" width="3" height="2"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                                <tableColumns>
+                                                    <tableColumn editable="NO" width="92" minWidth="40" maxWidth="1000" id="JUj-UJ-hFL">
+                                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
+                                                            <font key="font" metaFont="smallSystem"/>
+                                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                            <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
+                                                        </tableHeaderCell>
+                                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="tIz-1l-YKn">
+                                                            <font key="font" metaFont="system"/>
+                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                                        </textFieldCell>
+                                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                                        <connections>
+                                                            <binding destination="AFK-Ig-Gpn" name="value" keyPath="arrangedObjects.value" id="a1T-xl-ivl">
+                                                                <dictionary key="options">
+                                                                    <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                                </dictionary>
+                                                            </binding>
+                                                        </connections>
+                                                    </tableColumn>
+                                                </tableColumns>
+                                            </tableView>
+                                        </subviews>
+                                        <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </clipView>
+                                    <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="1mW-C8-lhZ">
+                                        <rect key="frame" x="1" y="20" width="161" height="16"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                    </scroller>
+                                    <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="yWS-lO-tW7">
+                                        <rect key="frame" x="224" y="17" width="15" height="102"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                    </scroller>
+                                </scrollView>
+                                <button id="N7b-Kl-HEP">
+                                    <rect key="frame" x="114" y="347" width="100" height="18"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <buttonCell key="cell" type="check" title="スイッチOFF" bezelStyle="regularSquare" imagePosition="left" inset="2" id="tPn-sX-oeB">
+                                        <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
+                                        <font key="font" size="13" name="AquaKana"/>
+                                    </buttonCell>
+                                </button>
+                                <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="9Kq-mc-lLj">
+                                    <rect key="frame" x="116" y="249" width="96" height="92"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <clipView key="contentView" id="yHg-qj-MIb">
+                                        <rect key="frame" x="1" y="1" width="94" height="90"/>
+                                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                                        <subviews>
+                                            <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="7Vq-ff-JM0">
+                                                <rect key="frame" x="0.0" y="0.0" width="94" height="19"/>
+                                                <autoresizingMask key="autoresizingMask"/>
+                                                <size key="intercellSpacing" width="3" height="2"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                                <tableColumns>
+                                                    <tableColumn editable="NO" width="91" minWidth="40" maxWidth="1000" id="osB-c8-Ym4">
+                                                        <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
+                                                            <font key="font" metaFont="smallSystem"/>
+                                                            <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                            <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
+                                                        </tableHeaderCell>
+                                                        <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="gFk-IV-8wL">
+                                                            <font key="font" metaFont="system"/>
+                                                            <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                                        </textFieldCell>
+                                                        <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                                        <connections>
+                                                            <binding destination="8ZU-c6-Pte" name="value" keyPath="arrangedObjects.value" id="kmn-Ih-r0U">
+                                                                <dictionary key="options">
+                                                                    <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                                </dictionary>
+                                                            </binding>
+                                                        </connections>
+                                                    </tableColumn>
+                                                </tableColumns>
+                                            </tableView>
+                                        </subviews>
+                                        <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </clipView>
+                                    <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="iEW-Jk-Mfx">
+                                        <rect key="frame" x="1" y="20" width="161" height="16"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                    </scroller>
+                                    <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="rzH-je-44c">
+                                        <rect key="frame" x="224" y="17" width="15" height="102"/>
+                                        <autoresizingMask key="autoresizingMask"/>
+                                    </scroller>
+                                </scrollView>
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="9gR-TO-UzO">
+                                    <rect key="frame" x="11" y="78" width="56" height="17"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="終了判定" id="59w-GD-VeI">
+                                        <font key="font" size="13" name="HiraKakuProN-W3"/>
+                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                                <popUpButton verticalHuggingPriority="750" id="rAO-0J-ajM">
+                                    <rect key="frame" x="111" y="73" width="100" height="26"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <popUpButtonCell key="cell" type="push" title="トリガー後" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="y24-aq-LfS" id="hLY-vT-Ywb">
+                                        <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
+                                        <font key="font" metaFont="menu"/>
+                                        <menu key="menu" id="xgh-69-4hR">
+                                            <items>
+                                                <menuItem title="トリガー後" state="on" id="y24-aq-LfS"/>
+                                                <menuItem title="実行後" id="kCu-6X-fPc"/>
+                                                <menuItem title="成功後" id="8ZD-VZ-KxT"/>
+                                                <menuItem title="失敗後" id="3uK-ru-9mC"/>
+                                                <menuItem title="しない" id="ujB-jI-XcT"/>
+                                            </items>
+                                        </menu>
+                                    </popUpButtonCell>
+                                </popUpButton>
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="paX-Oi-lAa">
+                                    <rect key="frame" x="9" y="140" width="129" height="17"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="イベントトリガーWT" id="DB0-nN-S9r">
+                                        <font key="font" size="13" name="HiraKakuProN-W3"/>
+                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                                <textField verticalHuggingPriority="750" id="LCC-mq-PsF">
+                                    <rect key="frame" x="13" y="107" width="60" height="22"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" title="0" drawsBackground="YES" id="09C-dn-lcr">
+                                        <font key="font" metaFont="system"/>
+                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                                <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="zTV-ka-7uf">
+                                    <rect key="frame" x="90" y="111" width="30" height="17"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="から" id="GKY-E1-ZdP">
+                                        <font key="font" size="13" name="HiraKakuProN-W3"/>
+                                        <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                                <textField verticalHuggingPriority="750" id="89j-NJ-SNG">
+                                    <rect key="frame" x="134" y="107" width="60" height="22"/>
+                                    <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                    <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" title="0" drawsBackground="YES" id="E1K-35-SvA">
+                                        <font key="font" metaFont="system"/>
+                                        <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
+                                        <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    </textFieldCell>
+                                </textField>
+                            </subviews>
+                        </view>
+                        <color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
+                        <color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
+                    </box>
+                </subviews>
+            </view>
+        </window>
+        <window title="Window" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="vCd-mx-DZf" userLabel="変数リスト">
+            <windowStyleMask key="styleMask" titled="YES"/>
+            <rect key="contentRect" x="678" y="400" width="640" height="442"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/>
+            <view key="contentView" id="f4b-3z-KkT">
+                <rect key="frame" x="0.0" y="0.0" width="640" height="442"/>
+                <autoresizingMask key="autoresizingMask"/>
+                <subviews>
+                    <button verticalHuggingPriority="750" id="hh9-nj-eDn">
+                        <rect key="frame" x="547" y="13" width="79" height="32"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="push" title="閉じる" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="hW9-Os-yoq">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" size="13" name="AquaKana"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="EDvarSetClose:" target="3826" id="wqV-DE-6IY"/>
+                        </connections>
+                    </button>
+                    <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="vSy-uR-1yG">
+                        <rect key="frame" x="20" y="81" width="207" height="306"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <clipView key="contentView" id="WSx-zf-Gkh">
+                            <rect key="frame" x="1" y="1" width="205" height="304"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" id="KiL-6v-fdZ">
+                                    <rect key="frame" x="0.0" y="0.0" width="205" height="19"/>
+                                    <autoresizingMask key="autoresizingMask"/>
+                                    <size key="intercellSpacing" width="3" height="2"/>
+                                    <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                    <tableColumns>
+                                        <tableColumn editable="NO" width="202" minWidth="40" maxWidth="1000" id="ELp-L1-PAA">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="fOt-pD-HVj">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="B7Y-Yq-yrY" name="value" keyPath="arrangedObjects.value" id="5sL-Os-rJz">
+                                                    <dictionary key="options">
                                                         <bool key="NSCreatesSortDescriptor" value="NO"/>
                                                     </dictionary>
                                                 </binding>
                                                 <autoresizingMask key="autoresizingMask"/>
                                             </scroller>
                                         </scrollView>
-                                        <popUpButton verticalHuggingPriority="750" id="n3n-JE-hXH">
-                                            <rect key="frame" x="68" y="77" width="75" height="26"/>
-                                            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                                            <popUpButtonCell key="cell" type="push" title="と同値" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="sha-9K-8IT" id="X4x-xi-Jy3">
-                                                <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
-                                                <font key="font" metaFont="menu"/>
-                                                <menu key="menu" title="OtherViews" id="kdS-Mx-S5A">
-                                                    <items>
-                                                        <menuItem title="と同値" state="on" id="sha-9K-8IT"/>
-                                                        <menuItem title="以上" id="eKf-Zj-ee1"/>
-                                                        <menuItem title="以下" id="B5C-8A-cO6"/>
-                                                        <menuItem title="超" id="ugh-5h-mYn"/>
-                                                        <menuItem title="未満" id="NFt-V2-xXn"/>
-                                                        <menuItem title="以外" id="bVc-DI-Pwf"/>
-                                                    </items>
-                                                </menu>
-                                            </popUpButtonCell>
-                                        </popUpButton>
                                         <button id="Xjq-aZ-v3u">
                                             <rect key="frame" x="15" y="34" width="74" height="18"/>
                                             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
                                                 </menu>
                                             </popUpButtonCell>
                                         </popUpButton>
+                                        <popUpButton verticalHuggingPriority="750" id="n3n-JE-hXH">
+                                            <rect key="frame" x="68" y="77" width="75" height="26"/>
+                                            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                                            <popUpButtonCell key="cell" type="push" title="と同値" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="sha-9K-8IT" id="X4x-xi-Jy3">
+                                                <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
+                                                <font key="font" metaFont="menu"/>
+                                                <menu key="menu" title="OtherViews" id="kdS-Mx-S5A">
+                                                    <items>
+                                                        <menuItem title="と同値" state="on" id="sha-9K-8IT"/>
+                                                        <menuItem title="以上" id="eKf-Zj-ee1"/>
+                                                        <menuItem title="以下" id="B5C-8A-cO6"/>
+                                                        <menuItem title="超" id="ugh-5h-mYn"/>
+                                                        <menuItem title="未満" id="NFt-V2-xXn"/>
+                                                        <menuItem title="以外" id="bVc-DI-Pwf"/>
+                                                    </items>
+                                                </menu>
+                                            </popUpButtonCell>
+                                        </popUpButton>
                                     </subviews>
                                 </view>
                             </tabViewItem>
             </view>
             <point key="canvasLocation" x="-1045" y="819"/>
         </window>
+        <window allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" showsToolbarButton="NO" visibleAtLaunch="NO" animationBehavior="default" id="N2U-Rv-jyJ" userLabel="レベルリスト">
+            <windowStyleMask key="styleMask" titled="YES"/>
+            <rect key="contentRect" x="196" y="207" width="640" height="480"/>
+            <rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
+            <view key="contentView" id="vYB-Jb-2M3">
+                <rect key="frame" x="0.0" y="0.0" width="640" height="480"/>
+                <autoresizingMask key="autoresizingMask"/>
+                <subviews>
+                    <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="T67-37-qbJ">
+                        <rect key="frame" x="12" y="455" width="95" height="17"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="シナリオリスト" id="dy1-xJ-mSg">
+                            <font key="font" size="13" name="HiraKakuProN-W3"/>
+                            <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
+                            <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                        </textFieldCell>
+                    </textField>
+                    <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="p08-0N-ode">
+                        <rect key="frame" x="14" y="258" width="367" height="189"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <clipView key="contentView" id="7yl-5i-90h">
+                            <rect key="frame" x="1" y="17" width="365" height="171"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" headerView="VKS-df-6WX" id="8xp-0M-W7f">
+                                    <rect key="frame" x="0.0" y="0.0" width="365" height="19"/>
+                                    <autoresizingMask key="autoresizingMask"/>
+                                    <size key="intercellSpacing" width="3" height="2"/>
+                                    <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                    <tableColumns>
+                                        <tableColumn width="183.88671875" minWidth="40" maxWidth="1000" id="TP4-BE-NKE">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="レベルタイトル名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Text" id="uK1-xI-M0q">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="A8Z-3g-Ph1" name="value" keyPath="arrangedObjects.name" id="4xW-bq-drj">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                        <tableColumn width="175" minWidth="10" maxWidth="3.4028234663852886e+38" id="WUU-ES-CBr">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="イメージ名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="ZuP-ff-rv8">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="A8Z-3g-Ph1" name="value" keyPath="arrangedObjects.img" id="asP-KD-IHe">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                    </tableColumns>
+                                </tableView>
+                            </subviews>
+                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                        </clipView>
+                        <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="Rmk-eC-MbX">
+                            <rect key="frame" x="1" y="117.36110764741898" width="237" height="16"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="Cs1-mh-6ms">
+                            <rect key="frame" x="224" y="17" width="15" height="102"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <tableHeaderView key="headerView" id="VKS-df-6WX">
+                            <rect key="frame" x="0.0" y="0.0" width="10000" height="17"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </tableHeaderView>
+                    </scrollView>
+                    <button verticalHuggingPriority="750" id="cyk-X1-AGv">
+                        <rect key="frame" x="560" y="27" width="66" height="32"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="push" title="決定" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="eXZ-So-vX2">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" size="13" name="HiraKakuProN-W3"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="submit:" target="uJI-Be-wdu" id="7qd-m6-oeN"/>
+                        </connections>
+                    </button>
+                    <button verticalHuggingPriority="750" id="4Ah-IG-D39">
+                        <rect key="frame" x="340" y="430" width="21" height="18"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="smallSquare" title="+" bezelStyle="smallSquare" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="RQa-cC-sky">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" metaFont="system"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="ins1:" target="uJI-Be-wdu" id="tsb-sP-0mC"/>
+                        </connections>
+                    </button>
+                    <button verticalHuggingPriority="750" id="I9X-Y9-dq0">
+                        <rect key="frame" x="360" y="430" width="21" height="18"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="smallSquare" title="-" bezelStyle="smallSquare" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="69B-3v-c9N">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" metaFont="system"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="del1:" target="uJI-Be-wdu" id="Y6J-ft-4Oj"/>
+                        </connections>
+                    </button>
+                    <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="3ht-XS-EIS">
+                        <rect key="frame" x="389" y="258" width="237" height="189"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <clipView key="contentView" id="51o-r3-OWC">
+                            <rect key="frame" x="1" y="17" width="235" height="171"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" headerView="JBT-YZ-b47" id="HFp-eN-xTm">
+                                    <rect key="frame" x="0.0" y="0.0" width="236" height="19"/>
+                                    <autoresizingMask key="autoresizingMask"/>
+                                    <size key="intercellSpacing" width="3" height="2"/>
+                                    <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                    <tableColumns>
+                                        <tableColumn editable="NO" width="232" minWidth="40" maxWidth="1000" id="qAN-cB-0l3">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="mapファイルリスト参考">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Text" id="o1J-RI-geG">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="o1D-3J-bih" name="value" keyPath="arrangedObjects.name" id="meW-gh-Le3">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                    </tableColumns>
+                                </tableView>
+                            </subviews>
+                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                        </clipView>
+                        <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="Hbz-bR-2Dq">
+                            <rect key="frame" x="1" y="119" width="223" height="15"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="dbh-7U-RGG">
+                            <rect key="frame" x="224" y="17" width="15" height="102"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <tableHeaderView key="headerView" id="JBT-YZ-b47">
+                            <rect key="frame" x="0.0" y="0.0" width="238" height="17"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </tableHeaderView>
+                    </scrollView>
+                    <scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="ZK4-Kx-udo">
+                        <rect key="frame" x="14" y="67" width="612" height="177"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <clipView key="contentView" id="oBj-a7-gH0">
+                            <rect key="frame" x="1" y="17" width="610" height="159"/>
+                            <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
+                            <subviews>
+                                <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" columnSelection="YES" columnResizing="NO" multipleSelection="NO" autosaveColumns="NO" headerView="Y1X-N2-oXH" id="dJb-ef-LFc">
+                                    <rect key="frame" x="0.0" y="0.0" width="610" height="19"/>
+                                    <autoresizingMask key="autoresizingMask"/>
+                                    <size key="intercellSpacing" width="3" height="2"/>
+                                    <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                    <color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
+                                    <tableColumns>
+                                        <tableColumn width="176.1953125" minWidth="40" maxWidth="1000" id="NcM-O0-zQG">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="mapシナリオ名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" title="Text" id="Bpe-jB-f0T">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="Emr-ho-xrS" name="value" keyPath="arrangedObjects.name" id="nKm-kh-oWB">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                        <tableColumn width="125.484375" minWidth="10" maxWidth="3.4028234663852886e+38" id="5P2-ca-U3r">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="opファイル名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="wM6-be-r9m">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="Emr-ho-xrS" name="value" keyPath="arrangedObjects.op" id="fIE-Fa-xg2">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                        <tableColumn width="129.4453125" minWidth="10" maxWidth="3.4028234663852886e+38" id="aOS-YE-lpI">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="edファイル名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="ajc-Xq-nre">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="Emr-ho-xrS" name="value" keyPath="arrangedObjects.ed" id="fcH-YP-ogB">
+                                                    <dictionary key="options">
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                        <tableColumn width="168" minWidth="10" maxWidth="3.4028234663852886e+38" id="SWY-YR-8Of">
+                                            <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="mapファイル名">
+                                                <font key="font" metaFont="smallSystem"/>
+                                                <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
+                                            </tableHeaderCell>
+                                            <textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="cwi-gv-1Ee">
+                                                <font key="font" metaFont="system"/>
+                                                <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
+                                                <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                                            </textFieldCell>
+                                            <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
+                                            <connections>
+                                                <binding destination="Emr-ho-xrS" name="value" keyPath="arrangedObjects.map" id="Pwz-pe-v0K">
+                                                    <dictionary key="options">
+                                                        <bool key="NSConditionallySetsEditable" value="YES"/>
+                                                        <bool key="NSCreatesSortDescriptor" value="NO"/>
+                                                    </dictionary>
+                                                </binding>
+                                            </connections>
+                                        </tableColumn>
+                                    </tableColumns>
+                                </tableView>
+                            </subviews>
+                            <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
+                        </clipView>
+                        <scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="Qvl-2M-nGo">
+                            <rect key="frame" x="1" y="119" width="223" height="15"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="SMe-Su-QcL">
+                            <rect key="frame" x="224" y="17" width="15" height="102"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </scroller>
+                        <tableHeaderView key="headerView" id="Y1X-N2-oXH">
+                            <rect key="frame" x="0.0" y="0.0" width="10000" height="17"/>
+                            <autoresizingMask key="autoresizingMask"/>
+                        </tableHeaderView>
+                    </scrollView>
+                    <button verticalHuggingPriority="750" id="qn0-nu-EIa">
+                        <rect key="frame" x="585" y="227" width="21" height="18"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="smallSquare" title="+" bezelStyle="smallSquare" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="ATR-68-yI7">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" metaFont="system"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="ins2:" target="uJI-Be-wdu" id="5QZ-Hi-a4T"/>
+                        </connections>
+                    </button>
+                    <button verticalHuggingPriority="750" id="o5I-Ur-cQn">
+                        <rect key="frame" x="605" y="227" width="21" height="18"/>
+                        <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+                        <buttonCell key="cell" type="smallSquare" title="-" bezelStyle="smallSquare" imagePosition="overlaps" alignment="center" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="WBp-Ld-M7v">
+                            <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                            <font key="font" metaFont="system"/>
+                        </buttonCell>
+                        <connections>
+                            <action selector="del2:" target="uJI-Be-wdu" id="Raw-l8-f3Z"/>
+                        </connections>
+                    </button>
+                </subviews>
+            </view>
+            <point key="canvasLocation" x="327" y="3347"/>
+        </window>
+        <button verticalHuggingPriority="750" id="vcy-zk-hUE">
+            <rect key="frame" x="0.0" y="0.0" width="82" height="32"/>
+            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+            <buttonCell key="cell" type="push" title="Button" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="syL-3L-mHk">
+                <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
+                <font key="font" metaFont="system"/>
+            </buttonCell>
+        </button>
     </objects>
     <resources>
         <image name="BackGround" width="32" height="32"/>