(Ace) Yanfly Party System

Hi everyone,

my current game will feature a lot of playable characters, but I want to limit the player's abilities to switch the characters around.

I want to do the following:

1. The main character, 'actor 001' cannot be taken out of the party.

2. The members of the current party can only be changed on the world map.

Is there an easy way to do that? If anyone has Yanfly's party script I'd be really thankful for it btw since the site's download link isn't working anymore.

Thanks!

(EDIT: I found the script, but I've got a little problem with the lock call - next post.

This is the Yanfly's Party System script, http://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/)
Here is the message on the front page of the Yanfly site.  As you can see, it's only a temporary issue, so you should be able to get the Party Script soon.

Hi there! For those who don’t know, we have reached our monthly limit in dropbox. Hopefully, by the next two days, the limit will be restarted. Not sure how it was even possible to reach the quota with just text and .rb files but nonetheless. Some of them still work since they’re hosted in my dropbox and I have a plan installed in it. I am also in the process of providing Pastebin links. I added them one by one per page, but for those who wants to see the whole thing, you can grab them over the following links:

Pastebin Mirror Link (Incomplete)
I was uploading them but I reached the limit. Gotta wait another 6 hours < 😀

GitHub Repository
You guys have no idea how hard this was to set up.
I'll move this over to RGSSx Script Support, so if you use that script and need any help getting it set up, it's in the right place.
So, I found the script but for some reason it's not doing what I'd expect it to...

I want the main character to be locked for the whole game, so I put Script Call - lock_actor(001) at the beginning of an event at the beginning of the game.

It doesn't do anything though.

What am I doing wrong?
Bump.

I'm still stuck, any help would be really appreciated. 
There should be no leading zeros in your script call.

I'm also wondering, from the way you worded your post, if you included the words "Script Call".  If you did, take it out, those words were an instruction to you, not to the engine.  You use the Script Call button on the third tab of the event command menu.  Click on that, and a dialogue box opens where you input the command.  If your post didn't mean that you'd put the words in, then ignore this bit.

So the script call should be:

lock_actor(1)

Having said that, I have a vague memory that the first actor is actor (0), but try (1) first.
It still doesnt do anything, I have no idea why.

I tried with the name Eric and 0, both give me an error.

Its 3rd page, advanced, script... - yes?

Otherwise I have no clue.
Try inputting what I suggested i.e. actor not Eric
I meant that I tried all of them, ie: 001, 1, Eric... I don't know what else can I use.
Hmm, in that case, I'm out of suggestions.  I do notice, however, this bit in Yanfly's script

*IMPORTANT* These script calls require the new party menu to be enabled to

# use them. Otherwise, nothing will happen.
I suspect that this is the issue.

However, I think you will have to wait until someone more script-savvy than me answers your query.

EDIT

If you want the first actor to be locked from the beginning of the game, you could change line 120 from false to true.
i'm terribly sorry for bumping as it's 2016, and I don't even know if this is still a problem for you, but I found this thread while googling for the download link so;  just yesterday I was scrolling thru the comments on the yanfly page and this locking problem was brought up. Then, someone mentioned they tried fixing the script and every response to them was positive (i have yet to try it since i'm still just trying to download it.)

Olive


March 15, 2012 @ 3:56 PM


 



Anomaly Report.


I tested your script, and I found ‘lock_actor(x)’ script call isn’t working as you explained on my project.


I’m not using Yanfly Engine Ace. I placed your script at the top of ‘( ここに追加 )’ scripts array. And I was able to lock first actor using config @ line 120, and requiring specific actor using ‘require_actor(x)’ script call without any modification on your script. But ‘lock_actor(x)’ was not working.


I modified line 392, new method : lock_actor
return unless $game_party.battle_members.include?(actor.id)
↓ (into)
return unless $game_party.battle_members.include?(actor)


and then, ‘lock_actor(x)’ worked. (I didn’t tested further by the way. i.e. using the script call on the actor not in party or something with this modified script)


Could you check the line 392 and 402?


Ayumi


March 22, 2012 @ 10:59 AM



Oh dear god, thank you for posting this Olive. I was worried that I couldn’t get the locking system to work. I nearly went nuts for a moment there.


I have also tried to modify line 402 as you did to line 392 and it did, in fact, worked.


Hopefully people would be able to see this to resolve their ‘lock_actor’ problem.


Thanks.



Again, not sure if this will work, but the topic was still open and unresolved so...


Also I'm new so sorry if the "bump if you have useful info" thing isn't accepted here. Again, my apologies.

Original thread: https://forums.rpgmakerweb.com/threads/ace-yanfly-party-system.25764/