Nortas Posted February 26, 2019 Share Posted February 26, 2019 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 More sharing options...
0 Killveran89 Posted March 2, 2019 Share Posted March 2, 2019 (edited) 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 March 2, 2019 by Killveran89 http://killveran89.altervista.org/Homework/Pic/LogoL.pnghttp://killveran89.altervista.org/TheLastMiracle/img/200921_Harold.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 More sharing options...
Question
Nortas
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now