PDA

View Full Version : Problem


Mindtwistah
07-20-2007, 04:11 PM
Can someone tell me if there is any problem in these scripts:

void main() {
object oPC = GetFirstPC();
float fAngle = IntToFloat(Random(360));
float fDist = IntToFloat(Random(1001)) / 10.0;
location lRand = Location(GetPosition(oPC) + AngleToVector(fAngle) * fDist, GetFacing(oPC));
DelayCommand(0.5, AssignCommand(oPC, JumpToLocation(lRand)));
}



void main() {
object oPC = GetFirstPC();
float fAngle = IntToFloat(Random(360));
float fDist = IntToFloat(Random(101)) / 10.0;
location lRand = Location(GetPosition(oPC) + AngleToVector(fAngle) * fDist, GetFacing(oPC));
DelayCommand(0.5, AssignCommand(oPC, JumpToLocation(lRand)));
}

:
Or if there is any problem in this changes.ini file:

[Settings]
FileExists=1
WindowCaption=Mindtwistah's Teleporter 2000 Armbands
ConfirmMessage=N/A
LogLevel=3
InstallerMode=1
BackupFiles=1
PlaintextLog=0
LookupGameFolder=0
LookupGameNumber=2
SaveProcessedScripts=1


[TLKList]


[InstallList]
install_folder0=tslpatchdata


[2DAList]
Table0=spells.2da


[GFFList]
File0=mind_teleport.uti
File1=mind_telelong.uti


[CompileList]


[SSFList]


; ================================================== =================
[spells.2da]
AddRow0=spells_row_mindtwistah_teleporter_0
AddRow2=spells_row_mindtwistah_teleporter_long_0
[spells_row_mindtwistah_teleporter_0]
label=MINDTWISTAH_TELEPORTER
forcepoints=0
goodevil=-
usertype=4
guardian=0
consular=0
sentinel=0
inate=1
maxcr=3
category=0x1808
range=T
impactscript=k_sup_mind_teleport
conjtime=170
conjanim=hand
castanim=self
casttime=1330
catchtime=0
proj=0
itemimmunity=0
exclusion=0x00
requireitemmask=0x0000
forbiditemmask=0x0000
itemtargeting=1
hostilesetting=0
2DAMEMORY1=RowIndex
[mind_teleport.uti]
Comment=
PropertiesList\0\Subtype=2DAMEMORY1
two teleporter bands that takes you where you want
withing 100 meters and 10 meters
[spells_row_mindtwistah_teleporter_long_0]
label=MINDTWISTAH_TELEPORTER_LONG
forcepoints=0
goodevil=-
usertype=4
guardian=0
consular=0
sentinel=0
inate=1
maxcr=3
category=0x1808
range=T
impactscript=k_sup_mind_telelong
conjtime=170
conjanim=hand
castanim=self
casttime=1330
catchtime=0
proj=0
itemimmunity=0
exclusion=0x00
requireitemmask=0x0000
forbiditemmask=0x0000
itemtargeting=1
hostilesetting=0
2DAMEMORY2=RowIndex
[mind_telelong.uti]
PropertiesList\0\Subtype=2DAMEMORY2
[install_folder0]
Replace0=k_sup_mind_teleport.ncs
Replace1=k_sup_mind_telelong.ncs


As you might get I am making two teleporter armbands. But the problem is that when I activate them they don't teleport you. If someone sees an error, please post what the error is.

stoffe
07-20-2007, 04:41 PM
Can someone tell me if there is any problem in these scripts:
Or if there is any problem in this changes.ini file:

[InstallList]
install_folder0=tslpatchdata


You are installing the scripts into a folder called tslpatchdata in the KOTOR game folder. I assume this is meant to be override instead?

Mindtwistah
07-21-2007, 04:01 PM
Thank you very very... very much Stoffe.

Edit: Ouchh.. It still doesn't work :(