ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Spwan script

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  22:56:40  14 March 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
Try removing the =dist_to_actor_ge(100). If it still doesn't work, then I don't know what is wrong. I don't know how the spawner in SoC works, since I've never done that level of modding.
  23:05:24  14 March 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
 

Message edited by:
Lijenstina
03/14/2012 23:06:12
Messages: 1902

on_info = {-mar_csky_stalker_1) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info2 = {-mar_csky_stalker_2) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info3 = {-mar_csky_stalker_3) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1

mar_csky_stalker_1)
mar_csky_stalker_2)
mar_csky_stalker_3)



Of course it doesn't work it expects the infoportions with brackets. These brackets are wrong. Did you add the infoportions to the info_.xml s ?
Also please do not expect from us to finish your mod.
  08:17:29  15 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
Messages: 240
i have add this info portion in the escape_info.xml

but it don´t works why?
  17:38:16  15 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
i have add this info portion in the escape_info.xml

but it don´t works why?
---END QUOTATION---



You need a condition in 'xr_conditions.script' and use the 'info_portions.xml'.

But, if you have some error in the mod... this might not help you at all.
  17:55:17  15 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---


[sr_idle@spawn_csky_stalker_1]
on_game_timer = 2 | sr_idle@check %=+mar_csky_stalker_1 =respawner_spawn(mar_clear_sky_respawn_1)%

[sr_idle@spawn_csky_stalker_2]
on_game_timer = 2 | sr_idle@check %=+mar_csky_stalker_2 =respawner_spawn(mar_clear_sky_respawn_2)%

[sr_idle@spawn_csky_stalker_3]
on_game_timer = 2 | sr_idle@check %=+mar_csky_stalker_3 =respawner_spawn(mar_clear_sky_respawn_3)%


---END QUOTATION---



Olaf1, i'm surprised your game didn't crash, cause you have 3 errors:


---QUOTATION---


on_game_timer = 2 | sr_idle@check %=+mar_csky_stalker_1 =respawner_spawn(mar_clear_sky_respawn_1)%



---END QUOTATION---



The codes ''=+mar_csky_stalker_1" can NOT be used. The game doesn't know if it is a function ( , or a info_portion(+)

You are using both, '=+mar_csky_stalker_1', see what i mean?
  19:06:51  17 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
 

Message edited by:
olaf1
03/17/2012 19:40:34
Messages: 240

---QUOTATION---

on_info = {-mar_csky_stalker_1) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info2 = {-mar_csky_stalker_2) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info3 = {-mar_csky_stalker_3) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1

mar_csky_stalker_1)
mar_csky_stalker_2)
mar_csky_stalker_3)



Of course it doesn't work it expects the infoportions with brackets. These brackets are wrong. Did you add the infoportions to the info_.xml s ?
Also please do not expect from us to finish your mod.
---END QUOTATION---



what you mean with


mar_csky_stalker_1)
mar_csky_stalker_2)
mar_csky_stalker_3)

???

insanelazarez

i don´t see what you mean the code is for me the same

sorry
can you better sy this or show

thank you
  01:12:58  18 March 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
 

Message edited by:
insanelazarez
03/18/2012 1:14:01
Messages: 1070

---QUOTATION---

on_info = {-mar_csky_stalker_1) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info2 = {-mar_csky_stalker_2) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info3 = {-mar_csky_stalker_3) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1

mar_csky_stalker_1)
mar_csky_stalker_2)
mar_csky_stalker_3)



Of course it doesn't work it expects the infoportions with brackets. These brackets are wrong. Did you add the infoportions to the info_.xml s ?
Also please do not expect from us to finish your mod.

what you mean with


mar_csky_stalker_1)
mar_csky_stalker_2)
mar_csky_stalker_3)

???

insanelazarez

i don´t see what you mean the code is for me the same

sorry
can you better sy this or show

thank you
---END QUOTATION---



This is Wrong:


---QUOTATION---


=+mar_csky_stalker_1 ; You have = and +; It's wrong


---END QUOTATION---



If you want a function you need:


---QUOTATION---


=mar_csky_stalker_1


---END QUOTATION---



But if you want an info portion, you need this:


---QUOTATION---


+mar_csky_stalker_1


---END QUOTATION---

  11:43:31  18 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
 

