I did understand what you said earlier and therefor showed how local variables are used. The "check local variables" is the last line in my example (System | lotVar = 1). As soon as the local variable is created it can be used for comparison.
But it is crucial to understand the "philosophy" (sorry, I lack the right words here) of variables.
There are three different kinds of variables in C2. Global, local and instance. They differ mainly in their scope.
A global variable is valid all over the layout, visible and usable for every event and object.
An instance variable can be accessed from anywhere in the event sheet, but is not unique. It shares its name (and access rule) with all other instances, and lives with an object.
A local variable is only generable within subevents and only lives for the time the subevent is executed. So to access it you need to create a subevent in the same subevent level, where the local variable was created.
Start of layout
Local variable
Local variable = some value -> do something
Trying something like this:
Start of layout
Local variable
Enemy died
local variable = some value -> do something
is impossible. The local variable created in Start of layout doesn't exist anymore when "Enemy died" happens. Therefor you can't find any option to compare the local variable of "Start of layout" in the "enemy died" event.