콘텐츠로 건너뛰기
라이엇 비트

라이엇 비트

  • 집
  • 소식
  • 가이드
  • 비디오 가이드
  • 패치 노트
  • 남용 신고
  • 검색 양식 전환

Else Heart.Break() – Database Creation Guide

에 게시됨 12/12/2023 에 의해 KnustSinn 코멘트 없음 ~에 Else Heart.Break() – Database Creation Guide
  • 제목: Else Heart.Break()
  • 출시일: 구월 24, 2015
  • 개발자: Erik Svedäng AB
  • 발행자: Erik Svedäng AB

This guide helps you make a basic makeshift database. You can include various items such as rooms. You can also add custom types for things like bank accounts and tasks.

Application of Code

To speed things up, tweak the computer speed and make sure the database computer can run endlessly. Use a screwdriver with the Screwdriver Code to adjust both the database computer (preferably the one with the memory API) and the workstation computer in the Police Station, specifically the yellow-screened one with the GetAllRooms function. The corner computer with the red screen also has the memory API, making it a convenient choice.

After adjusting both computers, hack into the database computer, the one with the memory API or save/load memory functions. Take the Database Code from this guide and apply it to the computer. Compile the code and close the interface. You’ll observe the code running on the screen.

지금, hack into the yellow-screened workstation and apply the Workstation Code to it.

현재, there’s a basic demonstration. Work is still in progress to create a menu with options for slurping, relocating, and parsing coordinates. Pressing enter with no input will scroll through the lists.

Screwdriver Code

SetMhz(500)
SetMaxTime(-2)

Database Code

##############################################
#            Main Custom Functions
#---------------------------------------------
#array GetItems(string type)
#array GetTypes()
#bool Save(string type,string name)    
##############################################

#Helper - For initial database setup Auto'd by Save()    
void createTypes()
    bool test = HasMemory('Types')
    
    만약에 !test
        SaveMemory('Types',0)    
    end
end

#Helper - Test blank input
bool inputBlank(var test)
    if test == ""
        return True
    else
        return False
    end
end

#Helper - Check if database information has been imported
void Setup()
    bool testDB = HasMemory('Database')
    만약에 !testDB
        ClearText()
        Print("Database has not been built")
        Print("Running now...")
        잠(4)
        BuildDatabase()
    end
end

#Saves items to database
bool Save(string type,string name)

    bool test = HasMemory(유형)
    number qty
    number typesQty
    bool testTypes = HasMemory('Types')
    
    if inputBlank(유형)
        return false
    end
    
    if inputBlank(이름)
        return false
    end
    
    if testTypes
        
    else
        createTypes()
    end
    
if test
    qty = LoadMemory(유형)
    qty++
    SaveMemory(유형,qty)
else
    typesQty = LoadMemory('Types')
    typesQty++
    SaveMemory('Types' + typesQty,유형)
    SaveMemory('Types',typesQty)
    qty = 1
    SaveMemory(유형,qty)
end

SaveMemory(유형 + qty,이름)
Print(유형 + qty)
return true
end

#testing input function
void fun()
    loop
        var typ = Input(':')
        
        if inputBlank(typ)
            return
        end
                
        if typ == 'exit'
            break
        end
            
        Save(typ,'name')
        Print(LoadMemory('Types') + ":Number of Types")
    end
end

#returns all types of items in database
array GetTypes()
   array build
    number cnt = 1
    string tem
        
    loop
        tem = 'Types' + cnt
       if HasMemory(tem)
           Append(짓다,LoadMemory(tem))
       else
           return build
       end
        
        cnt++
    end
        
end

#Returns all items of supplied type
array GetItems(string type)
    number cnt = 1
    array build
    string tem
        
    if inputBlank(유형)
        return
    end    
        
    bool available = HasMemory(유형)
    
    만약에 !available
        return
    end
    
    bool test
        
    loop
        tem = type + cnt
        test = HasMemory(tem)
        if test
            Append(짓다,LoadMemory(tem))
            cnt++
        else
            return build
        end
    end
end

#Helper - 
var PoliceAdmin()
    string computer = "PoliceOfficeInterior_MinistryOfficeWorkstationComputer_1"
    var con = Connect(컴퓨터)
    return con
end

#Helper - Builds database
void BuildDatabase()

        array items
        string type
        bool saved
        var con = PoliceAdmin()           
        array rooms = con.GetAllRooms()
        
        ClearMemories()
        ClearText()
        
    
        
        loop room in rooms
            type = "방"
            saved = Save(유형,방)
            items = con.GetThingsInRoom(방)
            
            loop item in items
                type = con.GetTypeOfThing(목)
                
                saved = Save(유형,목)
            end    
        end
        ClearText()
        SaveMemory('Database',1)
        Print("Database Information Imported")
end


#Helper - 
void bar()
    Print("--------------------")
end


#Helper - Show and Select from an array 
var Select(array arr)
    
    number track
    number select
    number incr


    loop
        track = 0
        select = 0
        incr = 0
        
        loop x from 0 to Count(arr) - 1
            track++
            incr++
            Print(incr + ":" + arr[엑스])

            if track == 5
                track = 0
                select = sel()
                ClearText()
                if select > -1
                    return arr[선택하다]
                else if select == -2
                    break
                end
            end
        end
    end

end


#Helper to select() - Determine if number and return
number sel()

	bool isNum
	string testNum

	loop
		isNum = true
		bar()
		testNum = Input(":>")

		if testNum == "0"
			isNum = false
		else if testNum == ""
			#Move Forward
			return -1
		else if testNum == " "
			#Move Back
			return -2
		else if testNum == "메뉴" or testNum == "출구"
			#return to menu
			return -3
		end

		    loop testNum
			       if CharToInt(@) < -49 or CharToInt(@) > -40
				        isNum = false
				        break
    		    end
		    end

		    if isNum == true
		        	break
		    end

    
    end

    number num = testNum
    num--

    return num

