How to make teleport in other location [message #52844] |
Sun, 19 July 2009 08:22 |
Torionel
Messages: 71 Registered: March 2009
|
|
|
|
I make script with http://fabletlcmod.com/wiki/doku.php?id=scripting:d.i.y._tel eporter this article.
I need teleport (haunted house cellar to creature hub).
I paste it in creature_hub.tng:
Toggle Spoiler
NewThing Marker;
Player 4;
UID 1844674167311235794326976;
DefinitionType "GAZE_OUT_OF_BUILDING_MARKER";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.00000;
ObjectScale 1.00000;
StartCTCPhysicsStandard;
PositionX 1728.00000;
PositionY 3040.00000;
PositionZ 40.00000;
RHSetForwardX 0.00000;
RHSetForwardY 1.00000;
RHSetForwardZ 0.00000;
RHSetUpX 0.00000;
RHSetUpY 0.00000;
RHSetUpZ 1.00000;
EndCTCPhysicsStandard;
StartCTCEditor;
EndCTCEditor;
StartCTCVillageMember;
VillageUID 197244689441620123;
EndCTCVillageMember;
Health 1.0;
EndThing;
...and this to HauntedHouseCellar.tng:
Toggle Spoiler
NewThing Object;
Player 4;
UID 1844674149173898138318821;
DefinitionType "OBJECT_BLOCKING_DOOR";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.00000;
ObjectScale 1.00000;
CreateTC "CTCActionUseScriptedHook";
StartCTCPhysicsStandard;
PositionX 14.69092;
PositionY 39.37646;
PositionZ 30.24490;
RHSetForwardX -0.00876;
RHSetForwardY 0.97720;
RHSetForwardZ 0.21216;
RHSetUpX -0.04125;
RHSetUpY 0.00000;
RHSetUpZ 0.99915;
EndCTCPhysicsStandard;
StartCTCActionUseScriptedHook;
Usable TRUE;
ReversedOnMiniMap FALSE;
HiddenOnMiniMap FALSE;
VersionNumber 1;
ForceConfirmation FALSE;
TeleportToRegionEntrance TRUE;
EntranceConnectedToUID 1844674167311235794326976;
CameraTrackUID 0;
SoundName "";
AnimationName "";
ReplacementObject 0;
EndCTCActionUseScriptedHook;
EndThing;
What have I made incorrectly?
|
|
|
|
|
|
|
|
|
Re: How to make teleport in other location [message #52863 is a reply to message #52859] |
Sun, 19 July 2009 16:02 |
jwc2200
Messages: 845 Registered: March 2008 Location: Texas
|
Administrator
|
|
|
OldBoy, do you mean any region, or any set of coordinates in the region?
When I made a teleporter to Hook Coast using the marker method, it took the hero to the cullis gate. Can it be made to take him to the lighthouse, for instance?
I may be wrong, but I think his question is, can he get to a certain point in a region, not just to the entrance point. The link you posted is the same one in the first post, and the one I used to learn to make teleporters, it doesn't mention specific points in a region, just the region.
Recolor Compilation #1
Recolor Compilation #2
Make Back-Ups
|
|
|
Re: How to make teleport in other location [message #52864 is a reply to message #52863] |
Sun, 19 July 2009 16:10 |
|
As stated above; you can teleport anywhere you like. Read the whole wikipage on teleporters.
Specially the second part, after the blahblah about predefined uid's:
Quote: |
Telporting to an area that does not have a predefined UID
You can teleport to anything in the game using the following method.
First you’ll need something to use as a telporter (door, object, etc) and something to act as its destination.
(I usually use markers for this purpose).
Getting coordinates
Open up FinalAlbion.wld in notepad and find the map you’ll be teleporting from.
Example:
NewMap 1;
MapX 3232;
MapY 3488;
LevelName "FinalAlbion\LookoutPoint.lev";
This will be your starting position. Now find the map you want to teleport to.
Example:
NewMap 326;
MapX 4736;
MapY 5184;
LevelName "creature_hub.lev";
Now take the x coord of the destination and subtract the starting maps x coord from it: (Creature Hub) 4736 - 3232 (LookoutPoint)
Then do the same with the Y coord: 5184 - 3488
Using the coordinates
Enter the values you got earlier into your Marker or whatever thing you are using as the destination of your teleporter.
PositionX 1504.00;
PositionY 1696.00;
It should now look something like this:
NewThing Marker;
Player 4;
UID 1844674187468630005444448;
DefinitionType "GAZE_OUT_OF_BUILDING_MARKER";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 1504.00;
PositionY 1696.00;
PositionZ 12.32;
RHSetForwardX 0.927178;
RHSetForwardY -0.374605;
RHSetForwardZ 0.0;
RHSetUpX 0.000342;
RHSetUpY 0.000847;
RHSetUpZ 0.999994;
EndCTCPhysicsStandard;
StartCTCEditor;
EndCTCEditor;
StartCTCVillageMember;
VillageUID 197244689441620123;
EndCTCVillageMember;
Health 1.0;
EndThing;
Now set the EntranceConnectedToUID of your teleporter object to the UID of your destination object.
Example:
NewThing Object;
Player 4;
UID 36363632222229999777;
DefinitionType "OBJECT_OK_GARGOYLE_FEMALE_02";
CreateTC "CTCActionUseScriptedHook";
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
StartCTCPhysicsStandard;
PositionX 126.44458;
PositionY 75.484619;
PositionZ 30.163687;
RHSetForwardX -0.788017;
RHSetForwardY -0.615644;
RHSetForwardZ 0.0;
RHSetUpX 0.000301;
RHSetUpY -0.000385;
RHSetUpZ 0.999994;
EndCTCPhysicsStandard;
StartCTCEditor;
EndCTCEditor;
StartCTCActionUseScriptedHook;
Usable TRUE;
ReversedOnMiniMap FALSE;
HiddenOnMiniMap TRUE;
VersionNumber 1;
ForceConfirmation FALSE;
TeleportToRegionEntrance TRUE;
EntranceConnectedToUID 1844674187468630005444448;
SoundName "";
AnimationName "";
ReplacementObject 0;
EndCTCActionUseScriptedHook;
Health 1.0;
EndThing;
|
[edit]
there's even a calculator for it here.
this is not an exit.
[Updated on: Sun, 19 July 2009 16:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: How to make teleport in other location [message #52892 is a reply to message #52844] |
Mon, 20 July 2009 04:45 |
Torionel
Messages: 71 Registered: March 2009
|
|
|
|
TELEPORTER (in HauntedHouseCellar.tng)
Toggle Spoiler
NewThing Object;
Player 4;
UID 1844674149173898138318821;
DefinitionType "OBJECT_BS_GROG_BOTTLE_WHISKY_01";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.00000;
ObjectScale 1.00000;
CreateTC "CTCActionUseScriptedHook";
StartCTCPhysicsStandard;
PositionX 13.61230;
PositionY 36.58423;
PositionZ 30.31459;
RHSetForwardX 0.00000;
RHSetForwardY 1.00000;
RHSetForwardZ 0.00000;
RHSetUpX -0.04031;
RHSetUpY -0.21234;
RHSetUpZ 0.97636;
EndCTCPhysicsStandard;
StartCTCActionUseScriptedHook;
Usable TRUE;
ReversedOnMiniMap FALSE;
HiddenOnMiniMap TRUE;
VersionNumber 1;
ForceConfirmation FALSE;
TeleportToRegionEntrance TRUE;
EntranceConnectedToUID 1844674167311235794326976;
CameraTrackUID 0;
SoundName "";
AnimationName "";
ReplacementObject 0;
EndCTCActionUseScriptedHook;
EndThing;
MARKER (in HauntedHouseCellar too)
Toggle Spoiler
NewThing Marker;
Player 4;
UID 1844674167311235794326976;
DefinitionType "GAZE_OUT_OF_BUILDING_MARKER";
ScriptName NULL;
ScriptData "NULL";
ThingGamePersistent FALSE;
ThingLevelPersistent FALSE;
Health 1.0;
ObjectScale 1.00000;
StartCTCPhysicsStandard;
PositionX 1728.00000;
PositionY 3040.00000;
PositionZ 40.00000;
RHSetForwardX 0.00000;
RHSetForwardY 1.00000;
RHSetForwardZ 0.00000;
RHSetUpX 0.00000;
RHSetUpY 0.00000;
RHSetUpZ 1.00000;
EndCTCPhysicsStandard;
StartCTCVillageMember;
VillageUID 197244689441620123;
EndCTCVillageMember;
EndThing;
|
|
|
Re: How to make teleport in other location [message #52893 is a reply to message #52886] |
Mon, 20 July 2009 05:13 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
You're jumping from place to place.
You first said that you crash when going to creature hub.Torionel wrote on Mon, 20 July 2009 04:52 | game crashed when I teleport to creature hub.
| See? But now you say HauntedHouseCellar. And I see you're using ChocolateBox now.
And before you posted those scripts, you posted two different tngs in their entirety. You're asking me to play pin the solution on the problem but you keep changing the problem. Each problem needs to be described.
How does a teleporter in HauntedHouseCellar affect creature hub? It doesn't. What's the problem in HauntedHouseCellar? Does it crash too? You're using CBox, if it crashes, what steps were made in CBox to produce the scripts?
Screw it, I'm out.
[Updated on: Mon, 20 July 2009 05:13] Report message to a moderator
|
|
|
|
|
|
|
Re: How to make teleport in other location [message #52912 is a reply to message #52904] |
Mon, 20 July 2009 12:10 |
Torionel
Messages: 71 Registered: March 2009
|
|
|
|
jwc2200 wrote on Mon, 20 July 2009 20:03 | I see what you're saying. I see a problem with your teleporter script too,
ScriptName NULL; should not be there.
There may be more wrong, as your script is alot different from one that I have that goes to Hook Coast. That may not matter as it is just the same stuff in different places.
Try getting rid of the ScriptName and let me know if it still did not work.
|
I was mistaken! It work fine! I hope it will work for all...
|
|
|
|
|
|
|
|