User Tools

Site Tools


features:housing:custom_scripts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
features:housing:custom_scripts [2019/04/03 04:42]
Carcerian [Chairs Sitting]
features:housing:custom_scripts [2019/04/03 07:05]
Carcerian [Make the web client of players in area, playing the music in a loop.]
Line 203: Line 203:
  
 Script: Door/PLC Heartbeat, Door OnTransitionClick = jj_create_bdoor ​ Script: Door/PLC Heartbeat, Door OnTransitionClick = jj_create_bdoor ​
 +
 Variables: Variables:
 +
 BACKDOOR_VFX : Integer ​ BACKDOOR_VFX : Integer ​
 +
 KEY : String ​ KEY : String ​
 +
 NAME : String ​ NAME : String ​
 +
 NOKEY : Integer ​ NOKEY : Integer ​
-TARGET : String javascript:​RemoveScript('​114'​);"​HYPERLINK "​javascript:​RemoveScript('​114'​);"​HYPERLINK "​javascript:​EditScript('​jj_create_bdoor','​114'​);"​HYPERLINK "​javascript:​EditScript('​jj_create_bdoor','​114'​);​Placeable Heartbeat jj_create_bdoor ​+ 
 +TARGET : jj_create_bdoor 
 + 
 +Placeable Heartbeat jj_create_bdoor ​
  
 For Placeables: For Placeables:
 +
 OnHeartbeat script jj_create_bdoor will create a Waypoint on the exact same spot as your placeable you run the script from. OnHeartbeat script jj_create_bdoor will create a Waypoint on the exact same spot as your placeable you run the script from.
 +
 Script: OnUse = jj_backdoor will teleport you to the target Waypoint. Script: OnUse = jj_backdoor will teleport you to the target Waypoint.
  
 For Doors: (actual doors, not placeable ones) For Doors: (actual doors, not placeable ones)
 +
 OnHeartbeat script jj_create_bdoor will create a Waypoint on the exact same spot as your placeable you run the script from. OnHeartbeat script jj_create_bdoor will create a Waypoint on the exact same spot as your placeable you run the script from.
  
 The OnTransitionClick script jj_backdoor will teleport you to the target Waypoint. The OnTransitionClick script jj_backdoor will teleport you to the target Waypoint.
 +
 - This means that you can create links to eachother'​s houses (if they are on the same Island example: Sinifer - Ackalia). - This means that you can create links to eachother'​s houses (if they are on the same Island example: Sinifer - Ackalia).
 +
 - Back doors to the outside world (if you coordinate this with the builder of the area). - Back doors to the outside world (if you coordinate this with the builder of the area).
 +
 - Create transitions using only placeables. - Create transitions using only placeables.
  
 Create a placeable, go to its properties, make it plot and usable. Create a placeable, go to its properties, make it plot and usable.
 +
 In the Scripts tab, set Heartbeat to ii_create_bdoor In the Scripts tab, set Heartbeat to ii_create_bdoor
  
 Go to the advanced tab and click on the dotted-icon next to variables. Go to the advanced tab and click on the dotted-icon next to variables.
 +
 Fill in the variables: Fill in the variables:
 +
 KEY (string) - I would suggest you use your front-door key for this. This will be your security firewall. KEY (string) - I would suggest you use your front-door key for this. This will be your security firewall.
 Unless the person that wants to port to the location of your placeables has the key in his/her inventory, Unless the person that wants to port to the location of your placeables has the key in his/her inventory,
Line 233: Line 250:
  
 NAME (string) - The Tag you give the Waypoint created by the placeable. ​ NAME (string) - The Tag you give the Waypoint created by the placeable. ​
 +
 The tag has to be unique. The tag has to be unique.
 +
 The tag has to be all caps. The tag has to be all caps.
-Adviced ​is to use your login name or other unique method of identification.+ 
 +Advised ​is to use your login name or other unique method of identification. 
 Example: HOME_PAULUSMA_001 Example: HOME_PAULUSMA_001
  
Line 241: Line 262:
 Example: HOME_PAULUSMA_002 Example: HOME_PAULUSMA_002
  
-NOKEY (int) - This variale ​checks ​wether ​a key should be present or not. If set to 1 (true) everybody will be +NOKEY (int) - This variable ​checks ​whether ​a key should be present or not. If set to 1 (true) everybody will be 
-able to port to the waypoint created by the placeable you set this variable on. So if you want people to have a key to port to a certain +able to port to the waypoint created by the placeable you set this variable on. So if you want people to have a key to port to a certain destination,​ you can ignore this one altogether. Do not add this one if you want to use a key. 
-destination,​ you can ignore this one alltogether. Do not add this one if you want to use a key. + 
-Example: 1 (for a keyless ​transition) ​+Example: 1 (for a key-less ​transition) ​
  
 Important Notes: Important Notes:
-- Never log out on a balcony, ​ballustrade ​or other enclosed out-of-your house nook of the world with the only access being this connection.+ 
 +- Never log out on a balcony, ​balustrade ​or other enclosed out-of-your house nook of the world with the only access being this connection. 
 - You cannot teleport to another house unless that house is loaded into the server. - You cannot teleport to another house unless that house is loaded into the server.
 +
 - The only way houses are loaded into the server is by entering it through the main door. - The only way houses are loaded into the server is by entering it through the main door.
 +
 - Do not give away your keys lightly. Guard them well, and give them away only, to those you completely trust. - Do not give away your keys lightly. Guard them well, and give them away only, to those you completely trust.
  
Line 392: Line 417:
  
 Script: Placeable Used = yasm_doorbell ​ Script: Placeable Used = yasm_doorbell ​
 +
 Lobby doorbell. Sends a message to other PCs in the house and/or keyholders. ​ Lobby doorbell. Sends a message to other PCs in the house and/or keyholders. ​
 +
 Variables: Variables:
 +
 ENABLE_SHOUT : Integer ​ ENABLE_SHOUT : Integer ​
 +
 KEY_TAG : String ​ KEY_TAG : String ​
 +
 MSG_TXT : String ​ MSG_TXT : String ​
 +
 NAME_USER : Integer ​ NAME_USER : Integer ​
 +
 PLAY_SOUND : Integer PLAY_SOUND : Integer
  
Line 1006: Line 1038:
  
  
-===== Make the web client of players in area, playing the music in a loop. ===== +===== Web Client Music Loop. ===== 
  
 Variable: HS_MUSIC_URL : String Variable: HS_MUSIC_URL : String
features/housing/custom_scripts.txt · Last modified: 2023/11/30 21:03 by ItsABadger

phpBB Appliance - Powered by TurnKey Linux