Scrifen -- Hafen scripting API

Forum for alternative clients, mods & discussions on the same.

Re: Scrifen -- Hafen scripting API

Postby windmaker » Mon May 02, 2016 6:01 pm

Add an method to turn off the renderization. :)
Image #swag
User avatar
windmaker
 
Posts: 1855
Joined: Thu Mar 29, 2012 7:08 am
Location: in the forum where some mods are fags.

Re: Scrifen -- Hafen scripting API

Postby jorb » Mon May 02, 2016 7:04 pm

windmaker wrote:Add an method to turn off the renderization. :)


QQ
"The psychological trials of dwellers in the last times will be equal to the physical trials of the martyrs. In order to face these trials we must be living in a different world."

-- Hieromonk Seraphim Rose
User avatar
jorb
 
Posts: 18437
Joined: Fri Apr 03, 2009 7:07 am
Location: Here, there and everywhere.

Re: Scrifen -- Hafen scripting API

Postby windmaker » Mon May 02, 2016 8:33 pm

bcs the art of the game is 2much creepy 4 me.
Image #swag
User avatar
windmaker
 
Posts: 1855
Joined: Thu Mar 29, 2012 7:08 am
Location: in the forum where some mods are fags.

Re: Scrifen -- Hafen scripting API

Postby Thedrah » Mon May 02, 2016 11:38 pm

jorb wrote:QQ

i love you jorb.
amber has a way to limit fps to 1 when hnh is in the background

is there a way to have it check what level a crop is at? i prefer to harvest carrots at the seed stage out of ease for buckets
although i have yet to finish my first auto something something
  ▲
▲ ▲
Thedrah
 
Posts: 936
Joined: Fri Apr 08, 2011 2:20 am
Location: behind you

Re: Scrifen -- Hafen scripting API

Postby b0r3d0m » Tue May 03, 2016 7:00 pm

Thedrah wrote:is there a way to have it check what level a crop is at?

Yep, see the `getGrowthStage` function.
User avatar
b0r3d0m
 
Posts: 95
Joined: Sun Sep 13, 2015 2:39 pm

Re: Scrifen -- Hafen scripting API

Postby Kuczmik » Tue May 03, 2016 7:32 pm

How can I read objects ID in game?
User avatar
Kuczmik
 
Posts: 4
Joined: Tue Apr 26, 2016 3:20 pm

Re: Scrifen -- Hafen scripting API

Postby windmaker » Tue May 03, 2016 11:01 pm

Kuczmik wrote:How can I read objects ID in game?

object.id

just the id property.
Image #swag
User avatar
windmaker
 
Posts: 1855
Joined: Thu Mar 29, 2012 7:08 am
Location: in the forum where some mods are fags.

Re: Scrifen -- Hafen scripting API

Postby b0r3d0m » Tue May 03, 2016 11:18 pm

Kuczmik wrote:How can I read objects ID in game?

You can use `get*MapObjects*` functions and check the `id` property in the resulting array.

Note that IDs can change over time.
User avatar
b0r3d0m
 
Posts: 95
Joined: Sun Sep 13, 2015 2:39 pm

Re: Scrifen -- Hafen scripting API

Postby b0r3d0m » Tue May 03, 2016 11:19 pm

windmaker wrote:Add an method to turn off the renderization. :)

Do you have any problems with setting background FPS to 1?
User avatar
b0r3d0m
 
Posts: 95
Joined: Sun Sep 13, 2015 2:39 pm

Re: Scrifen -- Hafen scripting API

Postby lacucaracha » Tue May 03, 2016 11:37 pm

b0r3d0m wrote:
windmaker wrote:Add an method to turn off the renderization. :)

Do you have any problems with setting background FPS to 1?

Where can i find this option? Searched everywhere, but it didnt find it :(
User avatar
lacucaracha
 
Posts: 171
Joined: Thu Dec 05, 2013 4:50 pm

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 109 guests