Restart

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
Dommy
Translator
Translator
Posts: 1866
Joined: 25 Aug 2011, 21:45
Location: Poland
Contact:

Restart

Post by Dommy »

Hello!
Is possible to restart ShootMania solo map via script? I need this to map end ui in invasion.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

Contact me via GALAXY & PURSUIT DISCORD
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Restart

Post by steeffeen »

domino54 wrote:I need this to map end ui in invasion.
sorry, what?
can't you just use the map end sequence by hand?
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    Dommy
    Translator
    Translator
    Posts: 1866
    Joined: 25 Aug 2011, 21:45
    Location: Poland
    Contact:

    Re: Restart

    Post by Dommy »

    Im going to do a popup, when game is over in Invasion solo campaign, with buttons Quit, Save replay and Retry, but I cant find the method to restart map.

    And atm I didnt see end sequence like in trackmania available for sm.
    Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
    FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT

    Contact me via GALAXY & PURSUIT DISCORD
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Restart

    Post by steeffeen »

    ah okay
    you will have a hard job trying to accomplish this ^.^

    well i would say you can't actually perform a restart (which would restart the script as well)
    but i think you should be able to load the same map again, try NextMapIndex for that (just a random guess)
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      User avatar
      kadaz
      Posts: 383
      Joined: 10 Sep 2011, 23:34
      Location: British Columbia
      Contact:

      Re: Restart

      Post by kadaz »

      domino54 wrote:Im going to do a popup, when game is over in Invasion solo campaign, with buttons Quit, Save replay and Retry, but I cant find the method to restart map.

      And atm I didnt see end sequence like in trackmania available for sm.
      Did you find a way to do it?

      I tried SM::RestartMatch(); RestartMap Round, etc etc.

      Nothing.
      US: Meltdown Combat Server: maniaplanet://#join=smrock@SMStorm 十 Offline
      EU: Meltdown Combat Server: maniaplanet://#join=smpage@SMStorm 十 Offline
      US: SMTRAK Startup Server: maniaplanet://#join=tmrock@SMStadium 十 Online
      Post Reply

      Return to “ManiaScript”

      Who is online

      Users browsing this forum: No registered users and 1 guest