x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Pokemon team system

Hi,

I'd like to create a pokemon team system. I've created a Pokemon Blueprint class, with some variables like the name or the level. Every pokemon are a child class from this pokemon class. My problem append when i'd to save my team with the save game system. I don't know why but i can save basics variables like int or strings but i can't save a class or something like that.

Thinks for your help and sorry for my bad english. If you have any questions ask me

Product Version: UE 4.7
Tags:
more ▼

asked May 24 '15 at 12:06 PM in Blueprint Scripting

avatar image

AMALGAMES
1 1 2 2

avatar image AMALGAMES May 29 '15 at 11:08 AM

Anyone can help me ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello!

I see this is super old, but I happened to come across it and figured I'd answer while I'm milling over some code.

We had a similar issue in our game for saving items a character would have in their inventory. You can't save blueprints directly, but luckily there's some great stuff you CAN do. I didn't have a hand in the save/load directly, but I know the jist of how it works, and hopefully this can point you in the right direction.

What you want to do is pretty much save anything relevant in your pokemon save BP. Since you can't save the blueprint, you would save the non-constant variables and on Begin Play (after they're loaded again) you would fill those out with the data from the save BP.

For example, the pokemon's current health would be saved. The pokemon's name (like a nickname) would be saved. The CLASS of the pokemon (think Purple nodes, not blue!) would be saved.

Anything that is always the same, like the pokemon's original name or perhaps a portrait - those would never need to be saved. You can just pull those from the class defaults. (There's a new node in 4.9 called Get Class Defaults, and it's excellent.)

Hope that helps anyone coming across a similar issue.

more ▼

answered Sep 01 '15 at 05:22 AM

avatar image

Zaggoth
301 8 109 34

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question