Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 05/13/10 22:05

FNHA
Member
Registered: 05/13/10

Game over script?

I'm trying to adapt a simple respawn script for myself so that I won't have to restart from a previous save point when I die. I have just come back to Oni after many years, and forgot most of what I learnt about scripting before. How do I stop the game from showing the game over screen after dying like in the Titan mod? Is there a part of the original script that controls this?

Offline

#2 05/14/10 10:05

s10k
Member
Registered: 01/14/07
Website

Re: Game over script?

delete the function you_lose(string ai_name); or replace the code inside, especially "lose" call.

This function is called automatically when the player dies, by the game engine.

Offline

#3 05/14/10 12:05

Mukade
Member
From: Ottawa, Ontario - Canada
Registered: 05/29/07

Re: Game over script?

All thatll do is you just lie dead.... yeah... you also have to add something like

func respawn
{
loop
chr_wait_health 0 0
chr_set_health 0 100 (or whatever your max health is)
end loop
}

and then somewhere at the beginning of the script put

fork respawn


"He looks mean enough to tear my arm off and beat me to death with it. In fact, he looks mean enough to tear his OWN arm off and beat me to death with it."

Offline

#4 05/14/10 13:05

FNHA
Member
Registered: 05/13/10

Re: Game over script?

yeah thanks finally got it working.
time to see if i can relearn scripting in oni, or maybe modding. I'm impressed with the progress the community has made since I last played  big_smile Love the AE

Offline

Board footer

Powered by FluxBB