Page 1 of 1

note to myself

Posted: Mon Oct 20, 2014 6:17 pm
by zaroba
just stuff to copy when i get home from work



use edit post to preserve tabs

Code: Select all

Event( "OSDSelect", "owner:maint" )
	{
	CustomEvent("maint")
	}

Event("custom", "maint")
	{
	if ($gBuildingVar10=103)
		{
		$auto1term = "Irrigation"
		$auto2term = "Fertilization System"
		$storeterm = "Field Fencing"
		$store=1
		$prod=2
		$prodline = sysPlayerInventory($auto1term)
		$automation = sysPlayerInventory($auto2term)
		$storage = sysPlayerInventory($storeterm)
		}
	if ($gBuildingVar10=104)
		{
		$store=1
		$prod=2
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$storeterm = "Pen Fencing"
		$auto1term = "Feeding System"
		$auto2term = "Breeding System"
		}
	if ($gBuildingVar10=105)
		{
		$prod=1
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Pit Digger"
		$auto1term = "Conveyer Belts"
		$auto2term = "Mining Controller"
		}
	if ($gBuildingVar10=106)
		{
		$prod=1
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Mine Drill"
		$auto1term = "High Pressure Pump"
		$auto2term = "Mining Controller"
		}
	if ($gBuildingVar10=107)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Well Drill"
		$auto1term = "High Pressure Pump"
		$auto2term = "Pump Controller"
		}
	if ($gBuildingVar10=109)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Assembly Line"
		$auto1term = "Programmed Machinery"
		$auto2term = "Automated Machinery"
		}
	if ($gBuildingVar10=110)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Grain Mill"
		$auto1term = "Screw Feeder"
		$auto2term = "Scale Controller "
		}
	if ($gBuildingVar10=111)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = " "
		$autoterm = " "
		$storeterm = " "
		}
	if ($gBuildingVar10=112)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Assembly Line"
		$auto1term = "Programmed Machinery"
		$auto2term = "Automated Machinery"
		}
	if ($gBuildingVar10=113)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Generator"
		$auto1term = "Lightweight Turbine"
		$auto2term = "Transformer"
		}
	if ($gBuildingVar10=114)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Distillation tower"
		$autoterm = " "
		$storeterm = " "
		}
	if ($gBuildingVar10=115)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = " "
		$autoterm = " "
		$storeterm = " "
		}
	if ($gBuildingVar10=116)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$auto1term = "Transformer"
		}
	if ($gBuildingVar10=117)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$store1term = "Parking Lot"
		$store2term = "Parking Garage"
		}
	if ($gBuildingVar10=118)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$store1term = "Small Backroom"
		$store2term = "Large backroom"
		}
	if ($gBuildingVar10=201)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$store1term = "Small backroom"
		$store2term = "Large Backroom"
		}
	if ($gBuildingVar10=202)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$lineterm = "Alcohol Still"
		$store1term = "Small Backroom"
		$store2term = "Large Backroom"
		}
	if ($gBuildingVar10=203)
		{
		$prodline = sysPlayerInventory("")
		$automation = sysPlayerInventory("")
		$storage = sysPlayerInventory("")
		$store1term = "Small Backroom"
		$store2term = "Large Backroom"
		}



Posted: Mon Oct 20, 2014 10:00 pm
by Mit
you really need to use tables for that kinda thing :)

Posted: Mon Oct 20, 2014 10:52 pm
by zaroba
that will come eventually.

It was from the pre-table concept script I had made for zoric back in 2012. I had copied the whole event to a pastebin site so i could access it at work to mess with it when i had a few mins here and there. That was just the part I had edited. Posted it here to copy to the script at home since work blocked posting onto the pastebin site.

Posted: Tue Oct 21, 2014 2:33 pm
by zaroba

Code: Select all

Event("custom", "maint")
	{


	folder for table scripts - 
	maint - upgrades, item names - maybe table for osd placement vars?
	prod - building production recipes
	numpad - data for numpad, see if it saves space from osd transferring details
	
	
	
	$mTableMaint[]
	




	$lcol = 
	if $gPlayerVar26=0)
		{
		$gPlayerVar26=1
		}
	if ($mTableMaint[]=1)
		{
		$l1row = 
		}
	if ($mTableMaint[]=3)
		{
		$l1row = 
		$l2row = 
		$l3row = 
		
		}
	if ($mTableMaint[]>4)
		{
		$l1row = 
		$l2row = 
		$l3row = 
		$l4row = 
		$l5row = 
		
		}
	if ($mTableMaint[]=??)  
		{
		check vars - see how many lines there can be.
		2 vars needed: item, step
		Brewery, maybe oil ref, maybe crop mill
		}

	osdcreate(OSDBUILDING,"maint","Building Maintenence")
	osdaddat(OSDTEXT, 25, 20, 0,0, "", "Production Line Status") 

	if ($mTableMaint[]>5)
		{
		if ($gPlayerVar26=1)
			{
			osdaddat(FADEDBUTTON, 25, 20, 0,0, "", "Previous Page")
			osdaddat(BUTTON, 25, 20, 0,0, "", "Next Page")
			}
		if ($gPlayerVar26>1)
			{
			if ($gPlayerVar26<???)
				{
				osdaddat(BUTTON, 25, 20, 0,0, "", "Next Page")
				osdaddat(BUTTON, 25, 20, 0,0, "", "Previous Page")
				}
			}
		if ($gPlayerVar26=???)
			{
			osdaddat(BUTTON, 25, 20, 0,0, "", "Previous Page")
			osdaddat(FADEDBUTTON, 25, 20, 0,0, "", "Next Page")
			}
		}
	if ($gPlayerVar26=1)
		{
		if ($mTableMaint[]>0)
			{
			osdaddat(BIGTEXT, $lcol, $l1row, 0,0, "", "Line 1")
			}
		if ($mTableMaint[]>2)
			{
			osdaddat(BIGTEXT, $lcol, $l2row, 0,0, "", "Line 2")
			osdaddat(BIGTEXT, $lcol, $l3row, 0,0, "", "Line 3")
			}
		if ($mTableMaint[]>4)
			{
			osdaddat(BIGTEXT, $lcol, $l4row, 0,0, "", "Line 4")
			osdaddat(BIGTEXT, $lcol, $l5row, 0,0, "", "Line 5")
			}
		}
	if ($gPlayerVar26=2)
		{
		osdaddat(BIGTEXT, $lcol, $l1row, 0,0, "", "Line 6")
		osdaddat(BIGTEXT, $lcol, $l2row, 0,0, "", "Line 7")
		osdaddat(BIGTEXT, $lcol, $l3row, 0,0, "", "Line 8")
		osdaddat(BIGTEXT, $lcol, $l4row, 0,0, "", "Line 9")
		osdaddat(BIGTEXT, $lcol, $l5row, 0,0, "", "Line 10")
		}
	if ($gPlayerVar26=3)
		{
		
		}
	if ($mTableMaint[]>5)
		{
		
		}




Posted: Sun Jan 04, 2015 3:55 pm
by zaroba
Public Market - players place items for sale for others to buy or (?) set a buy request for others to sell
-player id, item, qty, price, buy/sell (?)
- (?) player ownable - set fees for listing and total sale value.
- (?) upgradable - start with 5 listings, upgrade to get to 20
@4 vars - 25 listings if player owned, 30 listings if gov owned
@5 vars - 20 listings if player owned, 25 listings if gov owned