Last time examine one thing as a chain of special levels. I want get the next:
lev1
|
lev2 - special - special - special ...
|
lev3
...
all my attempts use a level.OnExit fails. OnExit - when player leave current level. No "OnExitCheck" hook here.
Well, as a result, I create global variable for deep-meter, and use the same special level. Like next:
at episode creation:
player.episode[1].special = "test1"
at level creation:
...
Create = function ()
level.name="test A"..i_1
level.danger_level=level.danger_level+1
generator:reset()
... (generate level as I want)
if i_1==iLast then
generator:generate_stairs() --if last in chain, only standart exit to continue main quest
else
generator:generate_special_stairs() --else only special which lead to this level again and again
end
...
end,
OnExit = function()
...
i_1=i_1+1
end,
}
another variant is using something like portal at Phobos Anomaly, but I do not want that (no save possibility). So, I can do a chain of some perpendicular special levels... Unfortunately all have common kills count and the same history string. And result at history:
He came at test level.
He came at test level.
He came at test level.
...
so,
1. How I can change level "entry" history string? Not once, but dinamically?
2. Another way of do something like that with any chain lenght and save possibility?