Message edited by:
olaf1
03/18/2012 12:44:52
Messages: 240
Thank you
you mean that so


the space restrictor

[42401]
; cse_abstract properties
section_name = space_restrictor
name = mar_lager_1
position = -61.996055603027,0.92057931423187,293.67742919922
direction = -9.74710516743471e-008,0,0

; cse_alife_object properties
game_vertex_id = 3402
distance = 0
level_vertex_id = 106182
object_flags = 0xffffff3e
custom_data = <<END
[logic]
active = sr_idle@check

[sr_idle@check]
on_info = {-mar_csky_stalker_1) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info2 = {-mar_csky_stalker_2) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1
on_info3 = {-mar_csky_stalker_3) =dist_to_actor_ge(100)} sr_idle@spawn_csky_stalker_1


[sr_idle@spawn_csky_stalker_1]
on_game_timer = 2000 | sr_idle@check %+mar_csky_stalker_1 =respawner_spawn(mar_clear_sky_respawn_1)%

[sr_idle@spawn_csky_stalker_2]
on_game_timer = 2000 | sr_idle@check %+mar_csky_stalker_2 =respawner_spawn(mar_clear_sky_respawn_2)%

[sr_idle@spawn_csky_stalker_3]
on_game_timer = 2000 | sr_idle@check %+mar_csky_stalker_3 =respawner_spawn(mar_clear_sky_respawn_3)%

END
story_id = 4444321

; cse_shape properties
shapes = shape0
shape0:type = box
shape0:axis_x = -61.996055603027,0,0
shape0:axis_y = 0,20.92057931423187,0
shape0:axis_z = 0,0,293.67742919922
shape0:offset = 0,0,0

; cse_alife_space_restrictor properties
restrictor_type = 0




and the logic script from the npc

[smart_terrains]
none = true


[logic]
active = kamp
on_death = death


[kamp]
center_point = mar_clear_sky_general_kamper_001_kamp
meet = meet  
  

[death]
on_info = %-mar_csky_stalker_1%
    
[meet]                     
use = true                
use_wpn = true 




but this is false wenn i start the game and kill the npc the npc´s don´t repswa after 100 hours ingame

i have includ the info portion in the escpae_info.xml

what i have forgott???

edit:
can i writ this not in the logic script of the npc´s??



[smart_terrains]
none = true


[logic]
active = kamp
on_death = death

[kamp]
center_point = mar_clear_sky_general_kamper_002_kamp
meet = meet  
  

[death]
on_info = %-mar_csky_stalker_2%  sr_idle@spawn_csky_stalker_2
    
[meet]                     
use = true                
use_wpn = true 


[sr_idle@spawn_csky_stalker_2]
on_game_timer = 2000 | on_info = %+mar_csky_stalker_2 =respawner_spawn(mar_clear_sky_respawn_2)%

  14:14:41  18 March 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
 

Message edited by:
Lijenstina
03/18/2012 14:16:26
Messages: 1902
You cannot use sr_idle on npc's logic

sr_idle can be used only as a logic for space restrictors.

Sorry, but I think that what you are trying to do is too complicated for your current level of knowledge of stalker logic and scripting .
  14:19:15  18 March 2012
profilee-mailreply Message URLTo the Top
olaf1
Senior Resident
 

 
On forum: 01/17/2012
Messages: 240

---QUOTATION---
You cannot use sr_idle on npc's logic

sr_idle can be used only as a logic for space restrictors.

Sorry, but I think that what you are trying to do is too complicated for your current level of knowledge of stalker logic and scripting .
---END QUOTATION---



oh that i have know but i have copi this only and ten i have forgotten this to change

sorry

i mean thsi


[smart_terrains]
none = true


[logic]
active = kamp
on_death = death

[kamp]
center_point = mar_clear_sky_general_kamper_001_kamp
meet = meet  
  

[death]
on_info = %-mar_csky_stalker_1%  spawn_csky_stalker_1
    
[meet]                     
use = true                
use_wpn = true 


[spawn_csky_stalker_1]
on_game_timer = 2000 | on_info = %+mar_csky_stalker_1 =respawner_spawn(mar_clear_sky_respawn_1)%



or can i don´t spwan npc´s with a npc log script??
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.