I have been to Troops and looked at Conditions.
How do I make variables like BatKilled = false
EnemyInfo1 = ????
Bat Picture X to 58
Bat Picture Y to 58
but then if Bat is Killed then EnemyInfo1 is equal to (with lines of text if possible)
Bat is a powerful enemy
and Bat hate Sprite soda
and then BatKilled is equal to true
and also when a character goes to select EnemyInfo1 it shows Bat instead of ????
Enemies only exist on the battlescreen, and the event commands reflect that.
outside a troop event the editor does not know which type of enemy will get index 1, index 2 and so on, that is why the placeholder ??? is there. If you use the enemy commands in a common event and call that common event inside a battle, then the indices will correspondent to the enemies #1 to #8 of the troop used by battle.
as for the switches and variables - you go from the other end, and use condition HP>0 (the bat is killed when HP=0
and your question of labels:
alone labels have no functions at all. if you create a label it is like an adress, allowing a different command to jump to that adress. That is used in logic sequences, and if you don't know how to program logic sequences then don't bother with labels.
May i ask a Question in between about this?
If Enemy ID 1 is killed, does 2 and 3 stay id2 and id3, or does id2 become id1?
Edit:
Code is read Line by Line, Command after Command, every Frame. (60 Frames = 1 Second)
If you create a Label somewhere, the Code interpretor can Jump to that Point and continue reading from there, if he gets told to by the Event Command: Jump to Label.
A Label example i hope it is self explanatory:
Label: bex
Textbox: Hello Adventurer
Chow Choices: 1. Ask about News ; 2. Trade... ; 3. Mission... ; 4. Good bey
If 1 do stuff than Jump to Label bex
If 2 do stuff
If 3 do stuff than Jump to Label bex
If 4 do stuff
Yes, you are right, i ment Index. Thanks for answering.