You are not logged in.
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 ).
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
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:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
btw, my source tells me that chr_set_class doesn't work with character names...
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
@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 .
The Boy Who Knew Too Much
Offline
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
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
Offline
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.
Offline
Ah, it works now! Thank you !
(I wonder why the numbers 1, 2... can make the function work)
The Boy Who Knew Too Much
Offline
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 :D:D
Offline
Please remove the other BSL files in your compound folder.
Iritscen:
Iritscen: it's amazing this program even works
Gumby: i know
Iritscen: and that statement applies to my code, not just yours
Offline
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
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 .
And to start the game, run backward and press "kick".
The Boy Who Knew Too Much
Offline
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
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
Of course, there aren't any Tankers that appeared in level 14.
The Boy Who Knew Too Much
Offline
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
ya since mutant muro is not a fun thing t o kill, though it does really whip your dodging skills into shape.
Awol
Offline
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'. *yawn*
The Boy Who Knew Too Much
Offline
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
@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
Offline
how do I use this script?
Offline