RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VX] Problem with script ATB 1.2c... plz help.

Started by Lord_Szekelys, March 26, 2012, 01:22:11 AM

0 Members and 1 Guest are viewing this topic.

Lord_Szekelys

I have a problem with the script ATB 1.2C from the "Tankentai Sideview Battle System v3.4e & ATB v1.2c"

Hope u guys can help me.

I am Hispanic, therefore I have the RPG Maker in Spanish. One difference is that in the Spanish version uses two vocab:
StartScape and StartScapeSolo.

The problem I have is that I do not know how to configure the script so that if my party more than one character says "StartScape" and if there is only one says "StartScapeSolo".
I hope you understand me, my English is terrible.

Here you have the section of the script that decides which vocab when used for escape.

@info_viewport.visible = false # hide the info viewport
@message_window.visible = true # show the message window
text = sprintf(Vocab::EscapeStart, $game_party.name) # format the escape text
$game_message.texts.push(text) # add it to the $game_message, so the message window grabs it next update
Sound.play_escape #play escape sound
if !success
$game_message.texts.push('\.' + Vocab::EscapeFailure)
# add fail message if necessary
end



grettigs!

Fall From Eden

Marc: You should be able to use $game_party.members.size to check the size of the current party, so you might be able to do something like this (untested, by the way):

Replace this:


text = sprintf(Vocab::EscapeStart, $game_party.name)


With this:


if $game_party.members.size > 1
  text = sprintf(Vocab::StartScape, $game_party.name)
else
  text = sprintf(Vocab::StartScapeSolo, $game_party.name)
end


I hope that works for you. :)

Lord_Szekelys

Omg! This works my friend.
Thank you so much!!
I can afford it do you? haha