{RESOLVED} can help me a little?

Started by dark-archangel, January 11, 2008, 11:14:26 am

Previous topic - Next topic

dark-archangel

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

Blizzard

January 11, 2008, 11:27:29 am #1 Last Edit: January 11, 2008, 11:48:58 am by Blizzard
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. =/
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

January 11, 2008, 11:48:26 am #2 Last Edit: January 11, 2008, 11:51:04 am by dark-archangel
wrong script  :(, I tried it and it don't worked... and I have SDK
I receive an error at  y += bitmap.height / 4 + 16

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

if I try what you gived me I receive erroe at line  setup_eps_later(actor_id)  ;D

Blizzard

Are you SURE that you used this code:
$game_actors[1].must_be_in_party =
true
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

verry :)

oh and I used Juan's Custom Menu,is there something wrong with these 2 scripts?

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

http://www.mediafire.com/?0mrjai7nxnm

here are and plz when you taked them delete this replay:)

Blizzard

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? :)
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

January 11, 2008, 12:22:13 pm #10 Last Edit: January 11, 2008, 12:25:20 pm by dark-archangel
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)

Blizzard

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?
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

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

Blizzard

January 11, 2008, 12:42:15 pm #13 Last Edit: January 11, 2008, 12:53:22 pm by Blizzard
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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

syntax error at the 1st script :-[

Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel

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)

Blizzard

Just use:
$game_actors[ID].disabled_for_party =
true

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

dark-archangel