다음 워크샵 코드를 분석해줄래?
variables
{
global:
0: Workshop_Option
1: Scene_Positon
3: Game_Member
4: For_1
5: For_2
7: Hud_Text
8: World_Text
9: Icon
10: Effect
16: Day_Amount
17: Day_Option
19: Camp_Temperature_Option
20: Other_String_And_Color
21: Inventory_Text_Pos
22: Item_Name
24: Item_Color
25: Equipment_Text_Pos
player:
15: Position_And_Axis
16: In_Inventory
17: Item_Inventory
21: Item_Inventory_Pos
22: Inventory_Index
23: Max_Inventory
24: Equipment
25: Equipment_Pos
26: Equipment_Index
}
rule("글로벌 설정")
{
event
{
Ongoing - Global;
}
action
{
Global.Equipment_Text_Pos = Empty Array;
Global.Inventory_Text_Pos = Empty Array;
Disable Built-In Game Mode Announcer;
Disable Built-In Game Mode Completion;
Disable Built-In Game Mode Music;
Pause Match Time;
Global.Workshop_Option = Array(Workshop Setting Combo(Custom String("게임 설정"), Custom String("난이도 (Difficlult)"), 1, Array(
Custom String("쉬움 (Easy)"), Custom String("보통 (Normal)"), Custom String("어려움 (Hard)"), Custom String("익스트림 (Extreme)")), 0),
Workshop Setting Integer(Custom String("게임 설정"), Custom String("중간 난입 허용 시간 (분)"), 3, 0, 12, 1));
Global.Game_Member = Empty Array;
Create HUD Text(All Players(All Teams), Null, Null, Custom String(
"\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"), Top, 9, Color(White), Color(White),
Color(White), Visible To and String, Default Visibility);
Global.Scene_Positon = Array(Vector(284.110, -12.750, -223.865), Vector(284.110, -11.450, -216.333), Vector(284.110, -11.450,
-223.870));
Set Objective Description(All Players(All Teams), Custom String("사람 기다리는 중 [{0}명] {2}\r\n3명 이상이면 30초 후에 시작됩니다!", Number Of Players(
All Teams), Null, Array(Custom String("."), Custom String(".."), Custom String("..."), Custom String("...."))[Round To Integer(
2 * Total Time Elapsed % 4, Down)]), Visible To and String);
Global.Hud_Text = Empty Array;
Global.World_Text = Empty Array;
Global.Icon = Empty Array;
Global.Effect = Empty Array;
Create HUD Text(All Players(All Teams), Null, Null, Custom String(
"\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"), Left, 9, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(All Players(All Teams), Null, Null, Custom String(
"\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"), Right, 9, Color(
White), Color(White), Color(White), Visible To and String, Default Visibility);
Create HUD Text(All Players(All Teams), Null, Null, Custom String("\n\r"), Top, 11, Color(White), Color(White), Color(White),
Visible To and String, Default Visibility);
Global.Day_Amount = Array(180, 150, 120, 90);
Global.Day_Option[1] = Global.Day_Amount[Global.Workshop_Option[0]];
Global.Camp_Temperature_Option = Array(100 / Global.Day_Option[1] / 1.200, 100 / Global.Day_Option[1] / 0.700);
Global.Other_String_And_Color = Array(String Split(Custom String("안전,경고,위험"), Custom String(",")), String Split(Custom String(
"모자,가방,옷,손,신발,가방 주머니"), Custom String(",")), Array(Color(Red), Color(Green), Color(Blue), Color(Yellow), Color(Lime Green),
Color(Turquoise)), String Split(Custom String("↑,↓,←,→"), Custom String(",")));
Create In-World Text(First Of(Local Player.In_Inventory), Custom String(
"|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n"),
Local Player.Position_And_Axis[7] + 1.200 * Local Player.Position_And_Axis[6] + 0.900 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Sky Blue), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("________________________________________________"),
Local Player.Position_And_Axis[7] + 1.800 * Local Player.Position_And_Axis[6] + 0.850 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Sky Blue), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("________________________________________________"),
Local Player.Position_And_Axis[7] + 1.800 * Local Player.Position_And_Axis[6] + -0.930 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Sky Blue), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("인벤토리"),
Local Player.Position_And_Axis[7] + 1.800 * Local Player.Position_And_Axis[6] + -0.820 * Down, 1.800, Do Not Clip,
Visible To Position and String, Color(Sky Blue), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String(
"|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n|\r\n"),
Local Player.Position_And_Axis[7] + -1.200 * Local Player.Position_And_Axis[6] + 0.900 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Lime Green), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("________________________________________________"),
Local Player.Position_And_Axis[7] + -1.800 * Local Player.Position_And_Axis[6] + 0.850 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Lime Green), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("________________________________________________"),
Local Player.Position_And_Axis[7] + -1.800 * Local Player.Position_And_Axis[6] + -0.930 * Down, 1, Do Not Clip,
Visible To Position and String, Color(Lime Green), Visible Never);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("장비창"),
Local Player.Position_And_Axis[7] + -1.800 * Local Player.Position_And_Axis[6] + -0.820 * Down, 1.800, Do Not Clip,
Visible To Position and String, Color(Lime Green), Visible Never);
For Global Variable(For_1, 0, 2, 1);
For Global Variable(For_2, 0, 5, 1);
Modify Global Variable(Inventory_Text_Pos, Append To Array, Array(Array(1.500 + (Global.For_1 ? 0.600 : 0),
0.600 - 0.300 * Global.For_2)));
End;
End;
For Global Variable(For_1, 0, 5, 1);
Modify Global Variable(Equipment_Text_Pos, Append To Array, Array(Array(-1.800, 0.600 - 0.300 * Global.For_1)));
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("{0}", !Local Player.Equipment[Evaluate Once(Global.For_1)
] ? Global.Other_String_And_Color[1][Evaluate Once(Global.For_1)] : Custom String("[{0}]", Global.Item_Name[X Component Of(
Local Player.Equipment[Evaluate Once(Global.For_1)])][Y Component Of(Local Player.Equipment[Evaluate Once(Global.For_1)])])),
Local Player.Equipment_Pos[Evaluate Once(Global.For_1)], 1.500, Do Not Clip, Visible To Position String and Color,
Local Player.Equipment_Index == Evaluate Once(Global.For_1) ? Color(White) : (!Local Player.Equipment[Evaluate Once(
Global.For_1)] ? Global.Other_String_And_Color[2][Evaluate Once(Global.For_1)] : Color(Green)), Visible Never);
End;
For Global Variable(For_1, 0, 10, 1);
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("{0} {1}", Local Player.Max_Inventory <= Evaluate Once(
Global.For_1) ? Custom String("X") : Global.Item_Name[X Component Of(Local Player.Item_Inventory[Evaluate Once(Global.For_1)])
][Y Component Of(Local Player.Item_Inventory[Evaluate Once(Global.For_1)])], Z Component Of(
Local Player.Item_Inventory[Evaluate Once(Global.For_1)]) > 1 ? Custom String("X {0}", Z Component Of(
Local Player.Item_Inventory[Evaluate Once(Global.For_1)])) : Custom String("")), Local Player.Item_Inventory_Pos[Evaluate Once(
Global.For_1)], 1.500, Do Not Clip, Visible To Position String and Color, Local Player.Max_Inventory <= Evaluate Once(
Global.For_1) ? Color(Red) : (Local Player.Inventory_Index != Evaluate Once(Global.For_1) ? Global.Item_Color[X Component Of(
Local Player.Item_Inventory[Evaluate Once(Global.For_1)])] : Color(White)), Visible Never);
End;
Create In-World Text(First Of(Local Player.In_Inventory), Custom String("↖"), Update Every Frame(
Local Player.Position_And_Axis[7] + Local Player.Position_And_Axis[2] * Angle Difference(Horizontal Facing Angle Of(
Local Player), Horizontal Angle From Direction(Local Player.Position_And_Axis[1]))
* 0.044 + Local Player.Position_And_Axis[3] * Vertical Facing Angle Of(Local Player) * 0.044), 2, Do Not Clip,
Visible To Position and Color, Color(White), Visible Never);
Global.Item_Name = Array(Array(Custom String("없음")), String Split(Custom String(
"비막치어,남극 연어,남극 빙어,참 돔,방어,명태,도로묵,펭귄 고기,해덕 대구,곤들매기,비상 식량"), Custom String(",")), String Split(Custom String(
"방한복,아이젠,등산 갈고리,낚시대,횃불,배낭"), Custom String(",")), String Split(Custom String("담배,커피 믹스,가루 수프,가루 약,피로 회복제,손난로,미끼,응급 키트,성냥"),
Custom String(",")), String Split(Custom String("보온병,라이터,냄비"), Custom String(",")), String Split(Custom String(
"상자 키트(1단계),상자 키트(2단계),상자 키트(3단계),텐트 천막,간이 모닥불,간이 상자 키트,통발,침낭"), Custom String(",")), String Split(Custom String(
"펭귄 털 뭉치,나사,나무 판자,기어"), Custom String(",")));
Global.Item_Color = Array(Color(Gray), Color(Red), Color(Green), Color(Blue), Color(Turquoise), Color(Orange), Custom Color(35, 22,
150, 255));
}
}