For the dialog script:
Code: Select all
show Vincent body_armor head_smile eyes_angry with dissolve
"He lunges at you and unleashes a barrage of attacks!"
$ attacker = Vincent # layered image to display during combat. I don't want to change his armor, head,
# or eyes, just bring the same image to the other script.
# I also tried this variation but it didn't work.
# $ attacker = Vincent body_armor head_smile eyes_angry
call beginCombat # start combat script.
Code: Select all
default attacker = None
label beginCombat:
show attacker at shakeChar, center # show the character that was determined in the dialogue script,
# make it look like he moves with each attack, standing in the center.
All I'm trying to do is make it so the already shown layered image character is picked up by the combat script to allow it to move in order to look like he is lunging forward to attack. The reason I don't simply make the "show" line in the combat script another copy of the layered image with body, head, and eyes, is because I don't want to make a combat script for every single encounter. I want combat to happen with whoever happens to be on screen during the dialogue.