TeaM KingS
[center]Ola Convidado, seja bem vindo ao TeaM KingS !

Nós temos tutoriais sobre o WarCraft World Editor: se você tiver alguma duvida pode perguntar que os moderadores ou membros experientes vão lhe ajudar.

Para melhor utilizar nossos recursos é extremamente recomendado que esteja logado em nosso fórum e que leia o nosso regulamento oficial.

Também temos fóruns sobre DotA AllstarS, com guias, estratégias, e muito mais!




Participe do fórum, é rápido e fácil

TeaM KingS
[center]Ola Convidado, seja bem vindo ao TeaM KingS !

Nós temos tutoriais sobre o WarCraft World Editor: se você tiver alguma duvida pode perguntar que os moderadores ou membros experientes vão lhe ajudar.

Para melhor utilizar nossos recursos é extremamente recomendado que esteja logado em nosso fórum e que leia o nosso regulamento oficial.

Também temos fóruns sobre DotA AllstarS, com guias, estratégias, e muito mais!


TeaM KingS
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

[Resolvido] Dialog Buttons

2 participantes

Ir para baixo

[Resolvido] Dialog Buttons Empty [Resolvido] Dialog Buttons

Mensagem por gabrieeltucker 2012-04-27, 15:52

Duvida - Dialog Buttons

  • Qual a sua duvida:


    Estou tendo problemas com as dialog buttons que eu criei:
    Código:
    DialogINI
        Events
            Time - Elapsed game time is 1.00 seconds
        Conditions
        Actions
            Dialog - Clear Dialog[1]
            Dialog - Change the title of Dialog[1] to |c001CE6B9Menu|r
            Dialog - Create a dialog button for Dialog[1] labelled |c001CE6B9Criar nov...
            Set DialogButton[1] = (Last created dialog Button)
            Dialog - Create a dialog button for Dialog[1] labelled |c001CE6B9Usar cód...
            Set DialogButton[2] = (Last created dialog Button)
            -------- Dialog[2] --------
            Dialog - Clear Dialog[2]
            Dialog - Change the title of Dialog[2] to |c001CE6B9Criar nov...
            Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9Homen|r
            Set DialogButton[3] = (Last created dialog Button)
            Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9Mulher|r
            Set DialogButton[4] = (Last created dialog Button)
            Dialog - Create a dialog button for Dialog[2] labelled |c001CE6B9< Voltar|r
            Set DialogButton[5] = (Last created dialog Button)
    Código:
    DialogEND
        Events
            Dialog - A dialog button is clicked for Dialog[2]
            Dialog - A dialog button is clicked for Dialog[1]
        Conditions
        Actions
            Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    (Clicked dialog button) Equal to (==) DialogButton[3]
                Then - Actions
                    Unit - Create 1 |c001CE6B9Classe: Iniciante|r (Homen) for (Triggering player) at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
                    Game - Display to (Player group((Owner of (Last created unit)))) the text: |c001CE6B9Bem vindo...
                    Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
                    Selection - Select (Last created unit) for (Owner of (Last created unit))
                    Set PlayerHeroi[(Player number of (Triggering player))] = (Last created unit)
                    Dialog - Hide Dialog[2] for (Triggering player)
                Else - Actions
                    Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        If - Conditions
                            (Clicked dialog button) Equal to (==) DialogButton[4]
                        Then - Actions
                            Unit - Create 1 |c001CE6B9Classe: Iniciante|r (Mulher) for (Triggering player) at (Center of Hero Spawn <gen>) facing Default building facing (270.0) degrees
                            Game - Display to (Player group((Owner of (Last created unit)))) the text: |c001CE6B9Bem vindo...
                            Camera - Pan camera for (Owner of (Last created unit)) to (Position of (Last created unit)) over 0.00 seconds
                            Selection - Select (Last created unit) for (Owner of (Last created unit))
                            Set PlayerHeroi[(Player number of (Triggering player))] = (Last created unit)
                            Dialog - Hide Dialog[2] for (Triggering player)
                        Else - Actions
                            Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                If - Conditions
                                    (Clicked dialog button) Equal to (==) DialogButton[1]
                                Then - Actions
                                    Dialog - Hide Dialog[1] for (Triggering player)
                                    Dialog - Change the title of Dialog[2] to |c001CE6B9Criar nov...
                                    Dialog - Show Dialog[2] for (Triggering player)
                                Else - Actions
                                    Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                        If - Conditions
                                            (Clicked dialog button) Equal to (==) DialogButton[2]
                                        Then - Actions
                                            Dialog - Hide Dialog[1] for (Triggering player)
                                            Game - Display to (Player group((Triggering player))) the text: |c001CE6B9Digite ag...
                                            Set PlayerLoad[(Player number of (Triggering player))] = True
                                        Else - Actions

    O problema é que eu clico em ''Criar novo Hero'' e o Dialog[2] não aparece!, o Dialog[2] é onde tem as opções ''Homen'' e ''Mulher'', mas a dialog não tá aparecendo '-'


  • Quais medidas tomou para resolvê-la: vi tutoriais em tudo que é lugar.

  • Com qual frequência você usa o World Editor: Regularmente

  • Experiência com triggers: Adepto

  • Experiência com Jass: Nenhuma


    Status da duvida: Resolvido


