This is what tifreak has as his "matrix event checker" on his tutorial:
Code:
Now, since I will have universal events for the different map symbols (i.e. a "B" will always stand for a bonus supply stash that fully stocks all of your ammo and health), I took from the movement program the sub() command and ended up with the following:
Code:
At one point, it worked, but only when you stepped OFF of the event spot. Now it doesn't do anything.
Code:
prgmYCH:
:ClrHome
:If [A](C,D)=3:Then
:If L=1 and M=1:Then
:ClrHome
:Disp "THERE IS NO","VILLAGE
:Pause
:C-1→C
:prgmYLVL
:End:End
:If [A](C,D)=4:Then
:If L=2 and M=2:Then
:Disp "THERE IS NO","TOWER
:Pause
:prgmYLVL
:D-1→D
:End:End
Now, since I will have universal events for the different map symbols (i.e. a "B" will always stand for a bonus supply stash that fully stocks all of your ammo and health), I took from the movement program the sub() command and ended up with the following:
Code:
:If sub(Str4,T,1)="B":Then
:ClrDraw
:Text(15,10,Str2," FOUND A BONUS SUPPLY STASH!
:Text(25,10,Str2," STOCKED UP ON AMMO.
:Pause
:ClrDraw
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
://increase ammo code will go here
:End
:If sub(Str4,T,1)="P":Then
:ClrDraw
:Text(15,10,"THIS IS A SIDE
:Text(25,10,"PORTAL THAT TAKES YOU
:Text(35,10,"BACK TO THE START (JUST
:Text(45,10,"FOR THE FUN OF IT)
:Pause
:ClrDraw
:4→Q
:2→P
:1→L
:2→M
:prgmZLVL
:End
:If sub(Str4,T,1)="G":Then
:Y+1→Y
:"?→L //not sure what the starting positions will be on the next level
:"?→M //not sure what the starting positions will be on the next level
:"?→Q //not sure what the starting positions will be on the next level
:"?→P //not sure what the starting positions will be on the next level
:End
At one point, it worked, but only when you stepped OFF of the event spot. Now it doesn't do anything.