Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Making a pet seller.

Ok I want to make a pet seller who will sell you 1 pet and then you it will follow you around. Is this possible using actions? If so can some one tell me how?
 
Easily. I'd reccomend making a seperate party member for each pet, and then using a caterpillar script to have the following work. The selling can be determined via events.
 
gratheo is right, that would be best. it could be done via events, but it would be more complicated than you would like.
The only porblem I would forsee though: will there be other party member in your game? or just the hero and his pet? Because if there is more than one hero in the party, they will follow the player, when using the catapillar script.
 
Um I may have forgot to mention Im preety new at this. Just started
a day or so ago. Used tuts for maping and everything else so I preety
much have no idea what you meant by that.
 
-yawns- Time to show AceJP My Godly skills

Okay, Make an even for the seller and a event(s) for the animal(s). Then make an Item(s) called "Cat" or something(Have an Item for each animal. Okay In the event with the man say "Hello, Would you like to buy this nice blah blah blah?" (That was an example)
Then after that hit the "show choices" button. When the dialog box pops up click "Custom Choice"

*Note* I am doing this out of my head so it might not be word for word

Then click okay. In the sentance where it says "If choice is yes" put a continential branch below it where it is : If player's gold => x (x= the amount you want it to equal)
- x amount of gold
"There you go sonny" (Another example)
then add item "Cat" to the player.
Then on the else section put "Sorry, but you dont have enough money"(Example)

Then on the "No" choice, make him say something like "Too bad".

Then click on the animal's event. at the top of the dialog box click the "Add New Page." button. After that click on the First tab.
Make a Contential branch where it say something like this "If hero items = 'Cat'" then turn on Local switch A on. On the next page have your animal's movement set as follow and Make the conditions (Top left hand corner-ish) where local switch A=on. If you want to make it work with the Catapillar script put this in replacement with what is underlined above
"If Hero Items= 'Cat'
>Add Hero "Cat"
Else
>
End

Then that should be it. Just make sure you enter the animal's graphic on both tabs though, Unless you dont want it to be seen until you buy it. Then dont put anything on the first tab
 

Sabao

Sponsor

Cheeze, that idea won't really work well because the follow hero movement can't really keep up with the movement as well as the caterpillar script would. The pet would wind up being stuck to a wall or NPC trying to follow the hero and would be several cells behind.

That, and there's no way for you to have the pet outside the area you bought it, unless you added the said event on every single page of the map.
 

Sabao

Sponsor

Cheeze;289985 said:
Well if you have the catapillar script, Make the cat a hero and once you have the item "Cat" add hero to your group -thumbs up-
Trouble there would be if he wanted the pet to be purely aesthetic/ not part of the fighting party, but unless a separate script was made I think this would be the closest thingwe could get I guess.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top