You can use Control Active Leaf as basically a switch leaf command, but it certainly isn't limited to the leaf you're in. You can switch to any leaf with this command upon event trigger.
If you want to stay in the leaf, then don't use it for the event you're in. ^_^
More than one CAL per event, the 2nd and after get ignored. One leaf can only handle one CAL. No other events can be after a Control Active Leaf, no matter what it does, or they will be ignored.
One example I've used it for was in regards to NPCs talking. Here's a fresh one:
Woman NPC
Event Name NPC1
Trigger Examine 360 START CONDITION NONE
Leaf00
Standard Message (...)
Control Active Leaf (Target This Event Operation Move Forward One Leaf)
Leaf01
Standard Message (You tell Cledis, he's a no good homewrecker!)
Altar Counter Value = CLEDIS Set to 1
Leaf02
Standard Message (What do you mean I smell!???!!! Is that all he had to say? Well, I still love him...)
Control Active Leaf (Target This Event Operation Move Forward One Leaf)
Leaf 03
Standard Message (...)
__________________________
Dwarf NPC
Event Name NPC2
Trigger Examine 360 START CONDITION None
Leaf00
Standard Message (...)
Event Name NPC2a
Trigger Examine 360 START CONDITION Counter Value = 1 (CLEDIS)
Leaf00
Standard Message (Homewrecker my ass! The dame wreaks like a honeydipper's hands!)
Altar Counter Value CLEDIS Set to 0
Control Active Leaf (Target Other Event NPC1 Operation Move Forward One Leaf)
__________________________
Ok, how this works. The drawf has two different events on him. The woman has one.
Talk to the Dwarf NPC first, you'll get nothing but ellipses.
Talk to the woman first, you'll get some ellipses FOR THE FIRST CONVERSATION. Talk to her again, she'll bash the dwarf which raises a counter. Keep talking to her, she'll just repeat her bash.
Talk to the drawf again, he'll bash her, the conversation will end and he'll mention ellipses after that. (because of the counter change)
Talk to her after talking to him, she'll say her final piece, and end the conversation. Conversations hereafter will be ellipses.
__________________________
Not the best example in the world, but it shows multiple ways of how I've used the Control Active Leaf command.
If you want to stay in the leaf, then don't use it for the event you're in. ^_^
More than one CAL per event, the 2nd and after get ignored. One leaf can only handle one CAL. No other events can be after a Control Active Leaf, no matter what it does, or they will be ignored.
One example I've used it for was in regards to NPCs talking. Here's a fresh one:
Woman NPC
Event Name NPC1
Trigger Examine 360 START CONDITION NONE
Leaf00
Standard Message (...)
Control Active Leaf (Target This Event Operation Move Forward One Leaf)
Leaf01
Standard Message (You tell Cledis, he's a no good homewrecker!)
Altar Counter Value = CLEDIS Set to 1
Leaf02
Standard Message (What do you mean I smell!???!!! Is that all he had to say? Well, I still love him...)
Control Active Leaf (Target This Event Operation Move Forward One Leaf)
Leaf 03
Standard Message (...)
__________________________
Dwarf NPC
Event Name NPC2
Trigger Examine 360 START CONDITION None
Leaf00
Standard Message (...)
Event Name NPC2a
Trigger Examine 360 START CONDITION Counter Value = 1 (CLEDIS)
Leaf00
Standard Message (Homewrecker my ass! The dame wreaks like a honeydipper's hands!)
Altar Counter Value CLEDIS Set to 0
Control Active Leaf (Target Other Event NPC1 Operation Move Forward One Leaf)
__________________________
Ok, how this works. The drawf has two different events on him. The woman has one.
Talk to the Dwarf NPC first, you'll get nothing but ellipses.
Talk to the woman first, you'll get some ellipses FOR THE FIRST CONVERSATION. Talk to her again, she'll bash the dwarf which raises a counter. Keep talking to her, she'll just repeat her bash.
Talk to the drawf again, he'll bash her, the conversation will end and he'll mention ellipses after that. (because of the counter change)
Talk to her after talking to him, she'll say her final piece, and end the conversation. Conversations hereafter will be ellipses.
__________________________
Not the best example in the world, but it shows multiple ways of how I've used the Control Active Leaf command.