You must set the ad_network_ads.txt file to be writable (check file name as well).
GetObjectByTag problem [Archive] - Thieves-Guild.Net - Your Portal to everything Neverwinter!

PDA

View Full Version : GetObjectByTag problem


SwedishElk
04.15.08, 13:14
Got a wierd problem.

Got a lever taged Lvl1_Levr_01
Got a door taged Lvl1_Door_01
Got a floorplate taged Lvl1_Plat_01

In script I get the door associated with the lever by

string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);

object oDoor = GetObjectByTag(sLvl + "_Door_" + sNumber);

Works perfect.

But!

string sLvl = GetSubString(GetTag(OBJEC T_SELF), 0, 4);
string sNumber = GetSubString(GetTag(OBJEC T_SELF), 10, 2);

object oPlate = GetObjectByTag(sLvl + "_Plat_" + sNumber);

Does not work, there I have to hardcode the tag, wich sucks of course.

The floor plate is just a normal placeable. And it finds it if I hardcode the tag!?

Any ideas?

Epirote
04.15.08, 13:42
Hello and welcome to the forums. ::)

Hang in there, I hope someone more knowledgeable than me will show up and present a solution. This whole scripting stuff is just gibberish to me. :D

SwedishElk
04.16.08, 16:09
Thank you. And I really enjoy this place, very nice look and feel.

I solved it today... And I should stuck my self in a closet and shame. :) The trigger was called _01 at the end, it was a blueprint. Here I have been trying every possible solution, and didn't even consider checking the triggers tag. :ROFL:

Walks to the closet... (later friends...) :o

kgambit
04.16.08, 16:14
LOL

It's called a Homer Simpson moment. We all have them. ;)

Glad you enjoy the site. There's almost always something being added - sometimes a small tweak here and there, sometimes something larger. :D