The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ITEM] Random Teleportation Gate
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #1
[ITEM] Random Teleportation Gate
Hello everyone,

The script I'm about to share is of a gate that allows you to pick up to 16 different locations and choose how many times you want those same locations to be "used".

Players whom walk through the gate will be randomly teleported to one of the available locations, if there is still any.

This is how the gate works:

Double-clicking the gate will prompt this menu for PLEVEL's > 1:

[Image: image.jpg]

Single-clicking a blue button behind a Location Number will ask you to target the desired Location (Must be the ground) to be stored in the gate tags.

In the "#" column you must enter the maximum amount of times you want the respective Location to be used. If you don't want to limit the gate uses, then you don't need to enter anything in this column, you just need to check the "Unlimited Uses" box. If you just don't want to limit one single location for example but limit others, then you can just enter a number like 999 in that location.

In the "##" column will appear the amount of times the respective location has been already used.

Clicking "Reset Gate" will reset the gate in order to be used again by players (In case you want to restart it because all locations have already been used for example).

Clicking "Restore Defaults" will clean up every Location and other kind of settings, working the same as if you added a totally new gate.

Clicking "Apply Changes" will apply the current settings as well as reset the gate for use.

For the gate to work properly you don't need to enter every location, nor you need to enter them by any order. This means that you can just select Location 2 and 13 for example and leave everything else empty that the gate will still be working as intended.

Lets see an example:

[Image: image.jpg]

As you can see in the above picture I've picked two locations (3 and 6) and set each one of them to be used a maximum of 4 times ("#" column).

Since the Location 3 has already been used 3 times and the Location 6 has already been used 2 times and the "Unlimited Uses" box is not checked, the gate will still be available for use 3 more times: One for Location 3 and Two for Location 6. After that players won't be able to walk through it anymore. By then, I can just click "Reset Gate" and players will be able to walk through it again for another 8 times (4 to Location 3, 4 to Location 6).

If I check the "Unlimited Uses" box players will be able to walk through the gate forever and be teleported to one of the two locations, randomly.

The DIALOG currently has only 2 pages (16 locations) but you are free to add more pages following the same script logic and it will still work just fine.

You can also adapt the script to your needs, stoning players after being teleported for example, or shouting some sort of message, or add or remove an item player has, anything.

The basics of this script is the random teleportation with a lot of possibilities, everything else is up to you. As for myself, I found it useful while hosting random teams events. Just set 2 Locations (One for each team side if you want to have 2 teams), set the maximum amount of times you want each location to be used to half the players that are gonna use the gate (So the teams are even) and just let the players walk through it.

Hope I was clear enough explaining it.


Attached File(s)
.scp  p_randomizer_gate.scp (Size: 9.64 KB / Downloads: 40)
(This post was last modified: 08-29-2015 03:30 AM by pointhz.)
08-29-2015 03:24 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 3 users Like pointhz's post
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: [ITEM] Random Teleportation Gate
You should publish these in downloads. That way you get your own "section" and it keeps all your scripts together Wink

[Image: 2nis46r.jpg]
08-30-2015 11:17 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #3
RE: [ITEM] Random Teleportation Gate
How does the download section exactly work? It looks like a bit of a mess.

Anyway, isnt that section complementary to this one? Isnt it ok to post in here, explain the scripts and stuff like that ,and then also upload them there?
(This post was last modified: 08-31-2015 04:25 AM by pointhz.)
08-31-2015 12:31 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: [ITEM] Random Teleportation Gate
I tend to put them in there, and then add a link to there when i post in the forums.
Simply go to the downloads section and scripts, then scroll down you will see "my file manager" under the categories menu.

It's self explanatory after that

[Image: 2nis46r.jpg]
09-01-2015 01:34 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
gaddarkhalin
Apprentice
*

Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Sep 2015
Reputation: 0



Post: #5
RE: [ITEM] Random Teleportation Gate
scp beautiful hand health
10-25-2015 09:23 PM
Find all posts by this user Like Post Quote this message in a reply
Lincoln
Apprentice
*

Posts: 11
Likes Given: 13
Likes Received: 0 in 0 posts
Joined: Apr 2016
Reputation: 0



Post: #6
RE: [ITEM] Random Teleportation Gate
Love your scripts, thanks PointHZ
10-27-2016 01:33 AM
Find all posts by this user Like Post Quote this message in a reply
ralentra
Apprentice
*

Posts: 6
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Jan 2016
Reputation: 0



Post: #7
RE: [ITEM] Random Teleportation Gate
I can't download )(
10-23-2017 05:45 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #8
RE: [ITEM] Random Teleportation Gate
I think you need a certain amount of posts to download stuff. I uploaded it for you

http://www.filedropper.com/prandomizergate
10-23-2017 09:34 AM
Find all posts by this user Like Post Quote this message in a reply
chrono
Apprentice
*

Posts: 11
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: Sep 2021
Reputation: 0



Post: #9
RE: [ITEM] Random Teleportation Gate
how can i download this one?
01-18-2022 07:01 PM
Find all posts by this user Like Post Quote this message in a reply
golfin
Banned

Posts: 213
Likes Given: 2
Likes Received: 32 in 28 posts
Joined: Nov 2017

Eranova

Post: #10
RE: [ITEM] Random Teleportation Gate
Download: https://forum.spherecommunity.net/attach...hp?aid=302

But otherwise, this script can normally be downloaded from the attachment from the first post.
01-19-2022 04:46 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)