speed game Extra

By asakura on Aug 09, 2008

well i didnt update the past 1 because this 1 might not be as good because i was half asleep when i made it i changed sooo many thing over and over theres bound to be many mistakes but from what i see it works haha please try any mistakes comment or comment anyway :p

menu * {
  .Game:dialog -m game game
}
dialog game {
  title "Game"
  size -1 -1 380 470
  option pixels
  button "1" 1, 5 5 70 70, disable 
  button "2" 2, 80 5 70 70, disable 
  button "3" 3, 155 5 70 70, disable 
  button "4" 4, 230 5 70 70, disable 
  button "6" 5, 5 80 70 70, disable 
  button "7" 6, 80 80 70 70, disable 
  button "8" 7, 155 80 70 70, disable 
  button "9" 8, 230 80 70 70, disable 
  button "11" 9, 5 155 70 70, disable 
  button "12" 10, 80 155 70 70, disable 
  button "13" 11, 155 155 70 70, disable 
  button "14" 12, 230 155 70 70, disable 
  button "16" 13, 5 230 70 70, disable 
  button "17" 14, 80 230 70 70, disable 
  button "18" 15, 155 230 70 70, disable 
  button "19" 16, 230 230 70 70, disable 
  button "5" 17, 305 5 70 70, disable 
  button "10" 18, 305 80 70 70, disable 
  button "15" 19, 305 155 70 70, disable 
  button "20" 20, 305 230 70 70, disable 
  button "21" 21, 5 305 70 70, disable 
  button "22" 22, 80 305 70 70, disable 
  button "23" 23, 155 305 70 70, disable 
  button "24" 24, 230 305 70 70, disable 
  button "25" 25, 305 305 70 70, disable 
  text "Timer:" 103, 5 397 30 20
  edit "" 26, 40 395 50 20
  text "Score:" 27, 220 395 30 20
  edit "" 105, 255 395 50 20, read autohs
  text ":time to score:" 101, 145 447 80 20
  button "30" 30, 15 445 60 20
  button "50" 50, 80 445 60 20
  button "80" 80, 230 445 60 20
  button "100" 100, 295 445 60 20
  button "Start" 102, 100 420 150 20, disable
}
dialog hsa {
  title "High scores"
  size -1 -1 380 250
  option pixels
  tab "Results" 6, 5 5 370 240
  text "Time selected:" 1, 100 102 90 20, tab 6
  edit "" 2, 200 100 50 20, read autohs, tab 6
  edit "" 4, 200 130 100 20, read autohs, tab 6
  text "Results!" 5 , 130 70 50 20, tab 6
  text "Points scored:" 3, 110 132 80 20 130, tab 6 
  text "" 7, 130 170 200 20, tab 6
  tab "30 Seconds highscores" 8
  tab "50 Seconds highscores" 9
  tab "80 Seconds highscores" 10
  tab "100 Seconds highscores" 11 
  text "Enter name:" 13, 135 202 60 20, tab 6
  edit "" 12, 200 200 30 20, disable, tab 6
  button "Submit" 14, 235 200 50 20, disable, tab 6
  text "Names" 18, 80 48 60 20
  text "Score" 19, 180 48 60 20
  text "Timer" 20, 280 48 60 20
  list 15, 70 70 250 150, tab 8
  list 22, 70 70 250 150, tab 9
  list 27, 70 70 250 150, tab 10
  list 30, 70 70 250 150, tab 11
  text "" 21, 20 48 320 20, tab 6
}
on *:load: { set %score 0 | %set %20 0 | set %50 0 | set %80 0 | %set %100 0 
}
alias gamme { set %svt $rand(1,25) | did -b game 1-25 | did -e game %svt }
alias end { set %csz %score | set %bvc %lengh | .timera off | did -b game 1-25 | dialog -m hsa hsa | set %score 0 | did -ra game 102 Start!
}
on *:DIALOG:game:init:0:{
  did -ra game 105 %score
  did -ra game 26 %ttme
}
on *:DIALOG:hsa:init:0:{
  did -ra hsa 2 %lengh 
  did -ra hsa 4 %csz
  didtok hsa 15 44 %cza2
  didtok hsa 22 44 %cza5
  didtok hsa 27 44 %cza8
  didtok hsa 30 44 %cza1
  if (%bvc = 30) && (%30 > %csz) { did -ra hsa 7 no new highscore reached }
  if (%bvc = 50) && (%50 > %csz) { did -ra hsa 7 no new highscore reached }
  if (%bvc = 80) && (%80 > %csz) { did -ra hsa 7 no new highscore reached }
  if (%bvc = 100) && (%100 > %csz) { did -ra hsa 7 no new highscore reached
  }
  elseif (%bvc = 30) && (%30 <= %csz) { did -e hsa 12,14 | did -ra hsa 7 congratulations new high score! | set %30 %csz }
  elseif (%bvc = 50) && (%50 <= %csz) { did -e hsa 12,14 | did -ra hsa 7 congratulations new high score! | set %50 %csz }
  elseif (%bvc = 80) && (%80 <= %csz) { did -e hsa 12,14 | did -ra hsa 7 congratulations new high score! | set %80 %csz }
  elseif (%bvc = 100) && (%100 <= %csz) { did -e hsa 12,14 | did -ra hsa 7 congratulations new high score! | set %100 %csz }
}        
on *:dialog:game:close:*:{ 
  .timera off
  set %score 0
}
on *:DIALOG:hsa:sclick:*:{
  if ($did = 14) {
    if (%bvc = 30) { set %cza2 $addtok(%cza2,$did(12) ________________ %csz ________________ %ttme,44) | did -a hsa 15 $did(12) ________________ %csz ________________ %ttme | did -b hsa 14 }
    if (%bvc = 50) { set %cza5 $addtok(%cza5,$did(12) ________________ %csz ________________ %ttme,44) | did -a hsa 22 $did(12) ________________ %csz ________________ %ttme | did -b hsa 14 }
    if (%bvc = 80) { set %cza8 $addtok(%cza8,$did(12) ________________ %csz ________________ %ttme,44) | did -a hsa 27 $did(12) ________________ %csz ________________ %ttme | did -b hsa 14 }
    if (%bvc = 100) { set %cza1 $addtok(%cza1,$did(12) ________________ %csz ________________ %ttme,44) | did -a hsa 30 $did(12) ________________ %csz ________________ %ttme | did -b hsa 14 }
  }
}
on *:DIALOG:game:sclick:*:{
  if ($did = 28) { set %ttme $did(26) | .timera off | .timera 0 %ttme gamme }
  if ($did isnum 30-100) { did -e game 102 | set %lengh $did }
  if ($did = 102) { timer 1 1 did -ra $dname 33 3 | timer 1 2 did -ra $dname 102 2 | timer 1 3 did -ra $dname 102 1 | timer 1 4 did -ra $dname 102 GO! | timer 1 4 timera 0 $did(26) gamme | timer 1 $calc(%lengh + 4) .end }
  if (%svt = $did) { set %score $calc(%score + 1) | did -b game 1-25 | did -ra $dname 105 %score }
}
}

