19,588
edits
(duh ^_^) |
m (+cat) |
||
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==table design?== | |||
:geyser, is this about what you wanted? | :geyser, is this about what you wanted? | ||
:I have to do it over again, as I screwed a few things up... | :I have to do it over again, as I screwed a few things up... | ||
Line 90: | Line 92: | ||
: Where is chr_main_class and chr_set_class? Don't they belong on the BSL function page? [[User:EdT|EdT]] 22:14, 24 October 2008 (CEST) | : Where is chr_main_class and chr_set_class? Don't they belong on the BSL function page? [[User:EdT|EdT]] 22:14, 24 October 2008 (CEST) | ||
::This is a short table Gumby put together. It's nowhere near complete. The most current stuff is [[Sandbox|HERE]] --[[User:Geyser|geyser]] 00:47, 25 October 2008 (CEST) | ::This is a short table Gumby put together. It's nowhere near complete. The most current stuff is [[Sandbox|HERE]] --[[User:Geyser|geyser]] 00:47, 25 October 2008 (CEST) | ||
==chr_teleport -1== | |||
:<tt>chr_teleport [ai_name:string | script_id:int] flag_id:int - teleports a character to a flag - chr_teleport 0 105</tt> | |||
:Tried today it with -1, <tt>chr_teleport -1 400</tt>, which seems to give random results, but always retrieves a spawned character, I thought it would always retrieve the first character alive after Konoko but seems it isn't always the case. Have anyone had also a look a this? If it was a underflow probably it shouldn't retrieve characters most of the time. --[[User:Script 10k|Script 10k]] 12:55, 8 August 2012 (CEST) | |||
==chr_index vs script_id== | |||
What's the difference between <tt>chr_index</tt> and <tt>script_id?</tt> I think it's that that is messing the things.--[[User:Script 10k|Script 10k]] 16:43, 8 August 2012 (CEST) | |||
:If there's a difference, my guess would be that chr_index is the ONCC order* and script_id the spawn order**. | |||
:<nowiki>*</nowiki> oncc order: installed oncc files, shapeshift to see the numbers. | |||
:<nowiki>**</nowiki> spawn order: first spawned character is 0, second spawned character is 1, and so on. --[[User:Paradox-01|paradox-01]] 17:24, 8 August 2012 (CEST) | |||
I've been playing with <tt>chr_focus</tt> lately, I am sure that that char_index is the spawn order. Haven't checked the ONCC order although. --[[User:Script 10k|Script 10k]] 17:31, 8 August 2012 (CEST) | |||
:Uhm, I confused chr_index with class_index, sorry. (eg ''chr_set_class chr_index:int [class_name:string | class_index:int]'') | |||
:However I checked the ssg's list and it looks like that chr_index is used only be PC retail. *shrugs* --[[User:Paradox-01|paradox-01]] 18:13, 8 August 2012 (CEST) | |||
:EdT can use it on Mac, not sure what version he have? Which one is EdT? --[[User:Script 10k|Script 10k]] 20:59, 9 August 2012 (CEST) | |||
==chr_kill_all_ai== | |||
<tt>chr_kill_all_ai (null) - kills all the AI</tt>, I couldn't get it work. F6 in developer mode works although. | |||
But I've found a good alternative: <tt>ai2_kill();</tt>, kill them all too. By curiosity have anybody got <tt>chr_kill_all_ai</tt> work? --[[User:Script 10k|Script 10k]] 21:00, 9 August 2012 (CEST) | |||
==chr_vocalize== | |||
"chr_vocalize [ai_name:string | script_id:int] type:string - makes a character utter a vocalization (vocalize type strings: override, yell, pain, call, say, chatter, idle)" | |||
Couldn't get this to work with any other character than Konoko (player). If someone can "vocalize" bots please let me know. [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 21:59, 20 August 2016 (CEST) | |||
: Correct me if I'm wrong: AIs spawned by CHAR collection come without an script_id. You would need to add characters via AISA and set <ScriptId>. In case of chr_vocalize, an non-existing script_id is probably replace by 0 and so redirected to player. With CHAR workflow you should use ai_name instead. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 11:40, 21 August 2016 (CEST) | |||
:: Works like a charm [[User:Paradox-01|paradox-01]]! I've added the character to AISA and it worked as supposed. Thanks! :) | |||
::One thing, in my game the strings available for vocalize aren't the same as described above. They are: "taunt, alert, startle, checkbody, pursue, cower, superpunch, superkick, super3 and super4". Can you check which ones are present in your game? | |||
:::Interesting. You are correct about those being the strings for chr_vocalize. The strings given on BSL:Functions, such as "chatter", are associated with chr_talk, but it seems that they have no effect. So the Functions page is in error. --[[User:Iritscen|Iritscen]] ([[User talk:Iritscen|talk]]) 17:42, 21 August 2016 (CEST) | |||
::"They are: "taunt, alert, startle, checkbody, pursue, cower, superpunch, superkick, super3 and super4". Can you check which ones are present in your game?" - Yep looks the same in my exe. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 20:17, 21 August 2016 (CEST) | |||
==chr_holdkey== | |||
"chr_holdkey [ai_name:string | script_id:int] key_name:string num_frames:int - forces a character to hold a key down for some frames" | |||
Couldn't get this one to work too. I tried chr_holdkey char_name "h" but seems character didn't hold the key either the player or the ais. "h" key in my oni is thr keyboard punch key. | |||
Please let me know if any of you got this to work. [[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 23:52, 25 August 2016 (CEST) | |||
: SSG (no example in his command list given), geyser, loser and gumby couldn't make that command work. So forget about it ;) | |||
: http://oni.bungie.org/forum/viewtopic.php?id=130&p=4 | |||
: [[User_talk:Iritscen/Archive2#AI_self-healing]] | |||
: Use '''[[XML:FILM#.3CKeys.3E|FILM]]''' file instead:<br>'''chr_playback_block([ai_name|script_id], film_name, fromhere)''' | |||
: fromhere - ignore the position, rotation is still used<br>interp - interpolates between current character position and film position (awkward when height is not the same) | |||
: You could probably create a level 0 package made of such keys and then use them whenever needed. | |||
: Caution with editing frames, game crashes when done wrong. --[[User:Paradox-01|paradox-01]] ([[User talk:Paradox-01|talk]]) 08:37, 26 August 2016 (CEST) | |||
:: Thanks [[User:Paradox-01|paradox-01]]. I am going to try that.[[User:Script 10k|Script 10k]] ([[User talk:Script 10k|talk]]) 20:05, 28 August 2016 (CEST) | |||
[[Category:BSL docs]] |