Author Topic: i have a question about dialog boxes  (Read 1114 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

i have a question about dialog boxes
« on: November 02, 2003, 07:54:12 PM »
ive been through the tutorials and have no problem with adding views to my dialog boxes...(btw the tutorials are excellent!)...but in any event, i dont know how to set the views in motion there. ive tried to discover it by checking out the dying sequence because that view is animated, but i think i confused myself more than i found anything helpful.
again, if this is a dumb question with a readily available answer in some obvious place, im sorry and i would love to be directed there...here is something like what i have coded:
 (if(Said('talk/man'))
            (if(< (send gEgo:distanceTo(aMan)) 40)
                Print(
                    "Well hello!"
                    #title "Titan Says:"
                    #icon 4 0 0
                    )
thanks!
doan


Artificial Intelligence Competition

Offline robingravel

Re:i have a question about dialog boxes
« Reply #1 on: November 02, 2003, 09:05:19 PM »
If you're talking about an animated view in the window box,
sci0 might not support animated view in the window box.

sci1 or sci vga support animated view in the window box.

Peharps with a good scripting, you can do it with sci0 too.


Robin Gravel

Offline Doan Sephim

Re:i have a question about dialog boxes
« Reply #2 on: November 02, 2003, 09:30:04 PM »
im pretty sure it is possible because the death icon from the the samples is an animated view in a dialog box (i suppose they are really called "windows" huh?)
but anyways, thanks!
doan
« Last Edit: November 02, 2003, 09:49:21 PM by doan sephim »
Artificial Intelligence Competition

Offline Brian Provinciano

Re:i have a question about dialog boxes
« Reply #3 on: November 02, 2003, 09:35:15 PM »
Dialog boxes are a form of Window, yes, but there are many other types both in SCI, Microsoft Windows, and others.

Anyway, look in the death script, it's got all the info you'll need for animated icons in dialogs.

Offline Doan Sephim

Re:i have a question about dialog boxes
« Reply #4 on: November 02, 2003, 09:58:03 PM »
"ive tried to discover it by checking out the dying sequence because that view is animated, but i think i confused myself more than i found anything helpful."

i dont mean to go on, but i did take your advice before you gave it...i prolly need to be more exact when i write. i wouldnt bother you very smart people unless i tried all methods i could, because i know you all have better things to do than answer (i take it) basic questions from some (it should seem) fellow just getting into object oriented scripting...im simply dumbfounded on this one.
thanks
doan
« Last Edit: November 02, 2003, 09:59:34 PM by doan sephim »
Artificial Intelligence Competition

Offline Cloudee1

Re:i have a question about dialog boxes
« Reply #5 on: November 03, 2003, 02:25:44 AM »
O.k.  I'll help a little,
Brian likes for people to find the answers themselves. So I won't ruin that for him, but look through the scripts you'll find one named "Dying" and in this script it starts off like this...

(instance public DyingScript of Script
   (properties)
      (method (changeState newState)
   (var mbResult, message)
   = state newState
   (if(== state 0)
      ProgramControl()
      (send gTheMusic:fade())
      (send gRoom:setScript(0))
      Load(rsSOUND 2)
      = seconds 3
   )(else
         (if(== state 1)
        (send gTheSoundFX:stop())
        (send gTheMusic:
        number(2)
        loop(1)
       priority(-1)
       play()
            )


The answer is in there.
     
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.037 seconds with 20 queries.