Page 1 of 1

what did i do wrong.

Posted: Thu Oct 22, 2015 9:04 pm
by benpowerman
function Create()

local Prisoners = this.GetNearbyObjects("Prisoner", 10000);

for Prisoner, _ in next, Prisoners do
Prisoner.StatusEffects.ProgressEffect.claming = 10000;
Prisoner.StatusEffects.claming = 10000;
Prisoner.StatusEffects.claming = 10000;
end
this.Delete();
end

i get this http://steamcommunity.com/sharedfiles/f ... =539843353

Re: what did i do wrong.

Posted: Thu Oct 22, 2015 9:14 pm
by Brento666
claming

*as in gathering of tasty clams!

Re: what did i do wrong.

Posted: Thu Oct 22, 2015 9:19 pm
by Brento666
Also calming is only set 1 way;
someconvict.StatusEffects.calming = 100 (or try closer to a 1000; 10000 is a bit much for this one I think!)

Re: what did i do wrong.

Posted: Thu Oct 22, 2015 9:20 pm
by benpowerman
trying to calm the whole prison

Re: what did i do wrong.

Posted: Fri Oct 23, 2015 12:23 am
by aubergine18
You'd probably want to set all their needs to 0 as well.

Basically, you want the *exact opposite* of this script: https://github.com/Dubpubber/The-Creati ... lAngry.lua