You are not logged in.
Pages: 1
Has anyone else evel gone into the console, typed in K pressed tab (to complete the command) and pressed enter?
If they were to have made an Oni 2, maybe Griffen would have lived...
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
Griffin doesn't have to die in Oni. Neither by your hand nor in the final battle.
Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.
Offline
I know...what I was saying, is that if they had made Oni 2, the "canon" ending would have been Griffin living.
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
Why?
Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.
Offline
You're saying that because the default killed_griffin variable is 0, the canon ending is for Griffin to survive? I don't follow that logic.
Work in progress...
Offline
No! When you type it in, the console says
"We did not kill griffen"
Try it!
---
Wait a sec...I may have misinterpeted something here...
killed_griffen must be the variable referenced when you get to the last level that determines who you fight...
I had interpeted it as an easter egg...sorry...
Last edited by Gumby (09/01/07 23:09)
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
Lawlz. Yeah, I think it is. No worries.
Work in progress...
Offline
Normally, variables don't have witty little text snippets going along with them...
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
lol, indeed...
Offline
killed_griffen is not a variable. It's a function used to set whether we killed Griffin or not depending on what argument you give to that function.
If you enter killed_griffen true or killed_griffen 1 (or even killed_griffen 42), the internal boolean will be set to true (shown as bool: 1).
If you enter killed_griffen false or killed_griffen 0 (or just killed_griffen), the internal boolean will be set to false (shown as bool: 0).
In the first case the confirmation message will be we killed griffen. In the second case the confirmation message will be we did not kill griffen.
The reason it works as "false" without an argument is that BSL functions are often implemented with a default argument value of 0.
The actual boolean variable is in the part of RAM dumped into persist.dat (i.e., the information is saved between Oni sessions).
That variable is not directly accessible from scripts, though. If you want to know the value, you use bool did_kill_griffen(void).
Last edited by geyser (09/03/07 15:09)
Behold the power of that which is yet unborn! For the swirling images that flow forth from the Chrysalis are only a shadow of the sleeper's true power.
Offline
Pages: 1