Help - Search - Members - Calendar
Full Version: Position...
The Nexus Forums > Specific Games > Morrowind > Morrowind Plug-Ins > TES Construction Set
TDL_Guvie
How exactly does the player/npc->PositionCell, x, y, z, zrot, thing work? How would I make a person warp somewhere else after picking up a book. Or ther various objects. More importantly, are the co-ordinates at the bottom of the TES CS the co-ordinates i'm supposed to use?


-TDL Guvie
Serrieth
Most of that is dealing with scripting and such and such, use this scrip and fill in the rest to make it work.

QUOTE
Begin "Script Name"

Short Done*

if ( Done == 1)*
return*
endif*

if ( OnPCEquip == 1)
Player->Position ; or what ever that function is
Set Done to 1*
player->Removeitem, "Item ID" # ; the # = how many are being removed
endif


End


NOTE: Add this script to the object that you want the player to pick up and make him or her warp. Also Done is optional, Done only allows this to happen Once, so if you want it to happen over and over, you must have the Player->Remove item and remove the Done procedures, Just remove the lines with the * next to it, if you want to script to make the player warp everytime he or she picks up or equips that item.

This is a very simple script, if it does not work please let me know smile.gif
TDL_Guvie
Look man i'm not liiking for a tutorial, I just want to know how to set the Coordinates that the player will go to once they pick up the item. Thats all. Once I figure out where to locate the coordinates. wich i'm assuming are the ones at the bottom of the TES CS, I want to know how I should write them within the function.

Ex: player->PositionCell, 6789, 989, 88, 989, "Hla Oad"

-TDL Guvie
dunmer_jediknight
honestly you should look at the tutoral called morrowind scripting for dummies. It is even on this site I have the sixth edition ( accualy printed it out ... all 143 pages of it ) and all the questions you have asked are answered in that tutoral. Like I said I downloaded it and it has been extreamly helpful.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.