Comments

Sign in to comment.
asakura   -  Aug 26, 2008

well yeh i dunno lol everytime i changed 1 lil thing it posted new so i thought i might of left something unticked idk lol so i tried again then ending up with 3 so i thought stop now b4 theres 200 on here :P

 Respond  
err0r007   -  Aug 09, 2008

yeah there are several things wrong with this snippet extra bracket at the end.. call to id that isn\'t there and you really should use .timer instead of /timer unless you are testing or have some real need for it to show.. i\'ll check again when you get it updated

 Respond  
napa182   -  Aug 09, 2008

you have to get a mod or hawkee to delete ur F\'uped posts

 Respond  
asakura   -  Aug 09, 2008

Dude el what iz wrong wif dis i try to change destription to delete it... but then it adds another so i thought its cuz i changed da name init... then so i went bk to this just change the script then it posts another1!

 Respond  
asakura   -  Aug 09, 2008

how do you delete scripts :P

 Respond  
EL   -  Aug 09, 2008

Hmm im gettin alot of errors an you really need to silence your timers. /did: \'game\' invalid id \'33\' and * /did: invalid parameters (line 74, script114.ini) adn you shouldnt allow the game to be played untill the timer edit field is entered.You really should test before you post.And the high score part of the game seems not to work at all nothing shows an you cant submit your name to save it remains diabled.`-.-´

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.