RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Script Neo message system 3.0 on VX(solved)

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 62
RMRK Junior
Hello, i´m from Spain and i was looking for a script that could help me on my game. Looking in google i saw that here you got 2 goods scripts for make my game better. Is not a comerial game. Is only to play my wife and my childrens, but they know what they want.

I have put on my game a script that make you create your own chara and face. The problem is that now, i can´t know wich of the 40 charas and faces i put on the game is the choosen for them.

I´ve tried to download the advanced text system by modern algebra, but in the download appears a php document that i can´t open like a demo, so i´ve downloaded de neo message system.

The problem is that in the demo i haven´t seen what i was looking for in any of the events, or at last i don´t know how to make it happens.

I need that in the message appears the face on the left (choosing in the call to script beetwin 8 faces the one i want) but i don´t know wich chara and face has the player.

So i need a modification that  allows me to do the call \fa{face_1stmember_of_the_party, index_face_i_want} instead of \fa{file_faces, index_face} and that can do this for the 4 members of the group in that moment.

Tnx and excuse my english. Is for 3 years long that i don´t write on english.
« Last Edit: February 06, 2012, 12:48:15 AM by Retlif »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
With respect to the problem of being unable to download things from this site, see this thread: http://rmrk.net/index.php/topic,44304.0.html

Also, the problem is only with Firefox, so you can use any other browser and it will be fine.

For your second problem, go into the NMS and go to around line 801, where you should see this:

Code: [Select]
     # Woratana's :: Draw Face
     @text.gsub!(/\\FA\{(.*?)\}/i) { "\x12{#{$1}}" }

Directly underneath it, paste the following:

Code: [Select]
     
     @text.gsub!(/\\([AP])F\[(\d+)\]\}/i) {
        actor = $1.upcase == "P" ? $game_party.members[$2.to_i] : $game_actors[$2.to_i]
        if actor != nil
          "\x12{#{actor.face_name},#{actor.face_index}}"
        else
          ""
        end
      }

Now, you can use the following codes in a message:

\af[n]

That will draw the face of the actor with the ID n.
Ie. \af[1]  would draw the face of the first actor in the database (by default: Ralph); \af[2] would draw the face of the second actor in the database (by default: Ulrika); etc.

You can also use the new code:

\pf[n]

That will draw the face of the nth member in the party, with the count starting at 0. So, if your party is composed of the following members in the following order:

Ralph
Bennett
Lawrence

then \pf[0] would draw Ralph's face; \pf[1] would draw Bennett's face; and \pf[2] would draw Lawrence's face.


Mind you, I did not test any of that, but it ought to work.

**
Rep:
Level 62
RMRK Junior
I have tried the next things a few times without make it work propperly.

\fa[1]  puts that text on the message.
\af[1]  puts that text on the message.
\af{1} puts that text on the message.
\pf[1]  puts that text on the message.
\pf{1} puts that text on the message.
\fp[1]  puts that text on the message.
\fp{1} puts that text on the message.

\fa{1} unable to find Graphics/faces/1 on database.

So we are at the same point that before. i only can change the face in the message without knowing which face the player has choosed.

I am not scripter, but i think is easyer to make a script to make appear the faces of the party members than change those magnificant scripts only for me. I have downloaded already your ats, and is amazzing. i will try to make the codes work in a simple event on the demo.
« Last Edit: December 29, 2011, 01:23:06 AM by Retlif »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Sorry, I accidentally left a \} in the code. It should instead be:

Code: [Select]
     @text.gsub!(/\\([AP])F\[(\d+)\]/i) {
        actor = $1.upcase == "P" ? $game_party.members[$2.to_i] : $game_actors[$2.to_i]
        if actor != nil
          "\x12{#{actor.face_name},#{actor.face_index}}"
        else
          ""
        end
      }

Now try it.

**
Rep:
Level 62
RMRK Junior
I´t woooooorks yihaaaa.

But now i´ve 2 new problems. The text starts in the same place than the face.(I can modify it myself doing space, or learning how works the script.)

The other problem i can´t fix is that i use 8 faces for every character. Then with the call pf[1], it shows the second party member´s face, but the 8 faces modd doesn´t work´s. It has to be like

\pf[0,4] and show the face of the number 1 party member 4th position, can you help me with that? I´ve tryed that comand, but it did the same than yesterday. It put the text \pf[0,4] instead of the face 4 of the 1st party member.

And a lot of tnx. You are my hero.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
For the first problem, you could also use just a blank face at the very start. Ie. instead of leaving the face as none, just create a blank face graphic and set that as the first. That would tell the script that a face is expected and the text will be modified accordingly.

For the second problem, you could try the following:

Code: [Select]
     @text.gsub!(/\\([AP])F\[\s*(\d+)[\s,;]*(\d*)\s*\]/i) {
        actor = $1.upcase == "P" ? $game_party.members[$2.to_i] : $game_actors[$2.to_i]
        face_index = $3.empty? ? actor.face_index : $3.to_i
        if actor != nil
          "\x12{#{actor.face_name},#{face_index}}"
        else
          ""
        end
      }

Then, the codes you suggested should work, with the index for the faces beginning at 0:

\pf[0, 3] would show the last face of the first row on the faceset used by the lead actor.
\af[1, 0] would show the 1st face of the first row on the faceset used by the actor with ID 1.

**
Rep:
Level 62
RMRK Junior
In just one word... Amazing.
It works perfectly.
If you create a new religion i will be your follower.
More than 100 events resumed in 3 calls of scripts. 3 yeras ago, on rpgmaker xp, was what take me do the same and without any faces. i don´t know english expressions to express how i feel right now. I have downloaded your script the same, and i will study there scripting little by little. There are a a lot of interesting things explained very well. A lot of tnx, you are the best. Keep on going this way.

PD: Amazing, simply amazing. All troubles where solved, you can already close the post. And excuse my basic english from school. I apologize for the kicks to the diccionary of english.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
haha, well I am glad that I could be of service. Scripting is definitely a powerful tool. I'll get back to you on starting a religion though :P

And your English is significantly better than my Spanish, so no worries on that front.