GregTheEgg
GregTheEgg
CC#
Created by GregTheEgg on 7/17/2024 in #help
attempting to solve error, need help :(
No description
3 replies
CC#
Created by GregTheEgg on 7/16/2024 in #help
Need help compressing an RPS system
// I really couldn't think of anything better minus a load of if conditionals, mb.
if (inter.value == random){
Debug.Log("tie");
}
if (inter.value == 1 && random == 3){
Debug.Log("win");
}
if (inter.value == 2 && random == 1){
Debug.Log("win");
}
if (inter.value == 3 && random == 2){
Debug.Log("win");
}
if (inter.value == 1 && random == 2){
Debug.Log("lose");
}
if (inter.value == 2 && random == 3){
Debug.Log("lose");
}
if (inter.value == 3 && random == 1){
Debug.Log("lose");
}
// I really couldn't think of anything better minus a load of if conditionals, mb.
if (inter.value == random){
Debug.Log("tie");
}
if (inter.value == 1 && random == 3){
Debug.Log("win");
}
if (inter.value == 2 && random == 1){
Debug.Log("win");
}
if (inter.value == 3 && random == 2){
Debug.Log("win");
}
if (inter.value == 1 && random == 2){
Debug.Log("lose");
}
if (inter.value == 2 && random == 3){
Debug.Log("lose");
}
if (inter.value == 3 && random == 1){
Debug.Log("lose");
}
8 replies
CC#
Created by GregTheEgg on 7/10/2024 in #help
✅ anyone know why I'm getting this error
No description
2 replies
CC#
Created by GregTheEgg on 7/10/2024 in #help
✅ Variable access help :(
No description
27 replies