Jump to content

Photo

permanent combo change


  • Please log in to reply
5 replies to this topic

#1 nyrox

nyrox

    Junior

  • Members
  • Location:Québec

Posted 05 October 2020 - 10:00 PM

in 2.53 beta 52

 

normaly with this command

 

Game->SetComboData()

the combo was change permanenlly in the progess  of the game.

 

when i return in the map a change a combo it  was change all time a come back 

 

if a make a end game and continue all is ok the combo change with  Game->SetComboData() left change

 

if a make a end game  and save  in the menu and I load the game after the combo was change  return to the initiate combo before change?? 

 

why?? 


Edited by nyrox, 05 October 2020 - 10:12 PM.

  • Bagu likes this

#2 Jamian

Jamian

    ZC enthusiast

  • Members

Posted 06 October 2020 - 04:40 AM

SetComboData only applies for the current game. Once you quit and restart the quest, the combos will be back to their original state. I don't think there's a function to make a combo change truly permanently.



#3 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 06 October 2020 - 05:04 AM

Maybe you can handle it,with an additional "On Save/Load" script.
...just an idea, of a scripting noob ;) Don't know if it's possible.



#4 cavthena

cavthena

    Apprentice

  • Members
  • Real Name:Clayton
  • Location:I wish I knew

Posted 06 October 2020 - 11:53 AM

I assume if you're using scripts then screen secrets are not available or whatever reason?



#5 nyrox

nyrox

    Junior

  • Members
  • Location:Québec

Posted 06 October 2020 - 09:28 PM

i known with a freeform FFC with run script at screen init  and change the combo  with a script....  but i need again to do that for all the screen i have make change a lot of work again snif

 

 

but, change of the data of the global variable seems to be permanent.

 

it is possible to create a global script.

when loading  a game do the combo change before  loading the continue screen...


Edited by nyrox, 06 October 2020 - 09:54 PM.

  • Bagu likes this

#6 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 07 October 2020 - 02:39 PM

In 2.55 you can use SaveSRAM() to save all of the changes to a file, and LoadSRAM() to load it back on load.


  • Bagu likes this


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users