MineralZ Survival (Galaxy Script)

This is a discussion on MineralZ Survival (Galaxy Script) within the Starcraft 2 Custom Maps board part of the Starcraft 2 forum category; hey guys, this one is for the more experienced users. With this galaxy script, you can create the stats for ...

Results 1 to 1 of 1
  1. #1
    Sterillium's Avatar
    Sterillium is offline Cleaner


    Array
    Join Date
    Nov 2016
    Location
    Switzerland
    Posts
    409
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    6
    Reputation
    626

    MineralZ Survival (Galaxy Script)

    hey guys, this one is for the more experienced users.
    With this galaxy script, you can create the stats for MineralZ Survival.
    Put your full Handle where i commented it.
    Just edit the Script, and type stats in the Test-Game.



    Code:
    //--------------------------------------------------------------------------------------------------
    // Trigger: Stats
    //--------------------------------------------------------------------------------------------------
    bool gt_Stats (bool testConds, bool runActions) {
        string lv_tempString;
        string lv_tempInteger;
        string bla1;
        fixed bla;
        fixed[14] lv_stats;
        fixed lv_playerid;
        fixed lv_cheatprotection1;
        fixed lv_cheatprotection2;
        int lv_i;
        lv_tempString = "";
    
       //---- Edit Stats ----
        lv_stats[1] = 100;
        lv_stats[2] = 100;
        lv_stats[3] = 100;
        lv_stats[4] = 100;
        lv_stats[5] = 100;
        lv_stats[6] = 100;
        lv_stats[7] = 100;
        lv_stats[8] = 100;
        lv_stats[9] = 100;
        lv_stats[10] = 100;
        lv_stats[11] = 9999; //Level 0-10'000.
        lv_stats[12] = 100;
        lv_stats[13] = 100;
    
        lv_i = 1;
        for ( ; ( (1 >= 0 && lv_i <= 13) || (1 < 0 && lv_i >= 13) ) ; lv_i += 1 ) {
            if ((1.08 >= 1.04)) {
                lv_stats[lv_i] = ModF(lv_stats[lv_i], SquareRoot((lv_i + 17.13)));
            }
            lv_stats[lv_i] *= SquareRoot((lv_i + 4.0));
            lv_stats[lv_i] = ModF(lv_stats[lv_i], SquareRoot((lv_i + 17.13)));
        }
        lv_playerid = StringToFixed(StringReplace("2-S2-1-8607482", "0", 1, 8)); // Your Handle here.
        lv_cheatprotection1 = lv_stats[1];
        lv_i = 2;
        for ( ; ( (1 >= 0 && lv_i <= 13) || (1 < 0 && lv_i >= 13) ) ; lv_i += 1 ) {
            lv_cheatprotection1 *= lv_stats[lv_i];
            lv_cheatprotection1 += 13.17;
            lv_cheatprotection1 = ModF(lv_cheatprotection1, SquareRoot(SquareRoot((lv_playerid + 2.0))));
        }
        lv_cheatprotection2 = SquareRoot(AbsF((1.08 / lv_cheatprotection1)));
        lv_cheatprotection2 -= lv_playerid;
        lv_cheatprotection1 = (Trunc((lv_cheatprotection1 * 100000.0)) / 10000.0); // CP1
        lv_cheatprotection2 = (Trunc((lv_cheatprotection2 * 100000.0)) / 10000.0); // CP2
        
        UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, FixedToText(lv_cheatprotection1, c_fixedPrecisionAny));
        UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, FixedToText(lv_cheatprotection2, c_fixedPrecisionAny));
        
        return true;
    }
    
    
    //--------------------------------------------------------------------------------------------------
    void gt_ExampleUsage_Init () {
        gt_ExampleUsage = TriggerCreate("gt_Stats");
        TriggerAddEventChatMessage(gt_ExampleUsage, c_playerAny, "stats", false);
    }
    //--------------------------------------------------------------------------------------------------
    have fun!

  2. The Following 2 Users Say Thank You to Sterillium For This Useful Post:


Similar Threads

  1. [Request] Mineralz Survival Bank File
    By agentksr in forum Starcraft 2 Custom Maps
    Replies: 18
    Last Post: 07-07-2017, 09:40 PM
  2. mineralz survival bank file
    By nemesis104 in forum Starcraft 2 Hacks, bots and tools
    Replies: 1
    Last Post: 06-16-2017, 05:40 AM
  3. MineralZ Survival By Phantom (Need Bank File!)
    By tonyw0202 in forum Starcraft 2 Custom Maps
    Replies: 2
    Last Post: 04-07-2017, 08:44 AM
  4. Mineralz Survival
    By LusciousFox in forum Starcraft 2 Custom Maps
    Replies: 15
    Last Post: 11-26-2016, 11:19 PM
  5. [Request] Mineralz Survival
    By Rainb1 in forum Starcraft 2 Custom Maps
    Replies: 76
    Last Post: 11-20-2015, 08:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •