diff --git a/Content/BPs/GI.uasset b/Content/BPs/GI.uasset index 8ead423..c464ede 100644 Binary files a/Content/BPs/GI.uasset and b/Content/BPs/GI.uasset differ diff --git a/Content/BPs/HISM.uasset b/Content/BPs/HISM.uasset new file mode 100644 index 0000000..3cf0686 Binary files /dev/null and b/Content/BPs/HISM.uasset differ diff --git a/Content/BPs/MapMarkers.uasset b/Content/BPs/MapMarkers.uasset index c301d10..761366d 100644 Binary files a/Content/BPs/MapMarkers.uasset and b/Content/BPs/MapMarkers.uasset differ diff --git a/Content/BPs/MapStreets.uasset b/Content/BPs/MapStreets.uasset index 50c51f2..636a210 100644 Binary files a/Content/BPs/MapStreets.uasset and b/Content/BPs/MapStreets.uasset differ diff --git a/Content/BPs/Person.uasset b/Content/BPs/Person.uasset index 90b8fed..31314ad 100644 Binary files a/Content/BPs/Person.uasset and b/Content/BPs/Person.uasset differ diff --git a/Content/BPs/Room.uasset b/Content/BPs/Room.uasset index 38c2822..dd93b52 100644 Binary files a/Content/BPs/Room.uasset and b/Content/BPs/Room.uasset differ diff --git a/Content/BPs/StreetMap_Static.uasset b/Content/BPs/StreetMap_Static.uasset index 5584030..995ab60 100644 Binary files a/Content/BPs/StreetMap_Static.uasset and b/Content/BPs/StreetMap_Static.uasset differ diff --git a/Content/Scenes/CentralLondon.umap b/Content/Scenes/CentralLondon.umap index 9a49571..f8a75f4 100644 Binary files a/Content/Scenes/CentralLondon.umap and b/Content/Scenes/CentralLondon.umap differ diff --git a/Content/UI/MainMenu.uasset b/Content/UI/MainMenu.uasset index 8433de5..0f9a657 100644 Binary files a/Content/UI/MainMenu.uasset and b/Content/UI/MainMenu.uasset differ diff --git a/Content/UI/Scene.uasset b/Content/UI/Scene.uasset index 64b70e8..220a999 100644 Binary files a/Content/UI/Scene.uasset and b/Content/UI/Scene.uasset differ diff --git a/Content/UI/SceneSneakStep.uasset b/Content/UI/SceneSneakStep.uasset index fe41dbf..caa081a 100644 Binary files a/Content/UI/SceneSneakStep.uasset and b/Content/UI/SceneSneakStep.uasset differ diff --git a/Docs/Modding/Command_Functions/floor.txt b/Docs/Modding/Command_Functions/floor.txt new file mode 100644 index 0000000..6b50ad4 --- /dev/null +++ b/Docs/Modding/Command_Functions/floor.txt @@ -0,0 +1,21 @@ +{float variable}.floor() + +USE: +Use this function to get the integer value of a float variable. +Any value less than x.3 / x.5 / x.8 will be rounded down to "x". + +TYPE: Command, Non-Ref (ref-like syntax) +RETURNS: float variable +THEME: Math +COMPARE: round() + +EXAMPLE: + val = 1.4 + rv = val.round() + fv = val.floor() + "Val = , " // Will output 'Val = 1, 1' + + val = 1.5 + rv = val.round() + fv = val.floor() + "Val = , " // Will output 'Val = 2, 1' diff --git a/Docs/Modding/Command_Functions/getActorVar.txt b/Docs/Modding/Command_Functions/getActorVar.txt new file mode 100644 index 0000000..dd4527f --- /dev/null +++ b/Docs/Modding/Command_Functions/getActorVar.txt @@ -0,0 +1,23 @@ +{Actor}.getActorVar(name) + +USE: +Use this function to get the float value of a variable from a certain actor. +The actor can be the Player or any other actor. + +This function also allows testing it a certain TAG is assigned to an actors. + +If a tag / value was not assigned the function will return 0. + + +TYPE: Command, Non-Ref (ref-like syntax) +RETURNS: variable value +THEME: Variables +COMPARE: getActorVar, modifyActorVar + +EXAMPLE: + Player.setActorVar(tag_Player, 1) // Set the Tag 'Player' to the Player's character + Player.setActorVar(tag_Player, -1) // Remove the Tag 'Player' from the Player's character + + Player.setActorVar(SomeVariable, 42) // Set the variable to 42 + val = Player.getActorVar(SomeVariable) + "The value of SomeVariable is ." diff --git a/Docs/Modding/Command_Functions/getPerson.txt b/Docs/Modding/Command_Functions/getPerson.txt index ef82fed..6ec5311 100644 --- a/Docs/Modding/Command_Functions/getPerson.txt +++ b/Docs/Modding/Command_Functions/getPerson.txt @@ -1,7 +1,26 @@ -getPerson(optional bool) +getPerson(optional bool/tag) USE: -Get a random person in your current game (i.e. could be anyone that has been created with GeneratePerson() or GeneratePersonTemporary() then MakePermanent() ). Optional bool parameters to filter for whether their contact has been exchanged to you or not. + +Get a random person in your current game (i.e. could be anyone that has +been created with GeneratePerson() or GeneratePersonTemporary() then +MakePermanent() ). + +Optional parameters: + +Boolean (true/false): to filter for whether their contact has been exchanged +to you or not. + +Tag (any): to filter for persons that have the given tag assigned. +The tag command was introduced with LifePlay 2.18 and can be used to iterate over +all persons with a certain tag. + +getPerson() will only return a specific person once for a scene. So you can use it to +iterate though all persons in the game (omit the parameter), all you have in your +contacts (set parameter to true), all persons you don't have exchanged contacts +with (set to false) or all persons with a specific tag. + + TYPE: Command, Non-Ref RETURNS: Actor @@ -10,5 +29,14 @@ COMPARE: getSpecific EXAMPLE: Actor = getPerson() // get anyone - Actor = getPerson(true) // get someone who has exchanged numbers with me - Actor = getPerson(false) // get someone whose number I don't have \ No newline at end of file + Actor = getPerson(true) // get someone who has exchanged contacts with me + Actor = getPerson(false) // get someone who is not in my contacts + Actor = getPersone(SomeTag) // get only persons with 'SomeTag' (in contacts or not) + + Actor = getPerson(TagModel) + While Actor.isValid() + // Do something with the model + + // Get the next one or an invalid actor if no more persons with this tag. + Actor = getPerson(TagModel) + EndWhile \ No newline at end of file diff --git a/Docs/Modding/Command_Functions/modifyActorVar.txt b/Docs/Modding/Command_Functions/modifyActorVar.txt new file mode 100644 index 0000000..d08498b --- /dev/null +++ b/Docs/Modding/Command_Functions/modifyActorVar.txt @@ -0,0 +1,22 @@ +{Actor}.modifyActorVar(name, value) + +USE: +Use this function to modify the float value of a variable by a given value. +The actor can be the Player or any other actor. + +This function was introduced with LifePlay 2.18. + +TYPE: Command, Non-Ref (ref-like syntax) +RETURNS: / +THEME: Variables +COMPARE: getActorVar, modifyActorVar + +EXAMPLE: + Player.setActorVar(SomeVariable, 42) // Set the variable to 42 + Player.modifyActorVar(SomeVariable, 1) + val = Player.getActorVar(SomeVariable) + "The value of SomeVariable is ." // Will be 43 + + Player.modifyActorVar(SomeVariable, -30) + val = Player.getActorVar(SomeVariable) + "The value of SomeVariable is ." // Will be 13 diff --git a/Docs/Modding/Command_Functions/passTime.txt b/Docs/Modding/Command_Functions/passTime.txt index fa42429..2da39b6 100644 --- a/Docs/Modding/Command_Functions/passTime.txt +++ b/Docs/Modding/Command_Functions/passTime.txt @@ -1,7 +1,7 @@ passTime(hours_min, hours_max) USE: -I initially intended this as a way to pass time during a scene, but it turned out too complicated due to stat depreciations. All it does now is add to the variable TimePassed, which can be useful for while loop I guess. +Use to pass time during a scene. TYPE: Command, Non-Ref RETURNS: / diff --git a/Docs/Modding/Command_Functions/round.txt b/Docs/Modding/Command_Functions/round.txt new file mode 100644 index 0000000..2453044 --- /dev/null +++ b/Docs/Modding/Command_Functions/round.txt @@ -0,0 +1,22 @@ +{float variable}.round() + +USE: +Use this function mathematically round a float variable. +Any value less than x.5 will be rounded down to "x" anything larger or equal to +x.5 will be rounded up to x+1. + +TYPE: Command, Non-Ref (ref-like syntax) +RETURNS: float variable +THEME: Math +COMPARE: floor() + +EXAMPLE: + val = 1.4 + rv = val.round() + fv = val.floor() + "Val = , " // Will output 'Val = 1, 1' + + val = 1.5 + rv = val.round() + fv = val.floor() + "Val = , " // Will output 'Val = 2, 1' diff --git a/Docs/Modding/Command_Functions/selectNPC.txt b/Docs/Modding/Command_Functions/selectNPC.txt index ec3a2f6..b2c6dea 100644 --- a/Docs/Modding/Command_Functions/selectNPC.txt +++ b/Docs/Modding/Command_Functions/selectNPC.txt @@ -1,7 +1,18 @@ -selectNPC() +selectNPC(optional tag) USE: -Choose a person from your contacts by leaving the scene temporarily and opening the Contacts menu. Must be followed by getSelectedNPC(). Basically superior to chooseContact() unless you really don't want to take the player out of the scene even temporarily. +Choose a person from your contacts by leaving the scene temporarily and +opening the Contacts menu. Must be followed by getSelectedNPC(). +Basically superior to chooseContact() unless you really don't want to take +the player out of the scene even temporarily. + +Optional parameter: + +Tag (any): to filter for persons that have the given tag assigned. +The tag command was introduced with LifePlay 2.17 and can be used to filter the contact +list by a certain tag. (The player can not modify this query, so you force him to pick a +person that has this tag, or none.) + TYPE: Command, Non-Ref RETURNS: / diff --git a/Docs/Modding/Command_Functions/setActorVar.txt b/Docs/Modding/Command_Functions/setActorVar.txt new file mode 100644 index 0000000..b923f00 --- /dev/null +++ b/Docs/Modding/Command_Functions/setActorVar.txt @@ -0,0 +1,21 @@ +{Actor}.setActorVar(name, value) + +USE: +Use this function to set a float variable to a certain actor. +The actor can be the Player or any other actor. + +This function also allows setting TAGs to actors. + +TYPE: Command, Non-Ref (ref-like syntax) +RETURNS: / +THEME: Variables +COMPARE: getActorVar, modifyActorVar + +EXAMPLE: + Player.setActorVar(tag_Player, 1) // Set the Tag 'Player' to the Player's character + Player.setActorVar(tag_Player, -1) // Remove the Tag 'Player' from the Player's character + + MainActor = getPerson(true) + MainActor.setActorVar(SomeVariable, 42) // Set the variable to 42 + val = MainActor.getActorVar(SomeVariable) + "The value of SomeVariable is ." diff --git a/Docs/Modding/Command_Functions/setBackground3D.txt b/Docs/Modding/Command_Functions/setBackground3D.txt new file mode 100644 index 0000000..b092bf9 --- /dev/null +++ b/Docs/Modding/Command_Functions/setBackground3D.txt @@ -0,0 +1,21 @@ +setBackground3D(relative/path/to/3d-scene.lpworld) + +USE: +Set the background as a 3D room for the current scene. + +HINT: +Call "setBackground" before setBackground3D() to: +a) Handle non existing rooms +b) Give the dress() function a clue, how to dress the actors! + +TYPE: Command, non-Ref +RETURNS: / +THEME: Scenes, Location +COMPARE: sceneStart, dress, setBackground + +EXAMPLE: + + setBackground(work) + setBackground3D(Modules/nn_PornEmpire/Rooms/nn_pe_office_1.lpworld) + Player.dress() // Player will be in a 3D room if PornEmpire mod is installed and wear office clothing + Player.show() \ No newline at end of file diff --git a/Plugins/StreetMap/Content/StreetMapDefaultMaterial.uasset b/Plugins/StreetMap/Content/StreetMapDefaultMaterial.uasset index 693d63e..9d9ac80 100644 Binary files a/Plugins/StreetMap/Content/StreetMapDefaultMaterial.uasset and b/Plugins/StreetMap/Content/StreetMapDefaultMaterial.uasset differ