BSL talk:Functions: Difference between revisions

m
no edit summary
No edit summary
mNo edit summary
Line 94: Line 94:
:<tt>chr_teleport [ai_name:string | script_id:int] flag_id:int - teleports a character to a flag - chr_teleport 0 105</tt>
:<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)
: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)
:btw 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)
::btw 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**.
:::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> 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)
:::<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)
::::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)
489

edits