I decided to make a teleport to an Evil temple, for evil players to worship evil gods and plan evil things with evil grins. Well after hours and hours and hours of... work. I came up with this lil gem of a Teleport. Its short, simple and easy to edit in your own effects. You may want to play with the delay timings to get the effects firing perfectly for your areas..
Elvin101 -
In order to make an "item" that you keep in your inventor and or equip, you have to add the script instruction to the "onactivateitem" in the "modual properties". There is no other way to put a custom script on an item.
What I am using this script on is a "placeable" like a Statue or a Rock or a Teleporter.
For example
I select Edit Copy on a Placeable statue, give it a name and its own tag.
go to the scripts tab and put this script on the OnUse area.
Then I place the statue in an area (AREA 1)
Now I create a Waypoint and give it a specail Tag
I place the waypoint in the area I want PC's to teleport to
(area 2)
I edit the script to put in that waypoints tag in the "GetWaypointByTag("YOUR_WP_TAG") section.
As far as putting the teleport on an item, I have never tried that..
I have never fooled around with the modual properites or setting up onactivateitem scripts, its just something I read on the forums..
hey u think u can show me how to do this on an item like a teleportation item like if i set a tag in the place u start an set something on an item to wen i use special power or w/e something like it brings me to the palce were i set the tag if u can plz reply
hey im not totaly new geeze i have made a succseful server so far but the teleporting +blocked+ jsut confuses me i just dono how to work it sometimes but ill try an folo yo directions
Posted by Magelord ( 170.12.xxx.xxx ) at 2004-07-14 14:01:00
Hours of Work.. LOL
Yes actually , since I have scripted... well...nothing, i had to look up all that +blocked+. How to define and apply effects, how to time things, how to do all of it.
Also, during my search, I came across a broken TP script that really helped out. But the TP part would not work, it took me about an hour to realize...
will never work...
then when i go it working the end effects would not fire..
so yeah..
2-3 hours of removing effects, redifining objects, all kinds of +blocked+ before i realized it was those 2 stupid lines that where killing it.
Now I do realize that i will never be as smart and wonderful as you are mr "bubber" and i am sure all your taleneted work to the community took less than minutes to complete, however i just wanted to say that I still Love You - *big kiss*
Add this script to the OnUse event in any item (like a p ortal or statue), or you can oput it as an action event in conversation (i think):)
Create a Waypoint and place it ion the area to TP to, remeber its tag and replace that with PL_ML_WPTP_RABB in my script here.
So Portal is one area, WP with that tag is in another area, now when PC clicks Portal, wham bam, you are in the next area, with neato effects..
Note - I did say "BASIC" so please be kind to this NOOB of a scripter. :p
I like this script because it easily defines how to add effects to a TP, even before and after, it also defines how delays work, allowing you to customize it to do "anything" you want effect wise... :)