Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 05/17/08 21:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Quick Scripting Question

Is there a command that can teleport a character relative to the main character's spot? (Besides chr_teleport)


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#2 05/18/08 00:05

Your_Mom
Member
From: Canada
Registered: 01/31/07
Website

Re: Quick Scripting Question

chr_location?


droid803sig.jpg

Offline

#3 05/18/08 01:05

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

Re: Quick Scripting Question

Noo...I don't believe so. To do that you would need to get the character's location, and then modify the individual parts (x,y,z,r) to reflect the distance from the character, and then pass on those numbers to the chr_location function.

Given the lack of functions to edit strings, and convert strings to and from other data types, it is impossible. sad


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

#4 05/18/08 08:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Quick Scripting Question

soooooo in english,,,, it is very hard???

EDIT:
when I use ai2_chump, a syndicate striker spawns at my location and a grid forms... any idea how I can change a syndicate striker to another character?

Last edited by Barneyhater (05/18/08 08:05)


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#5 05/18/08 08:05

s10k
Member
Registered: 01/14/07
Website

Re: Quick Scripting Question

Barneyhater wrote:

EDIT:
when I use ai2_chump, a syndicate striker spawns at my location and a grid forms... any idea how I can change a syndicate striker to another character?

chr_set_class

Offline

#6 05/18/08 09:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Quick Scripting Question

dang it only works on pc =/ any other commands?


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#7 05/18/08 13:05

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

Re: Quick Scripting Question

Use

ai2_spawn classname

Insert the name of the dude you want to spawn there. Unfortunately, I don't have the list of characters bookmarked. Does anyone have a link?


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

#8 05/18/08 13:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Quick Scripting Question

I have a link its ok thanks.

EDIT:
I have another question, I checked the wiki for moves and it isnt there, does anyone know the names for the taunt move? (is it like KONOKOtaunt) or something?

Last edited by Barneyhater (05/18/08 21:05)


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#9 05/19/08 09:05

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

Re: Quick Scripting Question

Wow, that's a good question.  The taunt animation is referenced in the wiki in places like this: http://wiki.oni2.net/OBD:BINA/OBJC/MELE/MoveList

...but I can't read that table at all.  No clue what it means.


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

Offline

#10 05/19/08 11:05

Loser
Member
From: somewhere in da Czech Republic
Registered: 01/14/07

Re: Quick Scripting Question

That table contains animation ID and action types for MELE files. Barneyhater, if you want to execute
chr_animate *name* *some_animation*, then the best way how to check name of animation is to execute chr_debug_characters=1 (it should bring out a table in upper-left corner with some info about character). Then turn on carousel cheat, shapeshift to a character who has required animation, execute animation and write down name of that anim from developer table. Beware, chr_animate it is case-sensitive (correctly type big/small letters)!

I hope it will help you.
                                                                                                                        Loser

P.S.: Wednesday 21st...at 13³°...the long awaited battle will begin. Wish me good luck, as my work here with this wonderful community depend on results of it.

P.S.II: And if I pass, I have some ideas in my head which are crying to be fulfilled. ^_^

P.S.III.: And sorry for this flame once again-just write and I will delete it.

Last edited by Loser (05/19/08 12:05)


"I am just a mere reflection of what I would be."

Offline

#11 05/19/08 12:05

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

Re: Quick Scripting Question

Awesome, you made a poster for it, like it's a movie. :-)  You can do it, Loser!  Ganbatte!


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

Offline

#12 05/19/08 16:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Quick Scripting Question

you mean exams? what grade r u in? and good luck!!!

EDIT: I tried putting that code into developer mode and it doesn't work. Mabye its only for pc? (I have a mac)

Last edited by Barneyhater (05/19/08 16:05)


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

#13 05/20/08 09:05

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

Re: Quick Scripting Question

Yeah, chr_debug_characters doesn't work on a Mac.  Uh, Ed, any ideas?  I know you hacked the Mac app to show some debug messages, but that doesn't work for showing specific moves being executed, right?


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

Offline

#14 05/21/08 10:05

EdT
Moderator
From: Los Angeles, CA
Registered: 01/13/07
Website

Re: Quick Scripting Question

The only thing close is in Dev Mode: Cntl+Shift+b    Shows current opponent's logic

Offline

#15 05/21/08 10:05

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

Re: Quick Scripting Question

And that shows the name of the animation being used?


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

Offline

#16 05/21/08 14:05

Barneyhater
Member
From: New York City, NY, USA
Registered: 04/13/08
Website

Re: Quick Scripting Question

No I dont think so. It only shows what the opponent is going to do next i think


"It is not hatred but indifference that will destroy us." -Unknown
"One death is a tragedy. The death of a million is a statistic" -Joseph Stalin

Offline

Board footer

Powered by FluxBB