API:Plant GetInfo

__NOTOC__
Returns information about the currently selected plant
Plant_GetInfo()
== Parameters ==
=== Arguments ===
=== Returns ===
:;szState
::(string) Current state of plant:
:::none
:::grow
:::ripe
:::lock
:::death
:;szPotName
::(string) The item name of the current pot
:;nPotType
::(number) Type of the pot (0 - common, 1 - Wood, 2 - Herb, 3 - Ore)
:;szSeedName
:;szSeedTexture
:;szSeedLink
:;fGrowRate
:;fHealthrate
:;nReapTime
:;nFeedPoint
:;nWaterPoint
:;nTopdressPoint
:;nBestWaterPoint
:;nBestTopdressPoint
:;fDecWater
:;fDecTopdress
== Notes ==
== Example ==
local szState, szPotName, nPotType, szSeedName, szSeedTexture, szSeedLink, 
	fGrowRate, fHealthRate, nReapTime, nFeedPoint,
	nWaterPoint, nTopdressPoint, nBestWaterPoint, nBestTopdressPoint,
	fDecWater, fDecTopdress = Plant_GetInfo();
print("state: " .. szState);
print("Pot Name: " .. szPotName);
print("Pot Type: " .. nPotType); -- 2 = Herb
print("Seed Nam: " .. szSeedName); 
print("Seed Txr: " .. szSeedTexture);
print("Seed Lnk: " .. szSeedLink);
print("Grow Rat: " .. fGrowRate);
print("Hlth Rat: " .. fHealthRate);
print("Reap Tim: " .. nReapTime);
print("Feed Pnt: " .. nFeedPoint);
print("Watr Pnt: " .. nWaterPoint);
print("TD Point: " .. nTopdressPoint);
print("BW Point: " .. nBestWaterPoint);
print("BT Point: " .. nBestTopdressPoint);
print("Dec Watr: " .. fDecWater);
print("Dec TopD: " .. fDecTopdress);
Category:Functions