This commit is contained in:
Page Asgardius 2024-05-15 14:53:24 -07:00
parent e29387497f
commit 02ab2a38e9
5 changed files with 107 additions and 92 deletions

View file

@ -19,6 +19,7 @@ const npcfaces = ["res://sprites/common/midori/face.png",null, null, "res://spri
const basestats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]]
var cstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]]
var dstats = [[800, 200, 52, 12, 136, 25, 800], [1094, 200, 54, 7, 106, 48, 600], [null], [1143, 200, 59, 5, 117, 18, 650], [null], [null], [null], [null], [null], [1026, 200, 87, 7, 105, 49, 115]]
var mstats = [[null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null], [null, null, null, null, null, null, null]]
var cdialog = []
const places = [[[[null, null, false], [null, null, false]], [["res://levels/Testrooms/bullethell.tscn", 11, true], ["res://levels/Testrooms/lilytest.tscn", 6, false]], [["res://levels/Testrooms/dialogtest.tscn", 19, false], ["res://levels/Testrooms/testspawn.tscn", 2 ,false]]], [null, null, null, null, null, null, null, null, null, null, null, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, ["res://levels/Ceres/L20.tscn", 3, true]]]]
var cplace = [0,2,1]
@ -31,6 +32,7 @@ var party = [[0,0], [1,0], [9,0], [3,0]]
const specialities = [2, 0, 3, 1, 5, 4]
var dparty = [[0,0], [1,0], [9,0], [3,0]]
var level = [1,1,1,1,1,1,1,1,1,1]
var dlevel = [1,1,1,1,1,1,1,1,1,1]
var cpchar = 0
var dificulty = 0
var dcpchar = 0

View file

@ -12,6 +12,7 @@ var ishud = true
# Called when the node enters the scene tree for the first time.
func _ready():
_statrebase()
add_child(bgsound)
add_child(sfx1)
if Global.debug:
@ -115,3 +116,14 @@ func _input(event):
elif Global.cdialog.size() == 0&& !ishud:
get_tree().root.add_child.call_deferred(thud)
ishud = true
func _statrebase():
if Global.debug:
for i in 4:
if Global.dparty[i][0] != null:
for j in 7:
Global.mstats[Global.dparty[i][0]][j] = Global.basestats[Global.dparty[i][0]][j] * Global.dlevel[Global.dparty[i][0]]
else:
for i in 4:
if Global.party[i][0] != null:
for j in 7:
Global.mstats[Global.party[i][0]][j] = Global.basestats[Global.party[i][0]][j] * Global.level[Global.dparty[i][0]]

View file

@ -49,7 +49,8 @@ func _on_noob_pressed():
Global.dificulty = 1
Global.cplace = [1, 11, 19]
Global.live = 1
Global.party = [[0,0], null, null, null]
Global.cpchar = 0
Global.party = [[0,0], [null,null], [null,null], [null,null]]
get_tree().change_scene_to_file("res://levels/ui/gameplay.tscn")
pass # Replace with function body.

View file

