using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LOCATION : MonoBehaviour {
public Transform position;
public string Source;
public string Conduit;
public string Implement;
private float Healthmax;
public float Health;
private float Staminamax;
public float Stamina;
private float Energymax;
public float Energy;
public float Ndegree;
public float Edegree;
public float Strength;
public float Chakra;
public float Spirit;
public float Speed;
public float Dexterity;
public float Reflex;
public float Intel;
public float Wits;
public float Mind;
public float Endure;
public float Resist;
public float Shell;
public float Power;
void Start()
{
Vector3 pos = transform.position;
transform.position = new Vector3(x: Ndegree + 150, y: Edegree + 250, z: 214);
Power = Strength + Chakra + Spirit + Speed + Dexterity + Reflex + Intel + Wits + Mind + Endure + Resist + Shell;
Health = (Endure * 10) + (Resist * 2) + (Chakra * 10);
Stamina = (Dexterity * 10) + (Chakra * 2) + (Resist * 2);
Energy = (Spirit * 10) + (Mind * 5);
}
void Fixedupdate ()
{
if (Input.GetKey("a"))
{
Health= (Endure * 10) + (Resist * 2) + (Chakra * 10);
Staminamax = (Dexterity * 10) + (Chakra * 2) + (Resist * 2);
Energymax = (Spirit * 10) + (Mind * 5);
}
}
}
PS: the bottom health is supposed to be HealthMax but for debuging purposes…
also this program is defining about 50 other character stats, though i don’t know if that’s the issue since the Update part won’t even return a debug.log text to me.