ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Inventory button "Remove All Objects" MOD?

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  16:21:47  14 April 2014
profilee-mailreply Message URLTo the Top
oddFlow
(Novice)
 
On forum: 04/12/2014
Messages: 15
Thanks a lot once again, it works quite well

I got another small question, not really related to this, but I didn't want to create a new thread.

Any way to dynamically change health restore speed?
  20:11:11  14 April 2014
profilee-mailreply Message URLTo the Top
oddFlow
(Novice)
 
On forum: 04/12/2014
Messages: 15

---QUOTATION---
Thanks a lot once again, it works quite well

I got another small question, not really related to this, but I didn't want to create a new thread.

Any way to dynamically change health restore speed?
---END QUOTATION---



Okay so I found this in actor.ltx file:

satiety_health_v

If you set this to zero, there is no health regeneration. Now, can something like:

db.actor:satiety_health_v = 0.0001

work to set it to a different value during different circumstances? Or is there another way to manipulate that value?
  17:41:01  18 April 2014
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
04/18/2014 17:46:07
Messages: 2230
No. Most variables read in from the system ini fields and values cannot be altered unless there is a exported game_object method that has a get/set for it (ie. ignore_monster_threshold) and the only properties you can directly change are listed in lua_help.script under the game_object class:


---QUOTATION---
property bleeding;
property health;
property morale;
property power;
property psy_health;
property radiation;
---END QUOTATION---



So if you wanted to emulate the effect you would have to do it by script using db.actor.health = db.actor.health + 0.0001 in the object binder's update method.
  19:19:26  18 April 2014
profilee-mailreply Message URLTo the Top
oddFlow
(Novice)
 
On forum: 04/12/2014
Messages: 15

---QUOTATION---

So if you wanted to emulate the effect you would have to do it by script using db.actor.health = db.actor.health + 0.0001 in the object binder's update method.
---END QUOTATION---



Thanks, that should do the trick, I thought of something similar, but I still wasn't sure, now that I think about it, it really isn't that difficult and makes sense
  23:55:21  18 April 2014
profilee-mailreply Message URLTo the Top
oddFlow
(Novice)
 
On forum: 04/12/2014
Messages: 15
Got it working, here's a working script if anyone else wants to replicate health regeneration, this is the same thing as vanilla's health regeneration:


if (spawn_timer == nil or spawn_timer <= time_global()) then
db.actor.health = 0.001
spawn_timer = time_global() + 1000
end
  20:31:21  23 April 2014
profilee-mailreply Message URLTo the Top
Irradiated
(Novice)
 
On forum: 04/22/2014
Messages: 12
I saw this discussion, and I thought that maybe it would be better to post it here, instead of creating a new thread as well.

Is there any way to turn on the inventory by script, forcefully (without player pushing the button)? And also, is there any way to force player to stay in the inventory, while some specific task is being done?
 
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.