Hi, I’m new to UE4 and scripting of any kind. I’ve searched through the documentation for UE4 for three days, but I don’t think I know the proper terminology in order to ask the right question. Please have patience as I try to describe my problem.
I’m working on my second learning experience in UE4 (the first was a basic sidescroller) and have been trying to create blueprints that would mimic the gameplay of the old Pokemon games.
I have been able to create a blueprint actor that, when overlapped with by the player, has a 15% chance of sending the player to a separate level (like walking in the grass). I used a random float and a branch to do this and it works just fine.
Once in the “encounter level” I want an actor to spawn according to odds that I decide (for example, every time you enter the encounter level there is a 40% of spawning ActorA and a 60% of spawning ActorB). I would then want the actor to be destroyed (after a brief delay) and the player sent back to the starting level, ready to continue the adventure. I’m not yet trying to build the system for a battle.
My issue was that when the player would be sent to the encounter level more than once in a session of play, the same random float would be used which would, in turn, spawn the same actor every time. I’ve spent three days trying to set my blueprints up properly, with no success.
I’m sure that my blueprints and methods are barbaric, so any instruction/advice (especially with pictures) is greatly appreciated. Below are some screenshots of where I’m currently at with my plight. Thanks!!!
264495-