• Anmelden

Bex

Seher

  • »Bex« ist der Autor dieses Themas

Motto: Lets have some Fun.

  • Nachricht senden

1

Donnerstag, 7. März 2013, 20:00

Suche Skriptbefehl: Show Animation[animations ID],[Variable1 = Event ID auf die die Animation gewirkt wird],[keinWait]

Suche Skriptbefehl: Show Animation[animations ID],[Variable1 = Event ID auf die die Animation gewirkt wird],[keinWait]
Jenen Befehl würde ich gerne über den Eventbefehl "Skript" ausführen.
Es ist mir wichtig das ich das Ziel der Animation Variabel auswählen kann.
Ich wäre sehr dankbar wenn mir da jemand helfen kann.

Aloha Bex

2

Donnerstag, 7. März 2013, 22:56

Hab dir mal schnell was zusammenkopiert. Unter Materials einfügen:

Ruby Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
  #--------------------------------------------------------------------------
  # Show fixed animation (default=1) over an event defined by a fixed game
  # variable (default=2). Use via script call "show_animation".
  #--------------------------------------------------------------------------
  def show_animation
    character = get_character($game_variables[2])
    if character
      character.animation_id = 1
      # Fiber.yield while character.animation_id > 0
      # uncomment line above to activate wait
    end
  end
Bild

Bex

Seher

  • »Bex« ist der Autor dieses Themas

Motto: Lets have some Fun.

  • Nachricht senden

3

Donnerstag, 7. März 2013, 23:18

Vielen Dank für deine Hilfe.
Es scheint bisher alles ganz gut zu funktionieren.

Edit: Wofür soll das Default in der Erklärung stehen?

Gruß Bex

4

Freitag, 8. März 2013, 16:42

Ich nehme an, dass er da was vergessen hat. Mit Variable #2 kannst du den Spieler oder ein Event auswählen, mit Variable #1 die ID der Animation.

Ruby Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
#--------------------------------------------------------------------------
# Show fixed animation (default=1) over an event defined by a fixed game
# variable (default=2). Use via script call "show_animation".
#--------------------------------------------------------------------------
def show_animation
  character = get_character($game_variables[2])
  if character
    character.animation_id = $game_variables[1]
    # Fiber.yield while character.animation_id > 0
    # uncomment line above to activate wait
  end
end


Das ist allerdings nicht exakt das, was du, jedenfalls laut Titel, gesucht hattest.

Ähnliche Themen

Social Bookmarks