Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Hey Alice, thank you for your help... ##
- ## You told me to make an EnemyScreen.gd script for my Enemy.tscn Scene ##
- ## This is the current script I have in the root of my Enemy.tscn (I don't think this is what you intended with EnemyScreen.gd): ##
- extends Entity
- func initialize(enemy_data : Dictionary):
- Username = enemy_data.get("Username", "Anon1822")
- Country = enemy_data.get("Country", "Unknown")
- IPAddress = enemy_data.get("IPAddress", "0.0.0.0")
- """
- Money = enemy_data["Money"]
- Level = enemy_data["Level"]
- XP = enemy_data["XP"]
- Nexp = enemy_data["Nexp"]
- CloudSpace = enemy_data["CloudSpace"]
- Attack = enemy_data["Attack"]
- Penetration = enemy_data["Penetration"]
- Defense = enemy_data["Defense"]
- Survellience = enemy_data["Survellience"]
- Health = enemy_data["Health"]
- Damage = enemy_data["Damage"]
- print("Enemy Username : " + enemy_data["Username"])
- """
- ## I also don't have a function yet to update the enemy_data Labels, but this is how I was planning on doing it: ##
- @onready var username_data: Label = %UsernameData
- func _updateNPC():
- username_data.text = str(selected_enemy.Username)
- ## Next Issue is I don't have a way to pick selected_enemy or a button to press NEXT (I can make one) which would go from Enemy[0] to Enemy[1] to Enemy[2], etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement