Deleted800173User Posted June 14, 2010 Share Posted June 14, 2010 Hey-o! I'm new to this board.Anyways. I was doing Dtom's modding Tutorial, and I came to this part with a treasure chest that is supposed to have a 3 digit combination lock. The correct combination being 1 4 7. So, I tried using his script for it and it wouldn't work so I made my own, but the correct answer dosn't seem to work. Can ya help me out fellow moddies?Here is the script I'm using : scn bgmchest2short button1short button2short button3short digitbegin onactivateif bgm001.digit == 7 ;(I started using variables declared in the quest script on an earlier attempt. They are still declared there.)activateelseif bgm001.digit == 0messagebox "What is the first digit?", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"set bgm001.digit to 1endifif bgm001.digit == 2messagebox "What is the second digit?", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"set bgm001.digit to 3endifif bgm001.digit == 4messagebox "What is the third digit?", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"set bgm001.digit to 5endifendifendbegin gamemodeif bgm001.digit == 1 && getbuttonpressed > -1set bgm001.button1 to getbuttonpressedset bgm001.digit to 2endifif bgm001.digit == 3 && getbuttonpressed > -1set bgm001.button2 to getbuttonpressedset bgm001.digit to 4endifif bgm001.digit == 5 && getbuttonpressed > -1set bgm001.button3 to getbuttonpressedset bgm001.digit to 6endifif bgm001.digit == 6if bgm001.button1 == 1 && bgm001.button2 == 4 && bgm001.button3 == 7messagebox "You hear a small click from inside the chest"set bgm001.digit to 7elsemessagebox "The chest dosn't budge no matter how hard you try"set bgm001.digit to 0endifendifend Link to comment Share on other sites More sharing options...
Recommended Posts