O TEMA DO FÓRUM ESTÁ EM MANUTENÇÃO. FEEDBACKS AQUI: ACESSAR

HP em Tempo Real

Iniciado por Bussoli, 08/07/2019 às 17:29

08/07/2019 às 17:29 Última edição: 19/07/2019 às 07:00 por Corvo
Olá amigos Makers!
Estou querendo criar uma barra de HP em tempo real em um projeto com sistema de batalha ABS.
Eu tentei criar esse da imagem, mas ele só funciona no Level 1. Quando passa pro Level 2 ele não funciona mais!  :facepalm:


Tentei seguir esse tutorial mas não ta dando certo! https://centrorpg.com/index.php?topic=174.0&fbclid=IwAR32bUWvt0ZcWpn2Tg-tSHzc7BaTgjGMAAqIChkRGcqFfVmLfc9lUsaRN6M

Alguém poderia me ajudar em um tutorial de HP em tempo real para RPG Maker 2003?
Equipe: Game Fantasy RPG

O que exatamente acontece quando você passa de nível? Imagino que da problema porque o hp máximo foi alterado e, por algum motivo, o seu sistema acabou não considerando essa pequena variável.
Pode mandar as fotos dos eventos para que eu possa analisar?
Oxe

Eu tive que fazer por level
HP Level 1:
Spoiler
@> Control Variables: [0015:HP Herói] = [Zarpan]'s HP
@> Conditional Branch: Variable [0015:HP Herói] == 0
  @> Show Picture: 1, 'HP-0', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 5
  @> Show Picture: 1, 'HP-2', (160,120), 100%, 0%, M5
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 10
  @> Show Picture: 1, 'HP-4', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 15
  @> Show Picture: 1, 'HP-6', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 20
  @> Show Picture: 1, 'HP-8', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 25
  @> Show Picture: 1, 'HP-10', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 30
  @> Show Picture: 1, 'HP-12', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 35
  @> Show Picture: 1, 'HP-14', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 40
  @> Show Picture: 1, 'HP-16', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 45
  @> Show Picture: 1, 'HP-18', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 50
  @> Show Picture: 1, 'HP-20', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 55
  @> Show Picture: 1, 'HP-22', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 60
  @> Show Picture: 1, 'HP-24', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 65
  @> Show Picture: 1, 'HP-26', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 70
  @> Show Picture: 1, 'HP-28', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 75
  @> Show Picture: 1, 'HP-30', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 80
  @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 85
  @> Show Picture: 1, 'HP-35', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 90
  @> Show Picture: 1, 'HP-38', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 95
  @> Show Picture: 1, 'HP-41', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 100
  @> Show Picture: 1, 'HP-44', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 105
  @> Show Picture: 1, 'HP-47', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 110
  @> Show Picture: 1, 'HP-50', (160,120), 100%, 0%, M4
  @>
: Branch End
[close]

HP level 2:
Spoiler
@> Control Variables: [0018:LV Herói] = [Zarpan]'s Level
@> Conditional Branch: Variable [0018:LV Herói] == 2
  @> Control Variables: [0015:HP Herói] = [Zarpan]'s HP
  @> Conditional Branch: Variable [0015:HP Herói] == 0
    @> Show Picture: 1, 'HP-0', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 5
    @> Show Picture: 1, 'HP-2', (160,120), 100%, 0%, M5
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 10
    @> Show Picture: 1, 'HP-4', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 15
    @> Show Picture: 1, 'HP-6', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 20
    @> Show Picture: 1, 'HP-8', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 25
    @> Show Picture: 1, 'HP-10', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 30
    @> Show Picture: 1, 'HP-12', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 35
    @> Show Picture: 1, 'HP-14', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 40
    @> Show Picture: 1, 'HP-16', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 45
    @> Show Picture: 1, 'HP-18', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 50
    @> Show Picture: 1, 'HP-20', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 55
    @> Show Picture: 1, 'HP-22', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 60
    @> Show Picture: 1, 'HP-24', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 65
    @> Show Picture: 1, 'HP-26', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 70
    @> Show Picture: 1, 'HP-28', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 75
    @> Show Picture: 1, 'HP-30', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 80
    @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 85
    @> Show Picture: 1, 'HP-35', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 90
    @> Show Picture: 1, 'HP-38', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 95
    @> Show Picture: 1, 'HP-40', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 100
    @> Show Picture: 1, 'HP-42', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 105
    @> Show Picture: 1, 'HP-44', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 110
    @> Show Picture: 1, 'HP-46', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 115
    @> Show Picture: 1, 'HP-48', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @> Conditional Branch: Variable [0015:HP Herói] == 120
    @> Show Picture: 1, 'HP-50', (160,120), 100%, 0%, M4
    @>
   : Branch End
  @>