end

##############################################

설정()

WorkStation Code

#Helper - 
var PoliceMem()
    var con = Connect("PoliceOfficeInterior_TriPodComputer_TriPodComputer_1")
    return con
end

#Helper - 
void title(string title, number max)
    Print(최대 + ": " + 제목)
       술집(2) 
end

void bar(number t)
    if t == 2
        Print("--------------------")
    else if t == 1
        Print("====================")
    end
end


#Helper - Show and Select from an array 
var Select(array arr)
    
    number track
    number select
    number incr


    loop
        track = 0
        select = 0
        incr = 0
        
        loop x from 0 to Count(arr) - 1
            track++
            incr++
            Print(incr + ":" + arr[엑스])

            if track == 5
                track = 0
                select = sel()
                ClearText()
                
                if select > -1
                    return arr[선택하다]
                else if select == -2
                    break
                end
                
            end
            
        end
        
    end

end


#Helper to select() - Determine if number and return 
# Old select function.. need to revise or replace
number sel()

	bool isNum
	string testNum

	loop
		isNum = true
		bar(1)
		testNum = Input(":>")

		#if testNum == "0"
		#	isNum = false
		if testNum == ""
			#Move Forward
			return -1
		else if testNum == " "
			#Move Back
			return -2
		else if testNum == "메뉴" or testNum == "출구"
			#return to menu
			return -3
		end

		    loop testNum
			       if CharToInt(@) < -49 or CharToInt(@) > -40
				        isNum = false
				        break
    		    end
		    end

		    if isNum == true
		        	break
		    end

    
    end

    number num = testNum
    num--

    return num

end

# Old selectitem function.. need to revise or replace
string SelectItem()
    var con = PoliceMem()
    array types = con.GetTypes()
    string type = Select(종류)
    array items = con.GetItems(유형)
    string it = Select(항목)
    return it
end

#
void Position()
    string name = SelectItem()
    string target = "PoliceOfficeInterior_Diskette_Diskette6_1" 
    SetPosition(이름,목표)
끝

#
string GetPName(string name)
    bool grab = false
    string Pname = GetPosition(이름)
    string get = ""
    loop Pname
        if @ == " "
            grab = true
        else if @ == ","
            break
        else if grab == true
            get += @
        end
    end
    return get
end

#
string GetPCoor(string name)
    bool grab = false
    string Pname = GetPosition(이름)
    string get
    
    loop Pname
        if @ == "("
            grab = true
        else if @ == ")"
            break
        else if grab == true
            get += @
        end
    end 
    return get
end

string NewSelection(array myarr,string titl)
    number count = Count(myarr)
    number cnt = 1
    number res
    
    loop
        ClearText()
        제목(titl,count)
        만약에 (cnt + 4) < count loop x from cnt to (cnt +4) Print(엑스 + ". " + myarr[엑스 - 1]) end cnt += 5 else loop x from cnt to count Print(엑스 + ". " + myarr[엑스 - 1]) end cnt = 1 end res = sel() if res > -1
            return myarr[res]
        end
   end 
   
          
end


##############################################
#                PoliceMem
#---------------------------------------------
#array GetItems(string type)
#array GetTypes()
#bool Save(string type,string name)    
#
#GetMemories
#HasMemory()
#ClearMemories
#EraseMemory(
#SaveMemory(
#LoadMemory(
##############################################
#                  Workstation
#---------------------------------------------
#string GetPCoor(string name)
#string GetPName(string name)
#void Position() #Sets position of targets item    
#string SelectItem() #runs item selection process
#void title(string title, number max)
#
#GetPeople()
#GetThingsOfType()
#GetPosition()
#GetAction()
#GetRoom()
#GetThingsInRoom()
#GetAllRooms()
#GetTypeOfThing()
#InteractWith()
#IsKeyPressed()
#SetPosition()
##############################################
#                      Run Below
############################################## 

var con = PoliceMem()
string type = NewSelection(con.GetTypes(),'Types')
string item = NewSelection(con.GetItems(유형),type+'s')

이것이 오늘 우리가 공유하는 모든 것입니다. Else Heart.Break() 가이드. 이 가이드는 원래 작성자가 작성하고 작성했습니다. KnustSinn. 이 가이드를 업데이트하지 못한 경우, 다음을 수행하여 최신 업데이트를 찾을 수 있습니다. 링크.

이 사이트의 콘텐츠가 귀하의 권리를 침해한다고 생각하는 경우, 귀하의 지적 재산권을 포함하여, 문의 양식을 사용하여 즉시 문의하십시오..
가이드 태그:Else Heart.Break()

탐색 후

이전 게시물: Lumberjack의 왕조 – Mushroom Spawn Locations Guide
다음 게시물: EA SPORTS WRC – Fixing Anti-Aliasing Issues

답장을 남겨주세요 답장 취소

귀하의 이메일 주소는 공개되지 않습니다. 필수 입력란이 표시되어 있습니다 *

  • 제목: Else Heart.Break()
  • 출시일: 구월 24, 2015
  • 개발자: Erik Svedäng AB
  • 발행자: Erik Svedäng AB

부인 성명

인용된 모든 콘텐츠는 해당 소스에서 파생됩니다.. 귀하의 콘텐츠를 허가 없이 사용했다고 생각되는 경우, 우리에게 연락하면 진지하게 받아 들일 것입니다..
  • 회사 소개
  • 문의하기
  • 개인 정보 정책
  • 서비스 약관

저작권 © 2025 라이엇 비트.

에 의해 구동 프레스북 뉴스 WordPress 테마