@ -110,19 +110,19 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
if Global.debug:
chealthf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][4])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][0] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][1] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][1]
bskillf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][4] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][4]
chealthf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][4])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][0] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][1] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][1]
bskillf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][4] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][4]
else:
chealthf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][0])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][1])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][4])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.party[Global.cpchar][0]][0] * 100) / Global.basestats[Global.party[Global.cpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.party[Global.cpchar][0]][1] * 100) / Global.basestats[Global.party[Global.cpchar][0]][1]
bskillf.value = (Global.cstats[Global.party[Global.cpchar][0]][4] * 100) / Global.basestats[Global.party[Global.cpchar][0]][4]
chealthf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][4])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.party[Global.cpchar][0]][0] * 100) / Global.mstats[Global.party[Global.cpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.party[Global.cpchar][0]][1] * 100) / Global.mstats[Global.party[Global.cpchar][0]][1]
bskillf.value = (Global.cstats[Global.party[Global.cpchar][0]][4] * 100) / Global.mstats[Global.party[Global.cpchar][0]][4]
func _input(event):
@ -139,12 +139,12 @@ func _charrefresh():
if Global.dparty[0][0] != null:
cn1.set_text(Global.pcnames[Global.dparty[0][0]])
cf1.texture = load(Global.hudfaces[Global.dparty[0][0]][Global.dparty[0][1]])
chealth1.set_text(str(Global.cstats[Global.dparty[0][0]][0])+"/"+str(Global.basestats[Global.dparty[0][0]][0]))
cstamina1.set_text(str(Global.cstats[Global.dparty[0][0]][1])+"/"+str(Global.basestats[Global.dparty[0][0]][1]))
cskill1.set_text(str(Global.cstats[Global.dparty[0][0]][4])+"/"+str(Global.basestats[Global.dparty[0][0]][4]))
bhealth1.value = (Global.cstats[Global.dparty[0][0]][0] * 100) / Global.basestats[Global.dparty[0][0]][0]
bstamina1.value = (Global.cstats[Global.dparty[0][0]][1] * 100) / Global.basestats[Global.dparty[0][0]][1]
bskill1.value = (Global.cstats[Global.dparty[0][0]][4] * 100) / Global.basestats[Global.dparty[0][0]][4]
chealth1.set_text(str(Global.cstats[Global.dparty[0][0]][0])+"/"+str(Global.mstats[Global.dparty[0][0]][0]))
cstamina1.set_text(str(Global.cstats[Global.dparty[0][0]][1])+"/"+str(Global.mstats[Global.dparty[0][0]][1]))
cskill1.set_text(str(Global.cstats[Global.dparty[0][0]][4])+"/"+str(Global.mstats[Global.dparty[0][0]][4]))
bhealth1.value = (Global.cstats[Global.dparty[0][0]][0] * 100) / Global.mstats[Global.dparty[0][0]][0]
bstamina1.value = (Global.cstats[Global.dparty[0][0]][1] * 100) / Global.mstats[Global.dparty[0][0]][1]
bskill1.value = (Global.cstats[Global.dparty[0][0]][4] * 100) / Global.mstats[Global.dparty[0][0]][4]
if Global.dcpchar == 0:
focus1.set_color(Color(0, 0, 1, 1))
else:
@ -162,12 +162,12 @@ func _charrefresh():
if Global.dparty[1][0] != null:
cn2.set_text(Global.pcnames[Global.dparty[1][0]])
cf2.texture = load(Global.hudfaces[Global.dparty[1][0]][Global.dparty[1][1]])
chealth2.set_text(str(Global.cstats[Global.dparty[1][0]][0])+"/"+str(Global.basestats[Global.dparty[1][0]][0]))
cstamina2.set_text(str(Global.cstats[Global.dparty[1][0]][1])+"/"+str(Global.basestats[Global.dparty[1][0]][1]))
cskill2.set_text(str(Global.cstats[Global.dparty[1][0]][4])+"/"+str(Global.basestats[Global.dparty[1][0]][4]))
bhealth2.value = (Global.cstats[Global.dparty[1][0]][0] * 100) / Global.basestats[Global.dparty[1][0]][0]
bstamina2.value = (Global.cstats[Global.dparty[1][0]][1] * 100) / Global.basestats[Global.dparty[1][0]][1]
bskill2.value = (Global.cstats[Global.dparty[1][0]][4] * 100) / Global.basestats[Global.dparty[1][0]][4]
chealth2.set_text(str(Global.cstats[Global.dparty[1][0]][0])+"/"+str(Global.mstats[Global.dparty[1][0]][0]))
cstamina2.set_text(str(Global.cstats[Global.dparty[1][0]][1])+"/"+str(Global.mstats[Global.dparty[1][0]][1]))
cskill2.set_text(str(Global.cstats[Global.dparty[1][0]][4])+"/"+str(Global.mstats[Global.dparty[1][0]][4]))
bhealth2.value = (Global.cstats[Global.dparty[1][0]][0] * 100) / Global.mstats[Global.dparty[1][0]][0]
bstamina2.value = (Global.cstats[Global.dparty[1][0]][1] * 100) / Global.mstats[Global.dparty[1][0]][1]
bskill2.value = (Global.cstats[Global.dparty[1][0]][4] * 100) / Global.mstats[Global.dparty[1][0]][4]
if Global.dcpchar == 1:
focus2.set_color(Color(0, 0, 1, 1))
else:
@ -185,12 +185,12 @@ func _charrefresh():
if Global.dparty[2][0] != null:
cn3.set_text(Global.pcnames[Global.dparty[2][0]])
cf3.texture = load(Global.hudfaces[Global.dparty[2][0]][Global.dparty[2][1]])
chealth3.set_text(str(Global.cstats[Global.dparty[2][0]][0])+"/"+str(Global.basestats[Global.dparty[2][0]][0]))
cstamina3.set_text(str(Global.cstats[Global.dparty[2][0]][1])+"/"+str(Global.basestats[Global.dparty[2][0]][1]))
cskill3.set_text(str(Global.cstats[Global.dparty[2][0]][4])+"/"+str(Global.basestats[Global.dparty[2][0]][4]))
bhealth3.value = (Global.cstats[Global.dparty[2][0]][0] * 100) / Global.basestats[Global.dparty[2][0]][0]
bstamina3.value = (Global.cstats[Global.dparty[2][0]][1] * 100) / Global.basestats[Global.dparty[2][0]][1]
bskill3.value = (Global.cstats[Global.dparty[2][0]][4] * 100) / Global.basestats[Global.dparty[2][0]][4]
chealth3.set_text(str(Global.cstats[Global.dparty[2][0]][0])+"/"+str(Global.mstats[Global.dparty[2][0]][0]))
cstamina3.set_text(str(Global.cstats[Global.dparty[2][0]][1])+"/"+str(Global.mstats[Global.dparty[2][0]][1]))
cskill3.set_text(str(Global.cstats[Global.dparty[2][0]][4])+"/"+str(Global.mstats[Global.dparty[2][0]][4]))
bhealth3.value = (Global.cstats[Global.dparty[2][0]][0] * 100) / Global.mstats[Global.dparty[2][0]][0]
bstamina3.value = (Global.cstats[Global.dparty[2][0]][1] * 100) / Global.mstats[Global.dparty[2][0]][1]
bskill3.value = (Global.cstats[Global.dparty[2][0]][4] * 100) / Global.mstats[Global.dparty[2][0]][4]
if Global.dcpchar == 2:
focus3.set_color(Color(0, 0, 1, 1))
else:
@ -208,12 +208,12 @@ func _charrefresh():
if Global.dparty[3][0] != null:
cn4.set_text(Global.pcnames[Global.dparty[3][0]])
cf4.texture = load(Global.hudfaces[Global.dparty[3][0]][Global.dparty[3][1]])
chealth4.set_text(str(Global.cstats[Global.dparty[3][0]][0])+"/"+str(Global.basestats[Global.dparty[3][0]][0]))
cstamina4.set_text(str(Global.cstats[Global.dparty[3][0]][1])+"/"+str(Global.basestats[Global.dparty[3][0]][1]))
cskill4.set_text(str(Global.cstats[Global.dparty[3][0]][4])+"/"+str(Global.basestats[Global.dparty[3][0]][4]))
bhealth4.value = (Global.cstats[Global.dparty[3][0]][0] * 100) / Global.basestats[Global.dparty[3][0]][0]
bstamina4.value = (Global.cstats[Global.dparty[3][0]][1] * 100) / Global.basestats[Global.dparty[3][0]][1]
bskill4.value = (Global.cstats[Global.dparty[3][0]][4] * 100) / Global.basestats[Global.dparty[3][0]][4]
chealth4.set_text(str(Global.cstats[Global.dparty[3][0]][0])+"/"+str(Global.mstats[Global.dparty[3][0]][0]))
cstamina4.set_text(str(Global.cstats[Global.dparty[3][0]][1])+"/"+str(Global.mstats[Global.dparty[3][0]][1]))
cskill4.set_text(str(Global.cstats[Global.dparty[3][0]][4])+"/"+str(Global.mstats[Global.dparty[3][0]][4]))
bhealth4.value = (Global.cstats[Global.dparty[3][0]][0] * 100) / Global.mstats[Global.dparty[3][0]][0]
bstamina4.value = (Global.cstats[Global.dparty[3][0]][1] * 100) / Global.mstats[Global.dparty[3][0]][1]
bskill4.value = (Global.cstats[Global.dparty[3][0]][4] * 100) / Global.mstats[Global.dparty[3][0]][4]
if Global.dcpchar == 3:
focus4.set_color(Color(0, 0, 1, 1))
else:
@ -232,12 +232,12 @@ func _charrefresh():
if Global.party[0][0] != null:
cn1.set_text(Global.pcnames[Global.party[0][0]])
cf1.texture = load(Global.hudfaces[Global.party[0][0]][Global.party[0][1]])
chealth1.set_text(str(Global.cstats[Global.party[0][0]][0])+"/"+str(Global.basestats[Global.party[0][0]][0]))
cstamina1.set_text(str(Global.cstats[Global.party[0][0]][1])+"/"+str(Global.basestats[Global.party[0][0]][1]))
cskill1.set_text(str(Global.cstats[Global.party[0][0]][4])+"/"+str(Global.basestats[Global.party[0][0]][4]))
bhealth1.value = (Global.cstats[Global.party[0][0]][0] * 100) / Global.basestats[Global.party[0][0]][0]
bstamina1.value = (Global.cstats[Global.party[0][0]][1] * 100) / Global.basestats[Global.party[0][0]][1]
bskill1.value = (Global.cstats[Global.party[0][0]][4] * 100) / Global.basestats[Global.party[0][0]][4]
chealth1.set_text(str(Global.cstats[Global.party[0][0]][0])+"/"+str(Global.mstats[Global.party[0][0]][0]))
cstamina1.set_text(str(Global.cstats[Global.party[0][0]][1])+"/"+str(Global.mstats[Global.party[0][0]][1]))
cskill1.set_text(str(Global.cstats[Global.party[0][0]][4])+"/"+str(Global.mstats[Global.party[0][0]][4]))
bhealth1.value = (Global.cstats[Global.party[0][0]][0] * 100) / Global.mstats[Global.party[0][0]][0]
bstamina1.value = (Global.cstats[Global.party[0][0]][1] * 100) / Global.mstats[Global.party[0][0]][1]
bskill1.value = (Global.cstats[Global.party[0][0]][4] * 100) / Global.mstats[Global.party[0][0]][4]
if Global.dcpchar == 0:
focus1.set_color(Color(0, 0, 1, 1))
else:
@ -255,12 +255,12 @@ func _charrefresh():
if Global.party[1][0] != null:
cn2.set_text(Global.pcnames[Global.party[1][0]])
cf2.texture = load(Global.hudfaces[Global.party[1][0]][Global.party[1][1]])
chealth2.set_text(str(Global.cstats[Global.party[1][0]][0])+"/"+str(Global.basestats[Global.party[1][0]][0]))
cstamina2.set_text(str(Global.cstats[Global.party[1][0]][1])+"/"+str(Global.basestats[Global.party[1][0]][1]))
cskill2.set_text(str(Global.cstats[Global.party[1][0]][4])+"/"+str(Global.basestats[Global.party[1][0]][4]))
bhealth2.value = (Global.cstats[Global.party[1][0]][0] * 100) / Global.basestats[Global.party[1][0]][0]
bstamina2.value = (Global.cstats[Global.party[1][0]][1] * 100) / Global.basestats[Global.party[1][0]][1]
bskill2.value = (Global.cstats[Global.party[1][0]][4] * 100) / Global.basestats[Global.party[1][0]][4]
chealth2.set_text(str(Global.cstats[Global.party[1][0]][0])+"/"+str(Global.mstats[Global.party[1][0]][0]))
cstamina2.set_text(str(Global.cstats[Global.party[1][0]][1])+"/"+str(Global.mstats[Global.party[1][0]][1]))
cskill2.set_text(str(Global.cstats[Global.party[1][0]][4])+"/"+str(Global.mstats[Global.party[1][0]][4]))
bhealth2.value = (Global.cstats[Global.party[1][0]][0] * 100) / Global.mstats[Global.party[1][0]][0]
bstamina2.value = (Global.cstats[Global.party[1][0]][1] * 100) / Global.mstats[Global.party[1][0]][1]
bskill2.value = (Global.cstats[Global.party[1][0]][4] * 100) / Global.mstats[Global.party[1][0]][4]
if Global.dcpchar == 1:
focus2.set_color(Color(0, 0, 1, 1))
else:
@ -278,12 +278,12 @@ func _charrefresh():
if Global.party[2][0] != null:
cn3.set_text(Global.pcnames[Global.party[2][0]])
cf3.texture = load(Global.hudfaces[Global.party[2][0]][Global.party[2][1]])
chealth3.set_text(str(Global.cstats[Global.party[2][0]][0])+"/"+str(Global.basestats[Global.party[2][0]][0]))
cstamina3.set_text(str(Global.cstats[Global.party[2][0]][1])+"/"+str(Global.basestats[Global.party[2][0]][1]))
cskill3.set_text(str(Global.cstats[Global.party[2][0]][4])+"/"+str(Global.basestats[Global.party[2][0]][4]))
bhealth3.value = (Global.cstats[Global.party[2][0]][0] * 100) / Global.basestats[Global.party[2][0]][0]
bstamina3.value = (Global.cstats[Global.party[2][0]][1] * 100) / Global.basestats[Global.party[2][0]][1]
bskill3.value = (Global.cstats[Global.party[2][0]][4] * 100) / Global.basestats[Global.party[2][0]][4]
chealth3.set_text(str(Global.cstats[Global.party[2][0]][0])+"/"+str(Global.mstats[Global.party[2][0]][0]))
cstamina3.set_text(str(Global.cstats[Global.party[2][0]][1])+"/"+str(Global.mstats[Global.party[2][0]][1]))
cskill3.set_text(str(Global.cstats[Global.party[2][0]][4])+"/"+str(Global.mstats[Global.party[2][0]][4]))
bhealth3.value = (Global.cstats[Global.party[2][0]][0] * 100) / Global.mstats[Global.party[2][0]][0]
bstamina3.value = (Global.cstats[Global.party[2][0]][1] * 100) / Global.mstats[Global.party[2][0]][1]
bskill3.value = (Global.cstats[Global.party[2][0]][4] * 100) / Global.mstats[Global.party[2][0]][4]
if Global.dcpchar == 2:
focus3.set_color(Color(0, 0, 1, 1))
else:
@ -301,12 +301,12 @@ func _charrefresh():
if Global.party[3][0] != null:
cn4.set_text(Global.pcnames[Global.party[3][0]])
cf4.texture = load(Global.hudfaces[Global.party[3][0]][Global.party[3][1]])
chealth4.set_text(str(Global.cstats[Global.party[3][0]][0])+"/"+str(Global.basestats[Global.party[3][0]][0]))
cstamina4.set_text(str(Global.cstats[Global.party[3][0]][1])+"/"+str(Global.basestats[Global.party[3][0]][1]))
cskill4.set_text(str(Global.cstats[Global.party[3][0]][4])+"/"+str(Global.basestats[Global.party[3][0]][4]))
bhealth4.value = (Global.cstats[Global.party[3][0]][0] * 100) / Global.basestats[Global.party[3][0]][0]
bstamina4.value = (Global.cstats[Global.party[3][0]][1] * 100) / Global.basestats[Global.party[3][0]][1]
bskill4.value = (Global.cstats[Global.party[3][0]][4] * 100) / Global.basestats[Global.party[3][0]][4]
chealth4.set_text(str(Global.cstats[Global.party[3][0]][0])+"/"+str(Global.mstats[Global.party[3][0]][0]))
cstamina4.set_text(str(Global.cstats[Global.party[3][0]][1])+"/"+str(Global.mstats[Global.party[3][0]][1]))
cskill4.set_text(str(Global.cstats[Global.party[3][0]][4])+"/"+str(Global.mstats[Global.party[3][0]][4]))
bhealth4.value = (Global.cstats[Global.party[3][0]][0] * 100) / Global.mstats[Global.party[3][0]][0]
bstamina4.value = (Global.cstats[Global.party[3][0]][1] * 100) / Global.mstats[Global.party[3][0]][1]
bskill4.value = (Global.cstats[Global.party[3][0]][4] * 100) / Global.mstats[Global.party[3][0]][4]
if Global.dcpchar == 3:
focus4.set_color(Color(0, 0, 1, 1))
else:
@ -325,19 +325,19 @@ func _charrefresh():
if Global.debug:
cnf.set_text(Global.pcnames[Global.dparty[Global.dcpchar][0]])
cff.texture = load(Global.hudfaces[Global.dparty[Global.dcpchar][0]][Global.dparty[Global.dcpchar][1]])
chealthf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][4])+"/"+str(Global.basestats[Global.dparty[Global.dcpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][0] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][1] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][1]
bskillf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][4] * 100) / Global.basestats[Global.dparty[Global.dcpchar][0]][4]
chealthf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.dcpchar][0]][4])+"/"+str(Global.mstats[Global.dparty[Global.dcpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][0] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][1] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][1]
bskillf.value = (Global.cstats[Global.dparty[Global.dcpchar][0]][4] * 100) / Global.mstats[Global.dparty[Global.dcpchar][0]][4]
else:
cnf.set_text(Global.pcnames[Global.party[Global.cpchar][0]])
cff.texture = load(Global.hudfaces[Global.party[Global.cpchar][0]][Global.party[Global.cpchar][1]])
chealthf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][0])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][1])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][4])+"/"+str(Global.basestats[Global.dparty[Global.cpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.party[Global.cpchar][0]][0] * 100) / Global.basestats[Global.party[Global.cpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.party[Global.cpchar][0]][1] * 100) / Global.basestats[Global.party[Global.cpchar][0]][1]
bskillf.value = (Global.cstats[Global.party[Global.cpchar][0]][4] * 100) / Global.basestats[Global.party[Global.cpchar][0]][4]
chealthf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][0])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][0]))
cstaminaf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][1])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][1]))
cskillf.set_text(str(Global.cstats[Global.dparty[Global.cpchar][0]][4])+"/"+str(Global.mstats[Global.dparty[Global.cpchar][0]][4]))
bhealthf.value = (Global.cstats[Global.party[Global.cpchar][0]][0] * 100) / Global.mstats[Global.party[Global.cpchar][0]][0]
bstaminaf.value = (Global.cstats[Global.party[Global.cpchar][0]][1] * 100) / Global.mstats[Global.party[Global.cpchar][0]][1]
bskillf.value = (Global.cstats[Global.party[Global.cpchar][0]][4] * 100) / Global.mstats[Global.party[Global.cpchar][0]][4]

