Jump to content


Photo

Yanfly Party Command lock actor? VX Ace (Solved)


  • This topic is locked This topic is locked
20 replies to this topic

#1 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 15 June 2012 - 05:53 PM

I am using Yanfly Party System, and in order to lock an actor I need to do a script call, but I am not sure how to do this.

Edited by Zayber, 20 June 2012 - 09:51 PM.


#2 Lunarea

Lunarea

    Artist

  • Admin
  • 3,932 posts
  • Primarily UsesRMVX Ace

Posted 15 June 2012 - 06:01 PM

Event Page 3 > Advanced > Script ...

That's where you input whatever the call is. :)

My blog:

DevBlogSig.png

My current projects:

TUAH-userbar.png

Userbar-ST.png


#3 Chaos17

Chaos17

    Advanced Member

  • Early Adopter+
  • 489 posts
  • LocationFrance
  • Primarily UsesRMVX Ace
  • First LanguageFrench

Posted 15 June 2012 - 06:06 PM

I suggest you to read this guide if you've any other basic questions : http://www.scribd.co...PG-Maker-VX-Ace

ban.png
 


#4 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 15 June 2012 - 06:08 PM

Event Page 3 > Advanced > Script ...

That's where you input whatever the call is. :)

I tried it, but when I try lock_actor(1) it doesn't work, and when I try lock_actor(Zayber) I get an error saying 'Game_Interpreter' line 1411: NameError occurred

uninitialized constant game_interpreter::Zayber

Edited by Zayber, 15 June 2012 - 06:11 PM.


#5 Lunarea

Lunarea

    Artist

  • Admin
  • 3,932 posts
  • Primarily UsesRMVX Ace

Posted 15 June 2012 - 06:13 PM

Which script are you using?

My blog:

DevBlogSig.png

My current projects:

TUAH-userbar.png

Userbar-ST.png


#6 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 15 June 2012 - 06:14 PM

Which script are you using?

http://yanflychannel...s/party-system/

#7 Lunarea

Lunarea

    Artist

  • Admin
  • 3,932 posts
  • Primarily UsesRMVX Ace

Posted 15 June 2012 - 06:20 PM

Hrm .. Well, the requirement for the call is that the new party menu must be enabled. So, I guess the first step is to check that it is. :)

My blog:

DevBlogSig.png

My current projects:

TUAH-userbar.png

Userbar-ST.png


#8 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 15 June 2012 - 06:23 PM

Hrm .. Well, the requirement for the call is that the new party menu must be enabled. So, I guess the first step is to check that it is. :)

It is. I made sure by deleting the script, and when the script is inserted it changes the formation menu.

#9 Xypher

Xypher

    Advanced Member

  • Members
  • 31 posts
  • Primarily UsesN/A

Posted 16 June 2012 - 01:14 AM

I believe it's lock_actor(actor_id) so you need to find the actor_id of the person you want to lock, not the party member position.

#10 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 16 June 2012 - 01:34 PM

I believe it's lock_actor(actor_id) so you need to find the actor_id of the person you want to lock, not the party member position.

how do I find the ID?

#11 Lunarea

Lunarea

    Artist

  • Admin
  • 3,932 posts
  • Primarily UsesRMVX Ace

Posted 16 June 2012 - 01:39 PM

It's the number in front of their name in the Actors section of the database (the list on the left). :)

My blog:

DevBlogSig.png

My current projects:

TUAH-userbar.png

Userbar-ST.png


#12 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 16 June 2012 - 01:45 PM

It's the number in front of their name in the Actors section of the database (the list on the left). :)

It still didn't work. I used lock_actor(001).

#13 Gleen

Gleen

    Advanced Member

  • Members
  • 100 posts
  • Primarily UsesRMVX Ace
  • First Languageportuguese

Posted 18 June 2012 - 07:32 PM

You have to use lock_actor(1) wich is refering to the first actor in your database. If nothings happens when you use this, you're missing another option or something isn't working as expected.

Did you configure any other options? If yes, wich options and how you configured them?
How many actors are in your database?

If you answer that questions i may be able to reproduce your error and see what's happening... or you can upload a demo of you problem so i can take a look.

#14 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 19 June 2012 - 06:19 PM

You have to use lock_actor(1) wich is refering to the first actor in your database. If nothings happens when you use this, you're missing another option or something isn't working as expected.

Did you configure any other options? If yes, wich options and how you configured them?
How many actors are in your database?

If you answer that questions i may be able to reproduce your error and see what's happening... or you can upload a demo of you problem so i can take a look.

I have 12 actors in my database. The only two things I changed in the script is the max party to 4 and I turned display faces on.

#15 Solomon

Solomon

    Emperor of Carnelia

  • Member+
  • 660 posts
  • LocationCherokee Nation, Oklahoma
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 19 June 2012 - 06:40 PM

Instead of lock_actor(name) use lock_actor(1) or (2) or whatever the ID of your characters is. For instance, if you want your main character, which is Actor 1 to be locked, do lock_actor(1), instead of (001)

#16 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 19 June 2012 - 11:28 PM

Instead of lock_actor(name) use lock_actor(1) or (2) or whatever the ID of your characters is. For instance, if you want your main character, which is Actor 1 to be locked, do lock_actor(1), instead of (001)

I've tried that. I did that before trying the others. None of it seems to work for some reason... Is there another Engine I need with this one besides the core engine?

#17 Solomon

Solomon

    Emperor of Carnelia

  • Member+
  • 660 posts
  • LocationCherokee Nation, Oklahoma
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 20 June 2012 - 12:44 AM

Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.

#18 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 20 June 2012 - 01:03 AM

Yanfly Core Engine and Yanfly Party Commands should do it. Perhaps the Yanfly Menu system as well.

It still didn't work. O_o

#19 Gleen

Gleen

    Advanced Member

  • Members
  • 100 posts
  • Primarily UsesRMVX Ace
  • First Languageportuguese

Posted 20 June 2012 - 06:24 AM

Ok, i did a little research and found that lock_actor(x) has a bug in the released version, but a comment posted on Yanfly's blog fixed that.

Here's how to do it. Edit line 392 and 402 from:

return unless $game_party.battle_members.include?(actor.id)

to this:

return unless $game_party.battle_members.include?(actor)

And it'll work.

#20 Zayber

Zayber

    Advanced Member

  • Members
  • 44 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 20 June 2012 - 01:05 PM

Ok, i did a little research and found that lock_actor(x) has a bug in the released version, but a comment posted on Yanfly's blog fixed that.

Here's how to do it. Edit line 392 and 402 from:

return unless $game_party.battle_members.include?(actor.id)

to this:

return unless $game_party.battle_members.include?(actor)

And it'll work.

Thank you! It worked. :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users