I'm trying to figure out how to get info off of a 1 structure to use to get info from a second structure and use the info from the second to change the first. Here's some code hopefully explain it better.
struct weapons
{
string name;
int str;
};
struct user
{
string name;
int str;
string weapon;
};
weapons sword_01 =
{
"Nub Sword";
5
}
user player_01 =
{
CrAzD,
0,
"sword_01"
}
void setup()
{
// I don't know what goes here but here's what I would like to do, obviously it doesn't work but hopefully it helps explain what I'm trying to figure out.
player.str = player.weapon.str;
}