For those who need this feature... When a text is finished, it executes a warp.
This does not currently exist, but we could hijack the "Open Shop" text completion action for this (as it is not used in the current 4.5).
1) Modify your DoDrawText.asm script (located in the "GameEngineData\Routines\BASE_4_5\Game\Subroutines\" folder). Around line 279, between the "notEndTrigger:" line and the "CMP #_MORE" line:
Insert that piece of code:
Should now looks like that:
2) Modify your DoDrawBox.asm script (located in the "GameEngineData\Routines\BASE_4_5\Game\Subroutines\" folder). Around line 328, between the "STA gameStatusByte" line and the "JMP notDoneWithBoxDrawOutterLoop" line:
Insert that piece of code:
Should now looks like that:
Voilà, now when you set a text to do a "Open shop" as end action... it will warp when the text closes.
This does not currently exist, but we could hijack the "Open Shop" text completion action for this (as it is not used in the current 4.5).
1) Modify your DoDrawText.asm script (located in the "GameEngineData\Routines\BASE_4_5\Game\Subroutines\" folder). Around line 279, between the "notEndTrigger:" line and the "CMP #_MORE" line:
Insert that piece of code:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; "Open Shop" -> warp
CMP #_ENDSHOP
BNE +notEndShop
LDA textPointer
CLC
ADC #$01
STA textPointer
LDA textPointer+1
ADC #$00
STA textPointer+1
;; "open shop" warps:
LDA textQueued
ORA #%00000100 ;; text warps
STA textQueued
LDA #$00
STA textHandler
JMP endOfText
+notEndShop:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Should now looks like that:
2) Modify your DoDrawBox.asm script (located in the "GameEngineData\Routines\BASE_4_5\Game\Subroutines\" folder). Around line 328, between the "STA gameStatusByte" line and the "JMP notDoneWithBoxDrawOutterLoop" line:
Insert that piece of code:
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; "Open Shop" -> warp
LDA textQueued
AND #%00000100 ;; text warps
BEQ +skipTextWarp
LDA textQueued
AND #%11111011
STA textQueued
WarpToScreen warpToMap, warpToScreen, #$01
+skipTextWarp:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Should now looks like that:
Voilà, now when you set a text to do a "Open shop" as end action... it will warp when the text closes.
Last edited: