I couldn’t find the post that my issue was in because I wasn’t able to locate where it is. So I have to post it again. An example was shown to me how to do it in blueprints using a Print String Node. But I need the example done instead either using a Widget Text Block or Draw Text Node. For I am a visual guy, so I need to see the blueprint node set up to see how the array is set up. Now the Print String Node is for debugging purposes with the editor only, so when you pack up the game its not gonna show up for its only for the editor… That’s the reason why I can’t use the Print Screen node for the array. But the guy who showed me only knew how to set this up with the Print Screen Node.
I have been using the HUD for displaying my text dialog with using those text blocks as I already made a test map. So i’ve already got the dialog working for displaying simple dialog text blocks when you walk into the trigger near an npc to interact with them, got the interaction working… but I want the npc to also beable to choose its responses
and to do that I need to store the responses inside an random interger array.
Once I can get a basic array working in the Blueprints, Eventually I will need to add also the game choices also into the dialog (I don’t know how to do choices in widgets yet). And lastly when I can get all that going, I need to store all my game variables in a big database file or something, as its a complex game with over a hundred systems but for now, I just want to resolve one problem at a time. starting with getting a basic array working in the blueprints so I can start putting my dialog system into Unreal. Because I’m not an Unreal
Blueprint Programmer is why I’m having struggles getting my script code converted over into
Blueprints. Most of my script is all full of arrays.
The array.
set spin=0
set /a spin=%random% %%4+1
if %spin% EQU 1 echo. Greetings.
if %spin% EQU 2 echo. How are you
if %spin% EQU 3 echo. What’s new?
if %spin% EQU 4 echo. Nice day.
The script example array will just output 1 line at random of any of the above 4 greetings when its run. Its just a simple script that endlessly recycles around the responses at random as you need to put that with some of your npc’s in the game to allow them to have personal opinions. But I need to get Unreal Engine to do the same thing with the blueprint nodes like this script is doing with the above text example.
If anyone can show me the set up for the array I need it will be much appreciated.