What do labels do and how do I make a ???? turn into Bat information?

Fira

Veteran
Veteran
Joined
Dec 6, 2012
Messages
104
Reaction score
13
Primarily Uses
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 ????
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,609
Reaction score
10,333
First Language
German
Primarily Uses
RMMV
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.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,851
Reaction score
684
First Language
German
Primarily Uses
RMMZ
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
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,609
Reaction score
10,333
First Language
German
Primarily Uses
RMMV
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?
your question makes no sense, because you messed up ID and index.
The index is the position of the enemy in the troop, the ID identifies which enemy is in the troop.
Most troops have multiple enemies with the same ID, for example two goblins means two times ID=1, one goblin with index 1 and one goblin with index 2.

and no, the indizes don't change on any death.
 

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,851
Reaction score
684
First Language
German
Primarily Uses
RMMZ
Yes, you are right, i ment Index. Thanks for answering.
 

Latest Threads

Latest Posts

Latest Profile Posts

Now that I have linklists on large trees and cars, is there any theme that would interest you?
Debugging multiplayer issues... I'm having fun, right?
yay_streaming.jpg

For just starting streaming on the 10th... Definitely not the worst. :LZScheeze:

Granted I need 333.34 hours a month on average to achieve money. So I don't really expect that, but it sure has helped my game dev go much faster.
Proud on how this map turned out.

FnmhDLIXgAAOvIC
I just finally fixed a huge problem that wouldn’t let my game load and would crash it.. I thought that I was gonna have to trash the project and start over lol

Forum statistics

Threads
128,327
Messages
1,193,634
Members
168,809
Latest member
AngelChan
Top