: Branch End
[close]

Level 3 e assim por diante!
Resolvido! Funcionou!  :ok:
Equipe: Game Fantasy RPG

08/07/2019 às 23:27 #3 Última edição: 08/07/2019 às 23:29 por Jorge_Maker
Você tem certeza de que vai fazer assim? xD
Dá pra fazer tudo isso aí com umas 5 linhas de código em rgss. O rm2k não tem scripts, mas ainda assim tenho certeza de que há uma forma melhor de fazer isso, mesmo que seja por eventos, usando a porcentagem do HP e não o valor absoluto deste.
Oxe

08/07/2019 às 23:28 #4 Última edição: 09/07/2019 às 08:10 por Jorge_Maker
Por enquanto vou deixar assim mesmo, se funcionou ta suave  :ded:

Essa imagem é da batalha contra o primeiro Boss:



Eu troquei a barra de HP pq tava igual ao do Final Fantasy 7
Equipe: Game Fantasy RPG

Citação de: Jorge_Maker online 08/07/2019 às 23:27
Você tem certeza de que vai fazer assim? xD
Dá pra fazer tudo isso aí com umas 5 linhas de código em rgss. O rm2k não tem scripts, mas ainda assim tenho certeza de que há uma forma melhor de fazer isso, mesmo que seja por eventos, usando a porcentagem do HP e não o valor absoluto deste.

Como seria esse sistema por porcentagem do Hp?
Equipe: Game Fantasy RPG


bussoli: Só dividir o HP atual pelo HP Máximo do personagem, obtendo a porcentagem, por exemplo: Se o HP máximo é de 250 e o HP atual é de 125, logo, a porcentagem do HP é de 50% do todo. Dessa forma você só precisa fazer todas aquela condições uma vez, sem ter o trabalho de realizá-las para cada nível do protagonista.
O Takkun mandou um tutorial interessante ai, vê se tu consegue entender. o/
Oxe

Tentei desse jeito mas a picture aparece com o fundo verde cobrindo o mapa e não sai do Zero

