what did i do wrong.

Discussion about Mods for Prison Architect

Moderator: NBJeff

benpowerman
level2
level2
Posts: 105
Joined: Fri Aug 20, 2010 3:42 am

what did i do wrong.

Postby benpowerman » Thu Oct 22, 2015 9:04 pm

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
User avatar
Brento666
level3
level3
Posts: 290
Joined: Wed Sep 02, 2015 9:23 pm

Re: what did i do wrong.

Postby Brento666 » Thu Oct 22, 2015 9:14 pm

claming

*as in gathering of tasty clams!
User avatar
Brento666
level3
level3
Posts: 290
Joined: Wed Sep 02, 2015 9:23 pm

Re: what did i do wrong.

Postby Brento666 » Thu Oct 22, 2015 9:19 pm

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!)
benpowerman
level2
level2
Posts: 105
Joined: Fri Aug 20, 2010 3:42 am

Re: what did i do wrong.

Postby benpowerman » Thu Oct 22, 2015 9:20 pm

trying to calm the whole prison
User avatar
aubergine18
level2
level2
Posts: 231
Joined: Sun Jul 05, 2015 3:24 pm

Re: what did i do wrong.

Postby aubergine18 » Fri Oct 23, 2015 12:23 am

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

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 1 guest