• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[request]Save disabler

Status
Not open for further replies.
Level 14
Joined
Oct 6, 2008
Messages
759
Can someone show me is there a way to disable saving while playing? I tried with the classic triggers but I guess there is no way to do this with them. I want to disable save for my map and enable it on certain points ingame.
 
this script should do it's purpose. Make sure you use lastest JassHelper (0.A.2.7)
JASS:
//! zinc

library noSave
{
    dialog d=DialogCreate();
    timer t=CreateTimer();
    
    public boolean allow=false;

    function preventSave()
    {
        if(allow==false)
        {
            DialogDisplay(GetLocalPlayer() , d, true);
            TimerStart(t,0.00,false, function (){
            DialogDisplay(GetLocalPlayer(), d, false);});
        }
    }

    function onInit()
    {
        trigger t=CreateTrigger();
        TriggerRegisterGameEvent(t, EVENT_GAME_SAVE);
        TriggerAddAction(t, function preventSave);
    }

}

//! endzinc
no need to credit

ps: this might look like you can save the game, but due to the dialog warcraft III is not actually saving the map.
To enable saving in your map change the boolean allow to true with event triggers, ect
 
Can someone show me is there a way to disable saving while playing? I tried with the classic triggers but I guess there is no way to do this with them. I want to disable save for my map and enable it on certain points ingame.

Have you ever searched here? > http://www.hiveworkshop.com/forums/spells.php then should you have found > http://www.hiveworkshop.com/forums/...-disable-game-saving-149329/?prev=r=20&page=2 a prevent save system created by TriggerHappy187.
 
Status
Not open for further replies.
Top