u/NoSeaworthiness4639

How to make certain options in an Array only available if a Boolean is True

I made a dialogue branching system (using a tutorial admittedly) but it didn't cover how to make the dialogue options that are available change depending on other variables.

It works by using arrays which are inputed into a dialogue function. But I am not sure how to make the options available in the array change depending on other booleans.

For example,

  1. hello

  2. What is your name?

  3. I heard you sell cards (if Know's about Cards = True)

The only way I can think of is making a separate array for every single combination and permutation of options. But that seems completely inefficient and I doubt there isn't some easier method. Like setting an input into the array itself that "turns off" certain options so they don't output unless a condition is true.

reddit.com
u/NoSeaworthiness4639 — 5 hours ago

How to block players from falling off ledge in Top Down Preset

Just as the question says, how do I stop that? I keep finding people online saying "just turn off '’can fall off ledges"" but that option simply doesn't exist. I looked thoroughly.

I don't want to have to use invisible walls. But that is looking to be the only possible option at this point. Can someone help please?

Edit: I managed to find it, it was quite hidden and couldn't be called up by searching for it.

reddit.com
u/NoSeaworthiness4639 — 3 days ago

How to use Blueprints to get Dialogue Stats

Same game as last question, I want to have stats that take effect during dialogue. Like how in BG3 and Disco Elysium certain dialogue choices cause you to roll a random number with a modifier based on stats.

I found out how to do damage and increase health when leveling up. But how would you include a variable not attached to the character. Like the Check threshold, which is specific to each check and tied to the specific line choice.

I can only find out how to mess with stats when all of them are attached to one character.

I could do it easily if it was just C++, for pseudocode example (I know this isn't real C++)

If Option = 3c-Scene-7

If (Sug. + randint >= 15)

Play dialogue option

Else

Play failed dialogue option

But not sure with the UE5 Blueprints.

Any guidance would be deeply appreciated.

reddit.com
u/NoSeaworthiness4639 — 3 days ago

Question about US Military Structure circa ~1870-1890

Hello, I am writing for a story that takes place in the stated era, and I want to know what military structure was like during that period.

To show I did my research before asking here, I searched the internet and the best I could find is United States Army enlisted rank insignia 1851-1901 on Wikipedia (yes. I know that it's not a valid source. But it's what I found) which lists ranks, but it doesn't really describe what the ranks were like in that period.

Like, for example, it mentions that corporals existed. But not the size of the unit they led nor any other finer details. It does do well to know what ranks existed. But not the actual structure.

I also found The U.S. Army in the 1890s, on the U.S. Army Center of Military History website. But it, same as the other site, didn't go into the details I am requesting.

For example, one character is (in my current outline) a well respected Private First Class, and was promoted to the next higher rank, which should be corporal as I understand it. But I cannot find information on the size or name of what a corporal led during the stated period.

It would also be appreciated if, along with the answer, I could get a recommendation on sources for further reading. Thank you for your help. Also please cite your sources.

reddit.com
u/NoSeaworthiness4639 — 4 days ago