Map Event, Same as Characters Action button:
◆Comment:Show picture wool here
:Comment:I separated the wool and background.
◆Show Picture:#1, Woolbackground, Upper Left (0,0), (100%,100%), 255, Normal
◆Show Picture:#2, ShowWool, Upper Left (0,0), (100%,100%), 255, Normal
◆Text:None, Window, Bottom
:Text:Text about wool
◆Comment:Important variable and label. You can read about the
:Comment:variable in the common event.
:Comment:About the label, read about it at the end of this
:Comment:event.
◆Control Variables:#0015 = 0
◆Control Variables:#0014 = 0
◆Label:TryAgain
◆Comment:Main wool loop
◆Loop
◆Wait:1 frame
◆If:Script:Input.isTriggered('up')
◆Comment:This common event updates the wool picture.
◆Common Event:WoolMess
◆Control Variables:#0014 += 1
◆
:Else
◆If:Script:Input.isTriggered('down')
◆Comment:This common event updates the wool picture.
◆Common Event:WoolMess
◆Control Variables:#0014 += 100
◆
:Else
◆If:Script:Input.isTriggered('left')
◆Comment:This common event updates the wool picture.
◆Common Event:WoolMess
◆Control Variables:#0014 += 1000
◆
:Else
◆If:Script:Input.isTriggered('right')
◆Comment:This common event updates the wool picture.
◆Common Event:WoolMess
◆Control Variables:#0014 += 10000
◆
:End
◆
:End
◆
:End
◆
:End
◆Comment:This is where we check if the combination
:Comment:amounted to anything.
:Comment:'2' is up + up, for example
:Comment:'102' is up + up + down
:Comment:or any combination of those keys.
◆If:#0014 = 102
◆Show Picture:#2, WoolSword, Upper Left (0,0), (100%,100%), 255, Normal
◆Change Items:Carrot + 1
◆Text:None, Window, Bottom
:Text:You made yourself a wool sword!
◆Break Loop
◆
:Else
◆If:#0014 = 1202
◆Show Picture:#2, WoolGlue, Upper Left (0,0), (100%,100%), 255, Normal
◆Change Items:Carrot + 1
◆Text:None, Window, Bottom
:Text:You made yourself a wool glue!
◆Break Loop
◆
:End
◆
:End
◆Comment:This checks if the player has gone offtrack.
:Comment:Right now I know that if the player tries a combination
:Comment:of more than 5 inputs, its pointless to continue.
◆If:#0015 > 5
◆Text:None, Window, Bottom
:Text:That does not seem right.
:Text:Keep going?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Text:None, Window, Bottom
:Text:Alright, let's keep going!
◆Comment:Reset variables and try again
◆Control Variables:#0014 = 0
◆Control Variables:#0015 = 0
◆Comment:We use a label here to simplify the process.
◆Jump to Label:TryAgain
◆
:When No
◆Comment:Breaks loop
◆Text:None, Window, Bottom
:Text:You leave the wool alone.
◆Break Loop
◆
:End
◆
:End
◆
:Repeat Above
◆Comment:Always erases wool pictures when we are done.
◆Erase Picture:#1
◆Erase Picture:#2
--------------------------------------------------------------------------------
Common event 195 'WoolMess':
◆Comment:Pick a random wool picture, make sure
:Comment:it is not the same picture we already displayed.
◆Loop
◆If:Dice ≠ OldDice
◆Break Loop
◆
:Else
◆Control Variables:#0006 Dice = Random 1..4
◆
:End
◆
:Repeat Above
◆Comment:Play the SE here so its easy to change if we ever
:Comment:need to
◆Play SE:Bell3 (10, 100, 0)
◆Comment:This pics a picture to show
◆If:Dice = 1
◆Show Picture:#2, WoolMess1, Upper Left (0,0), (100%,100%), 255, Normal
◆
:Else
◆If:Dice = 2
◆Show Picture:#2, WoolMess2, Upper Left (0,0), (100%,100%), 255, Normal
◆
:Else
◆If:Dice = 3
◆Show Picture:#2, WoolMess3, Upper Left (0,0), (100%,100%), 255, Normal
◆
:Else
◆Show Picture:#2, WoolMess4, Upper Left (0,0), (100%,100%), 255, Normal
◆
:End
◆
:End
◆
:End
◆Comment:Save the dice number so we know we already showed
:Comment:that picture last turn, to avoid repetition.
◆Control Variables:#0007 OldDice = Dice
◆Comment:This variable counts how many times the player has
:Comment:called this function, we use it to arbitrarily stop
:Comment:the wool event if the player is going offtrack.
◆Control Variables:#0015 WoolCycles += 1
------------------------------
Sadly this is mostly unreadable, the 'copy as text' function is really just no good.