This is one possible solution.
Prerequisites: AkyV_Mix01 plugin, six consecutive strings in the [Strings] section and the Last Input Number variable.
It is assumed that the secret is triggered only after picking up the secret item.
In the [Strings] section, place six consecutive strings like these:
Code:
Secret
2 x Secret
3 x Secret
4 x Secret
5 x Secret
6 x Secret
In the script, define some constants:
Code:
#DEFINE IDGT 1 ; First free Global Trigger ID
#DEFINE IDTG 1 ; First free Trigger Group ID
#DEFINE IDSW 1 ; First free Switch ID
#DEFINE IDPR 1 ; First free PARAM_INVENTORY_ITEM ID
#DEFINE IDST 33 ; First string ID
The commands above are the only ones that need to be changed.
After that, a Global Trigger to run some Trigger Groups:
Code:
; Set Trigger Type - FLIPEFFECT 289
; Exporting: TRIGGER(1:0) for FLIPEFFECT(289) {Tomb_NextGeneration}
; <#> : Switch. Perform the <&>Switch script command
; <&> : Switch= 1
; (E) :
; Values to add in script command: $2000, 289, $1
; Set Trigger Type - FLIPEFFECT 244
; Exporting: TRIGGER(19765:0) for FLIPEFFECT(244) {Tomb_NextGeneration}
; <#> : Variables. Memory. Copy to <&>Numeric Variable the (E)Savegame Memory value
; <&> : Last Input Number
; (E) : Statistics. Secrets (Byte)
; Values to add in script command: $2000, 244, $4D35
GlobalTrigger= IDGT,IGNORE,GT_ALWAYS,IGNORE,IGNORE,IDTG,IGNORE
TriggerGroup= IDTG,$2000,289,IDSW,$2000,244,$4D35
Switch= IDSW,IGNORE,IGNORE,IDTG+1,IDTG+2,IDTG+3,IDTG+4,IDTG+5,IDTG+6
And finally, the main commands:
Code:
; Set Trigger Type - FLIPEFFECT 584
; Exporting: TRIGGER(24065:0) for FLIPEFFECT(584) {Plugin_AkyVMix01}
; <#> : Inventory-Item. Set <&> parameters for (E) inventory item
; <&> : Parameters=PARAM_INVENTORY_ITEM, 1
; (E) : PICKUP_ITEM2
; WARNING:
; If you'll give this trigger to other people or you'll use it with a script.txt different than current
; you should add to the script, first of triggergroup where you'll use this trigger, the following line:
; #define @Plugin_AkyVMix01 2
; Values to add in script command: $022000, 584, $5E01
#DEFINE @Plugin_AkyVMix01 2
TriggerGroup= IDTG+1,$022000,584,$5E00+IDPR
Parameters= PARAM_INVENTORY_ITEM,IDPR,IDST,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
TriggerGroup= IDTG+2,$022000,584,$5E00+IDPR+1
Parameters= PARAM_INVENTORY_ITEM,IDPR+1,IDST+1,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
TriggerGroup= IDTG+3,$022000,584,$5E00+IDPR+2
Parameters= PARAM_INVENTORY_ITEM,IDPR+2,IDST+2,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
TriggerGroup= IDTG+4,$022000,584,$5E00+IDPR+3
Parameters= PARAM_INVENTORY_ITEM,IDPR+3,IDST+3,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
TriggerGroup= IDTG+5,$022000,584,$5E00+IDPR+4
Parameters= PARAM_INVENTORY_ITEM,IDPR+4,IDST+4,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
TriggerGroup= IDTG+6,$022000,584,$5E00+IDPR+5
Parameters= PARAM_INVENTORY_ITEM,IDPR+5,IDST+5,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE,IGNORE
#DEFINE @plugins CLEAR