Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: dark-archangel on January 11, 2008, 11:14:26 am

Title: {RESOLVED} can help me a little?
Post by: dark-archangel on January 11, 2008, 11:14:26 am
have a look :
http://www.rmrevolution.com/80/easy-party-switcher/

can do that the actor 001 to can't be removed from party?


thanks
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 11:27:29 am
Use a "Call Script" event command add put following code into the window:
$game_actors[1].must_be_in_party =
true

You should read the instructions, I documented there already how to use those commands. =/
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 11:48:26 am
wrong script  :(, I tried it and it don't worked... and I have SDK
I receive an error at  y += bitmap.height / 4 + 16
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 11:49:12 am
You need to run the event first and then call the scene. Call it with
$scene = Scene_PartySwitcher.new(1)

afterwards and all party members (except the one who must be in party) will be removed from party.

It should work fine with SDK, though.
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 11:52:26 am
if I try what you gived me I receive erroe at line  setup_eps_later(actor_id)  ;D
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 11:55:40 am
Are you SURE that you used this code:
$game_actors[1].must_be_in_party =
true
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 11:57:43 am
verry :)

oh and I used Juan's Custom Menu,is there something wrong with these 2 scripts?
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 12:01:58 pm
That's VERY weird. No, his script shouldn't be doing any problems. Alright, get the Scripts.rxdata from your Data folder, upload it somewhere and give me a link, I will look into it and find the problem.
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 12:08:43 pm
http://www.mediafire.com/?0mrjai7nxnm

here are and plz when you taked them delete this replay:)
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 12:19:55 pm
Found the problem: You have copied the script 3 times. -_-
You have one copy in the slot named "Party Switch", on in the slot above (named ---========---) and one in the slot below (also named ---========---). Simply delete the scripts inside the two other slots and it will work. Can you next time please post the whole error message? If you have posted the error message that says "Stack level too deep", I would have figured out what the problem is in an instant. -_-

Well, now you know for the next time, right? :)
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 12:22:13 pm
lol,really  ;D
I'm really sorry,but I can't check everything:)
ok it worked but I have all my party there...I mean 7 characers....I want that them to be there just when I add them in party(in game of course)
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 12:32:19 pm
You can add them using event commands. Don't forget to set the configuration of my script so it supports more than 4 party members. Can you be more specific what else you mean?
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 12:38:30 pm
I mean,when I start with my character and use switch part,I see there 6 heroes inb reserve.I don't want them just when I put the command "change party member"
I mean I want that the heroes from reserve to be there just when I put that command
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 12:42:15 pm
Then use this at the very start of your game in an event:
(2...$data_actors.size).each {|i|
$game_actors[i].disabled_for_party =
true}

Whenever you want to enable a character for the party switcher, simply use:
$game_actors[ID].disabled_for_party =
false

where ID is the ID of the actor you want to unlock for switching.
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 12:46:12 pm
syntax error at the 1st script :-[
Title: Re: can help me a little?
Post by: Blizzard on January 11, 2008, 12:53:29 pm
Fixed.
Title: Re: can help me a little?
Post by: dark-archangel on January 11, 2008, 01:06:17 pm
ok,I got this with add,but if I want to remove? ;D

(I think this topic is enought for every noob to understand,maybe I'm there ;D)
Title: Re: can help me a little?
Post by: Blizzard on January 12, 2008, 07:18:48 am
Just use:
$game_actors[ID].disabled_for_party =
true

Title: Re: can help me a little?
Post by: dark-archangel on January 12, 2008, 07:53:05 am
thanks :)