ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Some questions about task creating

« Previous 10 events | 1 2 3 | All Messages
Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  18:53:02  9 January 2013
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144
Okay i would like to know another

How i can make it that when the gulag is clear from npc, a ingame message popup(with icon, sender name and text) ?
(maybe a example with both fuctions in one script ? )
  11:19:54  9 January 2013
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144

---QUOTATION---
if xr_gulag.get_gulag_population("my_gulag_name" == 0 then
--all are dead
end
---END QUOTATION---



And this function i write in a separate scriptfile ?
  00:48:29  9 January 2013
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
 

Message edited by:
Vintar
01/09/2013 0:48:57
Messages: 6349

---QUOTATION---
Some questions about task creating

I have made some new tasks for shoc and now i have some questions :
1. How i can make a mapspot for a special task npc, spawned by script ?
---END QUOTATION---


local s_obj = alife():create(my_dude)
level.map_add_object_spot(s_obj.id, "green_location", "my_hint")




---QUOTATION---
2. How i can make it that a mission is completed when the player has eliminate all stalkers in a smart_terrain ?
---END QUOTATION---



I dont have vanilla files infront of me, but if you check xr_gulag.script, there should be a function summin like get_gulag_population(gulag), so you would say something like
if xr_gulag.get_gulag_population("my_gulag_name") == 0 then
     --all are dead
end

  15:58:18  8 January 2013
profilee-mailreply Message URLTo the Top
The Xenus
(Senior)
 
On forum: 03/09/2011
Messages: 144
Some questions about task creating

I have made some new tasks for shoc and now i have some questions :

1. How i can make a mapspot for a special task npc, spawned by script ?

2. How i can make it that a mission is completed when the player has eliminate all stalkers in a smart_terrain ?

For the moment thats all
 
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-2022 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.