Oni Central Forum

A forum for the Oni community

You are not logged in.

#101 07/31/08 07:07

ItemfinderDeluxe
Member
From: Canberra, Australia
Registered: 11/12/07

Re: Konoko vs The World - a fully customizable fight script!

The code you have there does spawn Mutant Muro. Note that in compound there are two Mutant Muro characters - one for the cutscene, and one for gameplay. However, both have combat profiles and such. That's why in OTA's Compound level there are 2 Mutant Muro's on the Syndicate team. However, this script spawns characters by their name. A bit on that later though.

chr_set_class is PC Retail only. No PC Retail = don't bother. If you do have it, chr_set_class allows you to shapeshift any character into any OTHER character which appears within the level. So for example, in Compound in normal Oni, you could code yourself to shapeshiftinto any caracter who appears on the level. Because we have Edition to work with, it is possible to shapeshift into every character on every stage. As an example, if you wanted to autmatically start the compound level as Muro for instance, you would input in the compound_main script

chr_set_class 0 muro_generic (chr_set_class is the executable code, 0 refers to the spawning ID of the character [Player Konoko is always 0], and muro_generic refers to the character class [the model] of the character who appears on the level. Note that even though you can have, say, 20 ninjas in one leel, not all of them have the same character class)

Or, if you wanted to turn into a tanker (say a red one), you would enter

chr_set_class 0 tanker_hard_1

The chr_set_class function can accept either a spawning id or character name for it to work. So in KvW, you would enter:

chr_set_class muro_dummy tanker_hard_1

This SHOULD turn a Mutant Muro into a Tanker. It would fit best if inserted just after the spawning function. Hopefully this helps you out (and if I've made any mistakes, can someone correct me? It's awfully late where I am right now and I don'trun on caffeine smile ).


TCTF SWAT: Striker, you're under arrest.
Striker: H4h, y0u c4n'7 570p m3!!!
TCTF SWAT: Damn it, learn to spell!!!
CURRENT PROJECT - 'Nemesis' V1.0 Released

Offline

#102 07/31/08 11:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Konoko vs The World - a fully customizable fight script!

Yeah, this project is on pause until I get my own computer. I was in the middle of making a .oni file that added in 10 of every character...but I don't have the time now.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#103 07/31/08 18:07

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Konoko vs The World - a fully customizable fight script!

btw, my source tells me that chr_set_class doesn't work with character names...


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#104 08/02/08 08:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

@Gumby: Hope you'll have your free time someday. I think it would have more challenge if we can fight with Barabas, Mukade, or even the new Brutal Konoko in your script smile.


The Boy Who Knew Too Much tongue

Offline

#105 08/02/08 08:08

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Konoko vs The World - a fully customizable fight script!

Ok, we were all a bit wrong.

chr_set_class chr_index:int [class_name:string | class_index:int]

It means that a character can only be selected by his/her spawning ID, like IfD said. The second part can be either the name or the ID.
Thus "chr_set_class muro_dummy tanker_hard_1" will not work.

Offline

#106 08/02/08 11:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

So how can I make it work?

Let see, the function chr_set_class 0 tanker_hard_1 works fine for me. Konoko turned into the red tanker.

So I went to the KvW script (edition version), spawned Muro (Boss). His name was 'Muro' and I typed:
   chr_set_class Muro tanker_hard_1, and it said the function was wrong.

Looks like using the function 'chr_set_class' isn't easy as I thought.

Last edited by love_Oni (08/02/08 11:08)


The Boy Who Knew Too Much tongue

Offline

#107 08/02/08 11:08

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Konoko vs The World - a fully customizable fight script!

Someone is missing the "not"...
Try either "chr_set_class 1 tanker_hard_1" or "chr_set_class 1 ID"). I don't know the ID for your red tanker... Find out by shapeshifting in dev mode. smile

Offline

#108 08/02/08 20:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

Ah, it works now! Thank you smile!

(I wonder why the numbers 1, 2... can make the function work)


The Boy Who Knew Too Much tongue

Offline

#109 12/20/08 17:12

MysTryUssX
Member
Registered: 12/20/08

Re: Konoko vs The World - a fully customizable fight script!

hi,
ive downloaded the files, but when i put them in the compound folder in igmd nothing happens. when i load a savegame from compound level i just play the level. no menu nothing. Can anyone pls help?  i really really would like to play this mod  big_smile:D:D

Offline

#110 12/21/08 05:12

Gumby
Member
From: Seattle, WA, USA
Registered: 08/30/07

Re: Konoko vs The World - a fully customizable fight script!

Please remove the other BSL files in your compound folder.


Iritscen: roll
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours

Offline

#111 12/21/08 07:12

MysTryUssX
Member
Registered: 12/20/08

Re: Konoko vs The World - a fully customizable fight script!

alright i did and it works! thanks!!
But i have another qeustion, is it possible to add tctf troopers to the field? And is it right that i can only spawn 2 swat's?
and then the last one, after i placed al the units i want how do i start the game?

Offline

#112 01/12/09 21:01

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

To add more spawnable characters on the field, you must modify something in the .dat file. This is a complex work so I guess you should ask someone else to do this, sorry sad.

And to start the game, run backward and press "kick".


The Boy Who Knew Too Much tongue

Offline

#113 08/19/09 09:08

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

Re: Konoko vs The World - a fully customizable fight script!

I got a very cool scene in this where i saw motoko own muro badly looked pretty cool. i just kinda watch frokm up high.


Awol

Offline

#114 08/20/09 05:08

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Konoko vs The World - a fully customizable fight script!

Note: When I spawn tanker I get mutant muro. :]


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#115 08/20/09 09:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

Of course,  smile there aren't any Tankers that appeared in level 14.


The Boy Who Knew Too Much tongue

Offline

#116 08/20/09 10:08

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Konoko vs The World - a fully customizable fight script!

Can't we add them :3 ?


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#117 08/20/09 11:08

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

Re: Konoko vs The World - a fully customizable fight script!

ya since mutant muro is not a fun thing t o kill, though it does really whip your dodging skills into shape.


Awol

Offline

#118 08/20/09 11:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

Yes, you can.

But sorry I feel very sleepy now and my hands can't let me write anymore. So, why don't you make a search on this forum or on the wiki about what you are trying to do such as "adding spawnable characters" or something like that. If you still got any troubles then I'm sure I could lend you a hand 'till my next mornin'.  smile *yawn*


The Boy Who Knew Too Much tongue

Offline

#119 08/20/09 12:08

Ire Yosuke
Member
Registered: 05/23/09
Website

Re: Konoko vs The World - a fully customizable fight script!

Nighty.


"There are two things that cannot be ignored in life. One is a cannon, the other, a cannon ball." - Commander Patrick "Bombard" Bomba

Offline

#120 08/21/09 22:08

love_Oni
Member
From: Da Nang, Vietnam
Registered: 05/10/08

Re: Konoko vs The World - a fully customizable fight script!

@Ire: Read this thread first. Tell me if you do not understand anything, then I'll show you the exactly way to add a character.


The Boy Who Knew Too Much tongue

Offline

#121 05/23/11 16:05

xxsniperx
Member
Registered: 05/06/11

Re: Konoko vs The World - a fully customizable fight script!

how do I use this script?

Offline

Board footer

Powered by FluxBB