character outfit ready
This commit is contained in:
parent
fa68edfb24
commit
fd21d0ed2d
10 changed files with 286 additions and 55 deletions
|
@ -78,31 +78,31 @@ func _input(event):
|
|||
get_tree().change_scene_to_file("res://title.tscn")
|
||||
if (Global.live == 1 && (Input.is_key_pressed(KEY_V) && Input.is_key_pressed(KEY_UP)) ||(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER) && Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_UP))):
|
||||
if Global.debug:
|
||||
if Global.dparty[0] != null:
|
||||
if Global.dparty[0][0] != null:
|
||||
Global.dcpchar = 0
|
||||
else:
|
||||
if Global.party[0] != null:
|
||||
if Global.party[0][0] != null:
|
||||
Global.cpchar = 0
|
||||
elif (Global.live == 1 && (Input.is_key_pressed(KEY_V) && Input.is_key_pressed(KEY_RIGHT)) ||(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER) && Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_RIGHT))):
|
||||
if Global.debug:
|
||||
if Global.dparty[1] != null:
|
||||
if Global.dparty[1][0] != null:
|
||||
Global.dcpchar = 1
|
||||
else:
|
||||
if Global.party[1] != null:
|
||||
if Global.party[1][0] != null:
|
||||
Global.cpchar = 1
|
||||
elif (Global.live == 1 && (Input.is_key_pressed(KEY_V) && Input.is_key_pressed(KEY_DOWN)) ||(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER) && Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_DOWN))):
|
||||
if Global.debug:
|
||||
if Global.dparty[2] != null:
|
||||
if Global.dparty[2][0] != null:
|
||||
Global.dcpchar = 2
|
||||
else:
|
||||
if Global.party[2] != null:
|
||||
if Global.party[2][0] != null:
|
||||
Global.cpchar = 2
|
||||
elif (Global.live == 1 && (Input.is_key_pressed(KEY_V) && Input.is_key_pressed(KEY_LEFT)) ||(Input.is_joy_button_pressed(0,JOY_BUTTON_RIGHT_SHOULDER) && Input.is_joy_button_pressed(0,JOY_BUTTON_DPAD_LEFT))):
|
||||
if Global.debug:
|
||||
if Global.dparty[3] != null:
|
||||
if Global.dparty[3][0] != null:
|
||||
Global.dcpchar = 3
|
||||
else:
|
||||
if Global.party[3] != null:
|
||||
if Global.party[3][0] != null:
|
||||
Global.cpchar = 3
|
||||
if Global.bossready:
|
||||
Global.bossready = false
|
||||
|
|
|
@ -12,7 +12,7 @@ func _ready():
|
|||
pface = $Playerface
|
||||
if Global.cdialog[dindex][1]:
|
||||
cname.set_text(Global.pcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load(Global.pcfaces[Global.cdialog[dindex][2]])
|
||||
pface.texture = load(Global.pcfaces[Global.cdialog[dindex][2]][Global.cdialog[dindex][3]])
|
||||
else:
|
||||
cname.set_text(Global.npcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load(Global.npcfaces[Global.cdialog[dindex][2]])
|
||||
|
@ -31,7 +31,7 @@ func _input(event):
|
|||
if dindex < Global.cdialog.size():
|
||||
if Global.cdialog[dindex][1]:
|
||||
cname.set_text(Global.pcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load((Global.pcfaces[Global.cdialog[dindex][2]]))
|
||||
pface.texture = load((Global.pcfaces[Global.cdialog[dindex][2]][Global.cdialog[dindex][2]]))
|
||||
else:
|
||||
cname.set_text(Global.npcnames[Global.cdialog[dindex][2]])
|
||||
pface.texture = load((Global.npcfaces[Global.cdialog[dindex][2]]))
|
||||
|
@ -44,6 +44,6 @@ func _input(event):
|
|||
isboss = Global.places[Global.cplace[0]][Global.cplace[1]][Global.cplace[2]][2]
|
||||
if isboss:
|
||||
Global.bossready = true
|
||||
Global.live = 1
|
||||
Global.live = 1
|
||||
Global.cdialog = []
|
||||
press = false
|
||||
|
|
|
@ -62,9 +62,9 @@ func _input(event):
|
|||
func _charrefresh():
|
||||
if topleft.visible:
|
||||
if Global.debug:
|
||||
if Global.dparty[0] != null:
|
||||
cn1.set_text(Global.pcnames[Global.dparty[0]])
|
||||
cf1.texture = load(Global.hudfaces[Global.dparty[0]])
|
||||
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]])
|
||||
if Global.dcpchar == 0:
|
||||
focus1.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -73,9 +73,9 @@ func _charrefresh():
|
|||
cn1.set_text("")
|
||||
cf1.texture = null
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
if Global.dparty[1] != null:
|
||||
cn2.set_text(Global.pcnames[Global.dparty[1]])
|
||||
cf2.texture = load(Global.hudfaces[Global.dparty[1]])
|
||||
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]])
|
||||
if Global.dcpchar == 1:
|
||||
focus2.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -84,9 +84,9 @@ func _charrefresh():
|
|||
cn2.set_text("")
|
||||
cf2.texture = null
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
if Global.dparty[2] != null:
|
||||
cn3.set_text(Global.pcnames[Global.dparty[2]])
|
||||
cf3.texture = load(Global.hudfaces[Global.dparty[2]])
|
||||
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]])
|
||||
if Global.dcpchar == 2:
|
||||
focus3.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -95,9 +95,9 @@ func _charrefresh():
|
|||
cn3.set_text("")
|
||||
cf3.texture = null
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
if Global.dparty[3] != null:
|
||||
cn4.set_text(Global.pcnames[Global.dparty[3]])
|
||||
cf4.texture = load(Global.hudfaces[Global.dparty[3]])
|
||||
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]])
|
||||
if Global.dcpchar == 3:
|
||||
focus4.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -107,9 +107,9 @@ func _charrefresh():
|
|||
cf4.texture = null
|
||||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
if Global.party[0] != null:
|
||||
cn1.set_text(Global.pcnames[Global.party[0]])
|
||||
cf1.texture = load(Global.hudfaces[Global.party[0]])
|
||||
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]])
|
||||
if Global.dcpchar == 0:
|
||||
focus1.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -118,9 +118,9 @@ func _charrefresh():
|
|||
cn1.set_text("")
|
||||
cf1.texture = null
|
||||
focus1.set_color(Color(1, 1, 1, 1))
|
||||
if Global.party[1] != null:
|
||||
cn2.set_text(Global.pcnames[Global.party[1]])
|
||||
cf2.texture = load(Global.hudfaces[Global.party[1]])
|
||||
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]])
|
||||
if Global.dcpchar == 1:
|
||||
focus2.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -129,9 +129,9 @@ func _charrefresh():
|
|||
cn2.set_text("")
|
||||
cf2.texture = null
|
||||
focus2.set_color(Color(1, 1, 1, 1))
|
||||
if Global.party[2] != null:
|
||||
cn3.set_text(Global.pcnames[Global.party[0]])
|
||||
cf3.texture = load(Global.hudfaces[Global.party[0]])
|
||||
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]])
|
||||
if Global.dcpchar == 2:
|
||||
focus3.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -140,9 +140,9 @@ func _charrefresh():
|
|||
cn3.set_text("")
|
||||
cf3.texture = null
|
||||
focus3.set_color(Color(1, 1, 1, 1))
|
||||
if Global.party[3] != null:
|
||||
cn4.set_text(Global.pcnames[Global.party[3]])
|
||||
cf4.texture = load(Global.hudfaces[Global.party[3]])
|
||||
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]])
|
||||
if Global.dcpchar == 3:
|
||||
focus4.set_color(Color(0, 0, 1, 1))
|
||||
else:
|
||||
|
@ -153,9 +153,9 @@ func _charrefresh():
|
|||
focus4.set_color(Color(1, 1, 1, 1))
|
||||
else:
|
||||
if Global.debug:
|
||||
cnf.set_text(Global.pcnames[Global.dparty[Global.dcpchar]])
|
||||
cff.texture = load(Global.hudfaces[Global.dparty[Global.dcpchar]])
|
||||
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]])
|
||||
else:
|
||||
cnf.set_text(Global.pcnames[Global.party[Global.cpchar]])
|
||||
cff.texture = load(Global.hudfaces[Global.party[Global.cpchar]])
|
||||
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]])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue