Jump to content
Rpg²S Forum
  • 0

Inserire icona in finestra messaggio via script


Nortas
 Share

Question

Ciao a tutti sto impazzendo per fare sta cosa! Usando il normale editor metto \I[id] ed ottengo la mia bella icona!
Ma se devo farlo via script con $gameMessage.add('') come si fa?

Nel web non ho trovato granchè :/

Uso RPG MV!

Grazie amici!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Per chiamare queste funzioni tramite inserimento javascript devi devi mettere due volte il carattere \

 

Così funziona:

$gameMessage.add("provo a mettere un icona \\i[5]")

 

 

Non sono un programmatore, ma il carattere \ è considerato un escape character e serve per trasformare i caratteri speciali in valuri della stringa:

Tipo:

Code Result Description \' ' Single quote \" " Double quote \\ \ Backslash

 

 

Ok gli apici, ma come mai \?

perchè è utilizzato per identificarer i caratteri speciali delle stringe javascript, ti metto anche quelli che possono tronare utili (soprattutto /n)

 

Code Result \b Backspace \f Form Feed \n New Line \r Carriage Return \t Horizontal Tabulator \v Vertical Tabulator

 

 

Potrai trovare spiegazioni decisamente più complete e specifiche, ma il succo è questo :D

Edited by Killveran89

icon.pnghttp://killveran89.altervista.org/Homework/Pic/LogoL.pnghttp://killveran89.altervista.org/TheLastMiracle/img/200921_Harold.png

__________________________________________________________________________________________________________

 

BIM_BACK.png

 

 

 

http://www.rpg2s.net/dax_games/xmas/gifnatale1.pnghttp://www.rpg2s.net/dax_games/xmas/gifnatale123.gifhttp://www.rpg2s.net/dax_games/xmas/gifnatale12.png

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...