View file

@ -27,7 +27,7 @@ script = ExtResource("1_pntuv")
[node name="Bossbg" type="ColorRect" parent="CanvasLayer"]
offset_left = 467.0
offset_right = 728.0
offset_right = 768.0
offset_bottom = 50.0
color = Color(0.254902, 0.254902, 0.254902, 1)
@ -59,13 +59,13 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Boss/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
[node name="Topminibg" type="ColorRect" parent="CanvasLayer"]
offset_right = 397.0
offset_right = 438.0
offset_bottom = 116.0
color = Color(0.254902, 0.254902, 0.254902, 1)
@ -108,7 +108,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -128,7 +128,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_05pau")
theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7")
[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -147,7 +147,7 @@ layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_ftyws")
[node name="Label2" type="Label" parent="CanvasLayer/Topmini/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -159,7 +159,7 @@ color = Color(0, 0, 1, 1)
[node name="Topleftbg" type="ColorRect" parent="CanvasLayer"]
visible = false
offset_right = 397.0
offset_right = 437.0
offset_bottom = 476.0
color = Color(0.254902, 0.254902, 0.254902, 1)
@ -206,7 +206,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -226,7 +226,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_05pau")
theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -245,7 +245,7 @@ layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_ftyws")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character1/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -292,7 +292,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -312,7 +312,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_05pau")
theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -331,7 +331,7 @@ layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_ftyws")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character2/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -378,7 +378,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -398,7 +398,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_05pau")
theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -417,7 +417,7 @@ layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_ftyws")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character3/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -464,7 +464,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_ualpu")
theme_override_styles/fill = SubResource("StyleBoxFlat_patnr")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer2"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -484,7 +484,7 @@ theme_override_styles/background = SubResource("StyleBoxFlat_05pau")
theme_override_styles/fill = SubResource("StyleBoxFlat_u3vj7")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer3"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2
@ -503,7 +503,7 @@ layout_mode = 2
theme_override_styles/background = SubResource("StyleBoxFlat_ftyws")
[node name="Label2" type="Label" parent="CanvasLayer/Topleft/Character4/VBoxContainer/HBoxContainer4"]
custom_minimum_size = Vector2(83, 0)
custom_minimum_size = Vector2(123, 0)
layout_mode = 2
text = "100/100"
horizontal_alignment = 2