Spoiler
@> Control Variables: [0015:HP Herói] %= [Zarpan]'s HP
@> Conditional Branch: Variable [0015:HP Herói] == 0
  @> Show Picture: 1, 'HP-0', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 1
  @> Show Picture: 1, 'HP-1', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 2
  @> Show Picture: 1, 'HP-1', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 3
  @> Show Picture: 1, 'HP-2', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 4
  @> Show Picture: 1, 'HP-2', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 5
  @> Show Picture: 1, 'HP-3', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 6
  @> Show Picture: 1, 'HP-3', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 7
  @> Show Picture: 1, 'HP-4', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 8
  @> Show Picture: 1, 'HP-4', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 9
  @> Show Picture: 1, 'HP-5', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 10
  @> Show Picture: 1, 'HP-5', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 11
  @> Show Picture: 1, 'HP-6', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 12
  @> Show Picture: 1, 'HP-6', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 13
  @> Show Picture: 1, 'HP-7', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 14
  @> Show Picture: 1, 'HP-7', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 15
  @> Show Picture: 1, 'HP-8', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 16
  @> Show Picture: 1, 'HP-8', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 17
  @> Show Picture: 1, 'HP-9', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 18
  @> Show Picture: 1, 'HP-9', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 19
  @> Show Picture: 1, 'HP-10', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 20
  @> Show Picture: 1, 'HP-10', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 21
  @> Show Picture: 1, 'HP-11', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 22
  @> Show Picture: 1, 'HP-11', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 23
  @> Show Picture: 1, 'HP-12', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 24
  @> Show Picture: 1, 'HP-12', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 25
  @> Show Picture: 1, 'HP-13', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 26
  @> Show Picture: 1, 'HP-13', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 27
  @> Show Picture: 1, 'HP-14', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 28
  @> Show Picture: 1, 'HP-14', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 29
  @> Show Picture: 1, 'HP-15', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 30
  @> Show Picture: 1, 'HP-15', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 31
  @> Show Picture: 1, 'HP-16', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 32
  @> Show Picture: 1, 'HP-16', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 33
  @> Show Picture: 1, 'HP-17', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 34
  @> Show Picture: 1, 'HP-17', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 35
  @> Show Picture: 1, 'HP-18', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 36
  @> Show Picture: 1, 'HP-18', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 37
  @> Show Picture: 1, 'HP-19', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 38
  @> Show Picture: 1, 'HP-19', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 39
  @> Show Picture: 1, 'HP-20', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 40
  @> Show Picture: 1, 'HP-20', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 41
  @> Show Picture: 1, 'HP-21', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 42
  @> Show Picture: 1, 'HP-21', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 43
  @> Show Picture: 1, 'HP-22', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 44
  @> Show Picture: 1, 'HP-22', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 45
  @> Show Picture: 1, 'HP-23', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 46
  @> Show Picture: 1, 'HP-23', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 47
  @> Show Picture: 1, 'HP-24', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 48
  @> Show Picture: 1, 'HP-24', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 49
  @> Show Picture: 1, 'HP-25', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 50
  @> Show Picture: 1, 'HP-25', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 51
  @> Show Picture: 1, 'HP-26', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 52
  @> Show Picture: 1, 'HP-26', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 53
  @> Show Picture: 1, 'HP-27', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 54
  @> Show Picture: 1, 'HP-27', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 55
  @> Show Picture: 1, 'HP-28', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 56
  @> Show Picture: 1, 'HP-28', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 57
  @> Show Picture: 1, 'HP-29', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 58
  @> Show Picture: 1, 'HP-29', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 59
  @> Show Picture: 1, 'HP-30', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 60
  @> Show Picture: 1, 'HP-30', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 61
  @> Show Picture: 1, 'HP-31', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 62
  @> Show Picture: 1, 'HP-31', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 63
  @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 63
  @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 63
  @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 64
  @> Show Picture: 1, 'HP-32', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 65
  @> Show Picture: 1, 'HP-33', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 66
  @> Show Picture: 1, 'HP-33', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 67
  @> Show Picture: 1, 'HP-34', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 68
  @> Show Picture: 1, 'HP-34', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 69
  @> Show Picture: 1, 'HP-35', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 70
  @> Show Picture: 1, 'HP-35', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 71
  @> Show Picture: 1, 'HP-36', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 72
  @> Show Picture: 1, 'HP-36', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 73
  @> Show Picture: 1, 'HP-37', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 74
  @> Show Picture: 1, 'HP-37', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 75
  @> Show Picture: 1, 'HP-38', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 76
  @> Show Picture: 1, 'HP-38', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 77
  @> Show Picture: 1, 'HP-39', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 78
  @> Show Picture: 1, 'HP-39', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 79
  @> Show Picture: 1, 'HP-40', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 80
  @> Show Picture: 1, 'HP-40', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 81
  @> Show Picture: 1, 'HP-41', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 82
  @> Show Picture: 1, 'HP-41', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 83
  @> Show Picture: 1, 'HP-42', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 84
  @> Show Picture: 1, 'HP-42', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 85
  @> Show Picture: 1, 'HP-43', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 86
  @> Show Picture: 1, 'HP-43', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 87
  @> Show Picture: 1, 'HP-44', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 88
  @> Show Picture: 1, 'HP-44', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 89
  @> Show Picture: 1, 'HP-45', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 90
  @> Show Picture: 1, 'HP-45', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 91
  @> Show Picture: 1, 'HP-46', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 92
  @> Show Picture: 1, 'HP-46', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 93
  @> Show Picture: 1, 'HP-47', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 94
  @> Show Picture: 1, 'HP-47', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 95
  @> Show Picture: 1, 'HP-48', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 96
  @> Show Picture: 1, 'HP-48', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 97
  @> Show Picture: 1, 'HP-49', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 98
  @> Show Picture: 1, 'HP-49', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] >= 99
  @> Show Picture: 1, 'HP-50', (160,120), 100%, 0%, M4
  @>
: Branch End
@> Conditional Branch: Variable [0015:HP Herói] >= 100
  @> Show Picture: 1, 'HP-50', (160,120), 100%, 0%, M4
  @>
: Branch End
[close]
Equipe: Game Fantasy RPG

10/07/2019 às 10:10 #9 Última edição: 11/07/2019 às 00:16 por Jorge_Maker
Desculpa, isso foi erro da minha explicação. xD
Supondo novamente que o HP do personagem é 100 e o HPM é de 200, a divisão de um pelo outro resultará em 0.5, no entanto, esse número será "arredondado" para zero, que é o causador do problema. O que deve ser feito é multiplicar o primeiro valor por 100 antes da operação de divisão e após isso dividir pelo segundo valor, nessa ordem, ficando 100 * 100 / 200, que resulta em 50.
Espero que agora dê certo. uaheauh'
Aliás, eu percebi que você repete algumas condições, por exemplo:
@> Conditional Branch: Variable [0015:HP Herói] == 13
  @> Show Picture: 1, 'HP-7', (160,120), 100%, 0%, M4
  @>
 : Branch End
@> Conditional Branch: Variable [0015:HP Herói] == 14
  @> Show Picture: 1, 'HP-7', (160,120), 100%, 0%, M4
  @>
 : Branch End

Em ambos momentos a mesmo imagem é mostrado, logo, não tem necessidade de fazer duas condições. Para dar um enxugada nesse código, tu poderia fazer algo assim:
@> Conditional Branch: Variable [0015:HP Herói] >= 1
  @> Show Picture: 1, 'HP-1', (160,120), 100%, 0%, M4
  @>
 : Branch End
@> Conditional Branch: Variable [0015:HP Herói] >= 3
  @> Show Picture: 1, 'HP-2', (160,120), 100%, 0%, M4
  @>
 : Branch End
@> Conditional Branch: Variable [0015:HP Herói] >= 5
  @> Show Picture: 1, 'HP-3', (160,120), 100%, 0%, M4
  @>
 : Branch End

Desse modo, tu irá precisar fazer "apenas" 50 condições ao invés de 100 e também deixa o seu código um pouco mais bonitinho.
Espero que tenha entendido, qualquer dúvida só falar. o/
Oxe

Olá, pra não abrir outro tópico, vou postar aqui mesmo nos comentários.
Outra dúvida que eu tenho é como fazer aparecer uma animação escrito "Level Up" com um efeito sonoro quando o personagem passa de level.

Eu tentei fazer desse jeito, mas quando o personagem passa pro level 2, a animação fica se repetindo e não para mais. Eu coloquei em Processo Paralelo.

@> Control Variables: [0032:Level Up] = [Zarpan]'s Level
@> Conditional Branch: Variable [0032:Level Up] == 2
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
@> Conditional Branch: Variable [0032:Level Up] == 3
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
@> Conditional Branch: Variable [0032:Level Up] == 4
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
@> Conditional Branch: Variable [0032:Level Up] == 5
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
@> Conditional Branch: Variable [0032:Level Up] == 6
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
@> Conditional Branch: Variable [0032:Level Up] == 7
  @> Show Animation: Player, [Level Up], Wait
  @>
: Branch End
Equipe: Game Fantasy RPG

11/07/2019 às 00:09 #11 Última edição: 11/07/2019 às 00:13 por Jorge_Maker
Mas você ao menos conseguiu resolver o problema anterior? :viiish:
A animação se repete sem parar quando ele passa para o nível dois pois foi exatamente isso que você fez. Se você tentar ler o código em voz alta vai perceber que, sempre que o nível do jogador for igual a 2, a animação será executada nele.
Mas sendo bem sincero contigo, não sei como faz isso por eventos não. Tu vai ter que recorrer aos hacks irmão. aheauheuh'
Oxe

Olha, sinceramente eu ainda não consegui resolver esse problema do HP...
Sempre que eu tento colocar em porcentagem %, a picture fica com o fundo verde cobrindo a tela e mostra como se o HP tivesse em Zero.
Equipe: Game Fantasy RPG

Citação de: bussoli online 10/07/2019 às 23:46
Olá, pra não abrir outro tópico, vou postar aqui mesmo nos comentários.
Outra dúvida que eu tenho é como fazer aparecer uma animação escrito "Level Up" com um efeito sonoro quando o personagem passa de level.

Eu tentei fazer desse jeito, mas quando o personagem passa pro level 2, a animação fica se repetindo e não para mais. Eu coloquei em Processo Paralelo.

@> Control Variables: [0032:Level Up] = [Zarpan]'s Level
@> Conditional Branch: Variable [0032:Level Up] == 2
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End
@> Conditional Branch: Variable [0032:Level Up] == 3
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End
@> Conditional Branch: Variable [0032:Level Up] == 4
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End
@> Conditional Branch: Variable [0032:Level Up] == 5
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End
@> Conditional Branch: Variable [0032:Level Up] == 6
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End
@> Conditional Branch: Variable [0032:Level Up] == 7
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End


Dá pra fazer isso bem fácil com duas variáveis, uma para o nível do personagem e outra para o último nível para o qual teve animação de level up. Algo assim:

@> Control Variables: [0032:Level Up] = [Zarpan]'s Level
@> Conditional Branch: Variable [0032:Level Up] > Variable [000X:Ultimo Level Up]
  @> Control Variables: [000X:Ultimo Level Up] = Variable [0032:Level Up]
  @> Show Animation: Player, [Level Up], Wait
  @>
 : Branch End


Você pode querer também inicializar a variável "Ultimo Level Up" com 1, pra evitar mostrar uma animação logo no início do jogo, quando o personagem "sobe" pro level 1.
~ Masked

Obrigado! Esse do Level Up funcionou!  :ok:
Equipe: Game Fantasy RPG