The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Kokowam on April 03, 2007, 12:02:18 PM

Title: [REQUEST] Script Compatability
Post by: Kokowam on April 03, 2007, 12:02:18 PM
Ok... Well, I attached two scripts here and the problem is I need them to be compatable with each other. When special commands like /name and /b are used, then the encryption of letters doesn't work. Can anyone help me? :P Thanks in advance! I've taken the time to un-SDK-ify the encrypting system.
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 05, 2007, 02:25:32 PM
Bumpity bump.
Title: Re: [REQUEST] Script Compatability
Post by: Tsunokiette on April 06, 2007, 04:48:43 PM
Since I don't do scripting anymore I'll just say how this is done.

All you should have to do is implement the refresh method of the Al Bhed script with the refresh method of Slipknot's Message System, resulting in Slipnot's Message System including the Al Bhed feature.

Not too hard really. It should take someone who knows what they're doing about 30 minutes max to combine them. About 10 if they REALLY know what they're doing. Testing is a different matter though.
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 06, 2007, 05:24:41 PM
Testing is easy. I'll try to do this, even though I'm scripting noob. XD Thanks for the help, though.

Quote from: Tsunokiette on April 06, 2007, 04:48:43 PM
Since I don't do scripting anymore I'll just say how this is done.

Lol. What about "Well, maybe a little." ? XP Lol.

EDIT: I have no idea what to do. Also, don't take my sentence above this one as a way to force to script again :P Thanks :P :P :P I'll just think ideas while I wait for help or manage to figure it out on my own (yeah right >_>)
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 07, 2007, 11:54:22 PM
Bump bump bumpity

Oh noes! It's bump number 2!

EDIT: Argh. I guess the names will have to be encrypted, too, since there's no other way to do it, then >_>

EDIT 2: My idea on how to do it is this:

Since Slipknot completely rewrites the Window_Message class, you copy and over-paste the old Window_Message with Slipknots. Then, you have the aliasing.
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 10, 2007, 01:19:58 AM
BUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUMP
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 16, 2007, 07:51:16 PM
Necro-mastery Bump. I have no idea what to do >< Well, Tsuno's words are the only things I have. I know what must be done, but I don't know the process of which to do it.
Title: Re: [REQUEST] Script Compatability
Post by: Tsunokiette on April 16, 2007, 10:01:23 PM
Use the same method the Al Bhed script uses when translating text in the Message Window's refresh method. You want to use it where the refresh (or whatever method he uses) checks for what text to write.

It would probably work best if you added a function to check if the message is in Al Bhed or not... Hmmm. I'm bored. But don't count on me to finish it, chances are I won't. ...past experience...
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 16, 2007, 10:06:10 PM
Oh, okay. I can kind of tell by your siggy (that you probably won't finish). Anyways, didn't know you were back! And you're the only one helping me with this. T_T I'll read over this post and your other one and try to see if I can try to do it. I guess there can be a check like "unless $game_languages.language_id = nil" and then try that? Idk. I'm taking a shot in the dark. I tried one thing and managed to edit the refresh so there wouldn't be one in the Al-Bhed because it would be done in the one with the Slipknot. All that happened was the same thing -_- Unable to do both. :P Thanks for your help, though.

Edit: The place where it checks is (I think) is "$game_languages.change_to_language"
Title: Re: [REQUEST] Script Compatability
Post by: Tsunokiette on April 16, 2007, 10:22:49 PM
To help with testing I'd use a "dummy" script. One the confirms whether the text is in Al Bhed

p 'This text is in Al Bhed'

or not

p 'This text is not in Al Bhed'

, then showing the text you entered into the message.

If all goes well then input the translation method and test.
Title: Re: [REQUEST] Script Compatability
Post by: Kokowam on April 16, 2007, 10:29:46 PM
Wow, you posted right when I finished eating. Anyways, so, I couldn't understand all of that perfectly, but I'm guess this: I should add "p 'AEWHAEWOHBA'" or something like that right after 'def change_to_language' If I do so, then when the translation method thing is turned on (call script '$game_languages.language_id = 1') then the 'AEWHAEWOHBA' comes up in the window and then the translated message comes up. That's what was meant to happen, right?

Sidenote: Gonna be gone from EST 6:30 to whenever watching TV so brb later.