Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | FLASH: scripting issues |
From: | mhoganuclick [dot] com |
Date: | Mon, 17 Apr 2000 15:17:47 +0100 |
I have this game I've been working on for weeks now and it's killing me. If
anyone could look at the following script and trouble shoot it, I'd greatly
appreciate it. The script is supposed to check a series of numbered
variables (b1-b100) and see if the value equals false...if so it kicks of
the actions... if not it doesn't ...thanx in advance....here it goes:]
initialize(happens when game starts and only when game starts)
Stop
Set Variable: "count" = Random(100)+1
Set Variable: "mostcurrent" = count
Set Variable: "Randomquestion" = Eval ( "q" & mostcurrent)
Set Variable: "/:text" = Randomquestion
Stop
button action(when button is pressed)
On (Press)
Set Variable: "/variables:correctanswer" = "mike"
Call ("/variables:checkquestion") (calls the frame"checkquestion" from
mc"variables"
End On
Set Variable: "mostcurrent" = count
Set Variable: "currentanswer" = Eval (Substring ( "a", 0, 3 ) & mostcurrent)
If (currentanswer eq correctanswer)
Set Variable: (MBSubstring(("b" & Int(mostcurrent)),0,5)) = "answered"
Set Variable: "/:score" = /:score+1
Set Variable: "/:correctanswers" = /:correctanswers+1
Trace ("setting b to false")
Else
Set Variable: "/:correctanswers" = /:correctanswers-1
End If
Set Variable: "count" = Random(100)+1
Set Variable: "mostcurrent" = count
If (Eval("b"&mostcurrent)="true")
Trace ("true")
Set Variable: "trueanswer" = mostcurrent
Set Variable: "Randomquestion" = Eval("q"&trueanswer)
Set Variable: "/:text" = Randomquestion
Set Variable: "currentanswer" = Eval (Substring ( "a", 0, 3 ) &
trueanswer)
Else If (Eval("b"&mostcurrent)="answered")
Trace ("answered")
Set Variable: "count" = Random(100)+1
Set Variable: "falseanswer" = count
Set Variable: "Randomquestion" = Eval("q"&falseanswer)
Set Variable: "/:text" = Randomquestion
Set Variable: "currentanswer" = Eval (Substring ( "a", 0, 3 ) &
falseanswer)
End If
Stop
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml
Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]