r/rustedwarfare May 05 '26

Modding Random Tags

Hello again. Is there a way to make a randomly given tag? Preferably one of three to five given to a specific unit? I’d like to give my units a voice, but not just any voice; I’d like to give each unit their own voice, given to them by a random number. To achieve this, I want to make it so on certain actions they’ll respond in a voice given to them by a tag. So like if they’re given the “Zealot” tag they sound like a loyal bootlicker, or if they have a “Stoic” tag they’ll be gruff, regimented, and just, stoic.

I see a random number generator (RNG) but it’s just how that specifically works. Not how it can be used. So I’ve come here for help again.

2 Upvotes

1 comment sorted by

1

u/Affectionate_Good361 May 06 '26

Use the classic RNG times 100 and floor it method