Rpg˛S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Vai al contenuto

Rpg˛S Forum uses cookies. Read the Privacy Policy for more info. To remove this message, please click the button to the right:    I accept the use of cookies

Screen Contest #90

Kamikun






  • Si prega di effettuare il log in prima di rispondere
grafica evento - - - - -

    Hurricane
  • Utente avanzato

  • Utenti
  • Rens: 21
  • 0
  • StellettaStellettaStelletta
  • 414 messaggi
  • Sesso:Maschio
  • Provenienza:Brescia
  • Abilitā:Novizio

#1 Inviato 04 March 2015 - 03:30 AM

Ciao a tutti!

Il codice si presenta cosi:

  def updateGraphic
    poke1=$game_variables[32]
    if $PokemonGlobal.daycare[0][0]
    @event.character_name="Graphics/Characters/001"
    else
    @event.character_name="Graphics/Characters/0"
    end
  end

001 è un personaggio

0 è un file vuoto

 

in ogni caso l'evento in questione (sia che sia attivata la condizione o no) diventa invisibile...
qualcuno sa perchè? XD


10.gif


    ickh
  • Alex (Rm2k)

  • Utenti
  • Rens: 54
  • 0
  • StellettaStellettaStellettaStellettaStelletta
  • 1026 messaggi
  • Sesso:Maschio
  • Abilitā:Adepto

#2 Inviato 04 March 2015 - 08:33 AM

Non conosco benissimo la gestione degli eventi via script, ma credo che la grafica dell'evento vada impostata sull'oggetto "Page" e non direttamente sull'oggetto "Event".

Inoltre la proprietà "character_name" di base è di sola lettura.


Giochi completi

----------------------------------------------------------------------------------------------------------------------------------------

rha2Trr.png

[SHORT] ELYON 5 --> http://www.rpg2s.net...15full-elyon-5/

 

Progetti in corso

----------------------------------------------------------------------------------------------------------------------------------------

5KdJ3fW.png

White Crow --> http://www.rpg2s.net...845-white-crow/


    Hurricane
  • Utente avanzato

  • Utenti
  • Rens: 21
  • 0
  • StellettaStellettaStelletta
  • 414 messaggi
  • Sesso:Maschio
  • Provenienza:Brescia
  • Abilitā:Novizio

#3 Inviato 04 March 2015 - 09:10 AM

character_name è un accessor non un readar, quindi è anche scrivibile.

per quanto riguarda la pagina ora provo a darci un occhiata.


10.gif





  • Feed RSS