Jump to content

Photo

Reset room


  • Please log in to reply
2 replies to this topic

#1 Avaro

Avaro

    >w<

  • Members

Posted 17 June 2013 - 09:28 AM

Is there any way to do what the reset room combo type does, by a script? Or is it possible to make the reset room combo type sensitive?

 

I am having strange issues with the Screen->ComboD[] functions. When I change a combo with that function and then F6 continue, then the screen remembered the combo change and initially changes the combo.

 

 

Edit: If I warp Link to the current screen (even though it seems pointless), would the screen reset that way? If so, does anybody know how I can warp link to the current screen? I have no idea how to do that.

 

Edit2: No it would not. If I rewarp him to the screen, or even if I re enter the screen, the combo wich has been changed by the Screen->ComboD[] function stays changed, until you save and quit. Can anyone help me? Please tell me if a test quest is needed, in case the problem is not understand.

 

Edit3: Important!! I realised, the issue i was describing only happen with the SetLayerComboD(int layer, int pos, int combo) function, not Screen->ComboD[].


Edited by Avataro, 17 June 2013 - 10:53 AM.


#2 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 17 June 2013 - 11:02 AM

Yeah, SetLayerComboD() actually changes the value of the combo saved in the copy of the quest file stored in memory. That doesn't reset until a save-quit. Changes to Screen->ComboD[] will be reset by a warp so you can plan accordingly.

 

States like secrets, which are also undone by Reset Room, can be undone by setting entries in Screen->State[] to false.



#3 Avaro

Avaro

    >w<

  • Members

Posted 17 June 2013 - 11:21 AM

Aha, ok I didn't know that the SetLayerComboD() worked that way! I'll script a work around for my problem, I was just hoping it would be easier to reset the combos. About the screen states, I was already aware of how to reset them.

 

Anyways, thanks for your help MoscowModder!

;D




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users