Última edição por gabrieeltucker em 2012-04-27, 16:25, editado 1 vez(es)
gabrieeltucker
gabrieeltucker

Número de Posts : 1000
Data de inscrição : 09/10/2011
Reputação : 92 Pontos : 26611

Warning Necropost
[Resolvido] Dialog Buttons Left_bar_bleue5 / 1005 / 100[Resolvido] Dialog Buttons Right_bar_bleue


http://www.TuckerORPG.forumeiros.com

Ir para o topo Ir para baixo

[Resolvido] Dialog Buttons Empty Re: [Resolvido] Dialog Buttons

Mensagem por Bills 2012-04-27, 16:18

Vá no seu Variable Editor (crtl+B) e procure pela variavel Dialog, veja se o Size é igual à 2.
Bills
Bills

Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31094

Warning Necropost
[Resolvido] Dialog Buttons Left_bar_bleue35 / 10035 / 100[Resolvido] Dialog Buttons Right_bar_bleue


Ir para o topo Ir para baixo

[Resolvido] Dialog Buttons Empty Re: [Resolvido] Dialog Buttons

Mensagem por gabrieeltucker 2012-04-27, 16:24

lol, eu achei que o size não importava Oo
funcionou mano vlw, +REP
mas uma duvida:
como funciona essa de Size?
nas variables array, pra que serve o Size?
porque eu sempre deixo size 1 e uso
a variable em varias array e funfa deboa '-'
gabrieeltucker
gabrieeltucker

Número de Posts : 1000
Data de inscrição : 09/10/2011
Reputação : 92 Pontos : 26611

Warning Necropost
[Resolvido] Dialog Buttons Left_bar_bleue5 / 1005 / 100[Resolvido] Dialog Buttons Right_bar_bleue


http://www.TuckerORPG.forumeiros.com

Ir para o topo Ir para baixo

[Resolvido] Dialog Buttons Empty Re: [Resolvido] Dialog Buttons

Mensagem por Bills 2012-04-27, 16:34

De nada.

O size das variáveis array são para indicar quantos indices (aqueles valores dentro de colchetes "[ ]") vão ser iniciados.
Um exemplo, sua váriavel de Dialog, do tipo dialog, é de tamanho (size) 2 agora. Isso indica que o indice [1] e [2] iniciarão com 1 novo dialog neles. Já os indices restantes não terão nada gravados nas variaveis. Ah e o máximo de tamanho é 8192.

Tópico Fechado.
Bills
Bills

Número de Posts : 1446
Data de inscrição : 04/12/2010
Reputação : 173 Pontos : 31094

Warning Necropost
[Resolvido] Dialog Buttons Left_bar_bleue35 / 10035 / 100[Resolvido] Dialog Buttons Right_bar_bleue


Ir para o topo Ir para baixo

[Resolvido] Dialog Buttons Empty Re: [Resolvido] Dialog Buttons

Mensagem por Conteúdo patrocinado


Conteúdo patrocinado


Ir para o topo Ir para baixo

Ir para o topo

- Tópicos semelhantes

 
Permissões neste sub-fórum
Não podes responder a tópicos