How can I make this pet follower script (by Neon Black) accomdate to multipale pet followers?

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,248
Reaction score
1,250
First Language
Spanish
Primarily Uses
RMVXA
this shouldn't be done, but try duplicating the script on the materials list.
that *should* add another one, which you would have to rename to notice the change.

not the best solution, but it's the quickest to do without re-coding anything.

the script itself is a Pet object.
it adds itself to the game at run time, so if you want another Pet, you just call it twice, which the script does automatically at run time.

the other solution is to create an initialize function that would add them to the party, which is the correct solution, but that would require debugging to make sure it doesn't interfere with other initialize calls from other scripts.
 

Ilikebeef

Villager
Member
Joined
Nov 16, 2017
Messages
5
Reaction score
0
First Language
English
Primarily Uses
RMVXA
this shouldn't be done, but try duplicating the script on the materials list.
that *should* add another one, which you would have to rename to notice the change.

not the best solution, but it's the quickest to do without re-coding anything.

the script itself is a Pet object.
it adds itself to the game at run time, so if you want another Pet, you just call it twice, which the script does automatically at run time.

the other solution is to create an initialize function that would add them to the party, which is the correct solution, but that would require debugging to make sure it doesn't interfere with other initialize calls from other scripts.
I just tried it and it gives me an error: stack level is too deep.
Calling another pet just replaces it with the first one.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,078
Members
137,580
Latest member
Snavi
Top