not sure,the Request Turn looks like this,not sure if i should leave it as self or not
the Turn Request at the end is another function
not sure,the Request Turn looks like this,not sure if i should leave it as self or not
the Turn Request at the end is another function
Okay but is the function itself (not the other function inside it) from another BP? If not, you should leave the target pin as Self. You don’t need to check anything actually I see that it is. I just wanned to make that clarification.
Let me know if you’re able to make the logic I provided work for your case
first can you zoom out the second image at post 12 because i’m not sure
how the connections arein detail. Also i’m not sure if the speedArray
is getting any array elements either because i haven’t made
the change of the second image at post 12 or because the 2 instances i have on the level are child and grandchild of unitbase
Already did
You can find it in my initial post
If you encounter any unexpected results, you can share all of the related parts of your blueprints and we can take a look
the array isn’t getting any elements, probably because the instances are child and
grandchild of unitbase.
the debug filter next to play also doesn’t give any unitbase options to cover all its children
correction they’re both grandchildren of unitbase, it is something like this
unitbase
partyunitbase enemyunitbase
playerunit walking_mushroomunit
Could you provide a little bit more context? Can you show how you set your “speed” variable in your actor? You can share all of the related parts of your blueprints for us to take a look at.
You should assign it a value before comparing it’s value between your each actor.
To see that our logic indeed works, you can just assign them random values at begin play.
Also, make sure to place your actors into the scene. Drag your “unitbase” actor from the content browser into your map multiple times (or copy one that’s already placed multiple times)
But then all of the values will be equal.
As for why no elements get added to our array, I suspect your actors aren’t placed into your scene.
also if it helps my blueprints are almost the same as the ones at the youtube playlist
since it’s only one showing how to make a turned based rpg
mine is different in that i used 2d characters and (for now)no animations
i’m trying to use the speed integer variable instead of the progress bar he uses on video 4
so that the unit with the highest speed gets their turn first or if the 2 or more units with higest speed randomly have one of them
No need to get lost in the chaos.
Just tell me these:
If we can’t see what’s going on with these steps, I might be able to make a quick Discord session with you next week if you like.
You mean when you try to get the Array Element’s display name?
Aight, maybe there’s something I’m missing but nothing much comes to my mind right now. I’d need to be on my PC to test it for myself. It’d also be more efficient if I could watch your screen in real time. If you like, you can share your Discord with me via private messages on this platform.