Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 08/31/09 18:08

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

Shapeshifting Order

How would i change the shapeshifting order? I want to go throughthe game as Mukade and i gotta shapeshift every time i die orstart a level. He used to be atthe very end so i could shift+f8 to go backwards and there he is, but with the download of AE and additional characters it takes a little while, and is inconvinient when i start right near enemies.

I'm not surewhat to edit to change that, any suggestions?

*ive also thought about editing each level file to cahgne my character to him so i wouldnt even haveto shift, but that seems like more work  wink

Last edited by Mukade (08/31/09 20:08)


"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

#2 09/01/09 00:09

TOCS
Member
From: Denmark
Registered: 04/04/07

Re: Shapeshifting Order

This isen't actualy my area, but I think you'll need to change the whole class order.
I can't remember which files you're going to stick around with.
When you're in DEV-mode, you can see the class numbers, you'll have to change them in some way.

Offline

#3 09/01/09 06:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

why dont you try "chr_set_class 0 super_ninja_1" in DEV-console? it's faster, i think. wink

or if you want it even faster, create GameDataFolder\IGMD\global\global.bsl and write in it the following:

func iwbm
{
    chr_set_class 0 super_ninja_1
}

and in-game, call DEV-console an write "iwbm" (IWannaBeMukade)

Last edited by demos_kratos (09/01/09 06:09)


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#4 09/01/09 07:09

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Shapeshifting Order

Heh, nice solution.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#5 09/01/09 09:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

it's very nice solution smile
I have this in my global.bsl

func pwrup
{
    dprint start_wait
    chr_wait_health 0 50
    chr_pin_character = 1
    chr_unstoppable 0 1
    chr_animate 0 KONOKOendpowerup
    chr_set_health 0 100000
    timer_start 120 pwrup_end
    sleep 200
    chr_pin_character = 0
}

func pwrup_end
{
    dprint konchilos_pocak
    chr_set_health 0 200
    chr_unstoppable 0 0
    fork pwrup
}
    

func sup_kic
{
    chr_wait_animation 0 KONCOMkick_heavy
    chr_animate 0 KONCOMsuper_kick
}

Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#6 09/01/09 10:09

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Shapeshifting Order

Nice "second wind" for Konoko, I've thought about scripting something like that at times myself (since you could say that the Chrysalis is helping preserve her life by powering her up as things get serious).


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#7 09/01/09 15:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

maybe I should add counter for this. She isn't a robot after all.


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#8 09/02/09 13:09

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

Re: Shapeshifting Order

thank so much for the idea demos! i did exactly what u did and it works great big_smile
cept i simply put it in each levels main level logic... my IGMD doesnt have a global folder >_>
I also like your idea of "second wind" as irit put it. though i have yet to try it out tongue

Something that would make it even faster... how wouldi  bind it to a key? if its possible, cause in instances like last savepoint ofgame, i dont relly have time to change to dev modeand type t in while muro takes some freebies on me....

Last edited by Mukade (09/02/09 13:09)


"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

#9 09/02/09 14:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

my IGMD doesnt have a global folder >_>

then create it.

EDIT: Added a counter for "second wind". you can set your own number of "chances"

### globals ###

var int chances = 3;

func pwrup
{
    chances = chances - 1
    if (chances ne 0)
    {
        dprint start_wait
        chr_wait_health 0 50
        chr_pin_character = 1
        chr_unstoppable 0 1
        chr_animate 0 KONOKOendpowerup
        chr_set_health 0 100000
        timer_start 120 pwrup_end
        sleep 200
        chr_pin_character = 0
    }
}

func pwrup_end
{
    dprint konchilos_pocak
    chr_set_health 0 200
    chr_unstoppable 0 0
    fork pwrup
}

P. S. I've been using this for a year already.

Last edited by demos_kratos (09/02/09 14:09)


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#10 09/02/09 17:09

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

Re: Shapeshifting Order

so wait... you create a folder called global, and you put any programming you want for it and it just works as a unversal function for any level??
does it have to be called global or...


"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

#11 09/03/09 09:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

so wait... you create a folder called global, and you put any programming you want for it and it just works as a unversal function for any level??

you didn't know it?  roll
it has to be called 'global'. Engine will automatically include all bsl files that are located in 'global' dir.

Last edited by demos_kratos (09/03/09 09:09)


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#12 09/03/09 09:09

Koshirro
Member
Registered: 08/19/09

Re: Shapeshifting Order

Doesn't work on Mac version thought...

Offline

#13 09/03/09 10:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

of course it doesn't. Macs have no support of global scripts, unfortunately. so you can do all this stuff just like Mukade did.


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#14 09/03/09 10:09

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Shapeshifting Order

demos_kratos wrote:

of course it doesn't.

You make it sound like it's obvious that the Mac wouldn't support that, but it's more surprising than obvious, since the Mac engine is a direct port of the Windows code (the folder's even present in the BBB version of Mac Oni).


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#15 09/03/09 10:09

dream996
Member
Registered: 03/15/09

Re: Shapeshifting Order

demos_kratos...WHO IS THAT in the icon ?


PunBB bbcode test

Offline

#16 09/03/09 11:09

demos_kratos
Member
From: Russia, Volzhskiy
Registered: 08/13/08

Re: Shapeshifting Order

2Iritscen
Didn't think that it will sound like that. It was 'just read Mac's engine limitations wiki page' state.

2dream996
It's me. Awfully drawed me. tongue


Jente, du er deilig, du er lekker, ihvertfall nå når jeg drikker.
Baby, du har det som trengs, hva er sannsynligheten for at vi to hopper til sengs?
Kan du si meg det? Jeg er ikke så stø i sannsynlighetsregning.

Offline

#17 09/03/09 15:09

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

Re: Shapeshifting Order

stay away from me  hmm


"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

#18 09/03/09 18:09

myplea1
Member
From: Ottawa,Canada
Registered: 05/25/09

Re: Shapeshifting Order

Lols, aniway i was thinking demos that maybe you or maybe anione else could give some cool commands for the global.bsl file.


Awol

Offline

#19 09/04/09 20:09

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

Re: Shapeshifting Order

if u get enough knowledge, you can think of things u'd like to try, ill help you out with the actual realization of these... keep in mind im not vry good, but itll help me improve smile


"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

#20 09/08/09 21:09

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

Re: Shapeshifting Order

how would i make the function so that it's always active, just waiting for an animation or sumthin. I have sumthin like:

func mukade {
chr_wait_animation 0 KONCOMcomb_p
chr_set_class super_ninja_1
}

but i gotta actually type in mukade inthe console, how would i make it so that all i gotta do is the punch?


"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

#21 09/08/09 21:09

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Shapeshifting Order

Oh, heh, you need to start the function running from somewhere.  Go into a level's main .bsl file and add "fork mukade" somewhere before the last line of code in the "main" function.  I believe you have to do this for each level you want to enable the shortcut for.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#22 09/09/09 14:09

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

Re: Shapeshifting Order

kay, yeah that makes sense

yup it works smile i also discovered that putting it at the end of thefunction in main causes it to play the cutscene tongue

Last edited by Mukade (09/09/09 14:09)


"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

Board footer

Powered by FluxBB