I'm trying to use the PRCSCR mechanics to add an item to warden's cache in Denerim. The script is set to trigger for area den02al_den_market which typically means the Denerim market. It executes, but here's where the trouble starts.
I want the item to be spawned in the den260_warden_cache area, not on the market proper. I tried the following:
location lSpawn = Location( GetObjectByTag("den260ar_warden_cache"), Vector( -0.747734, 20.8677, 0.0280043 ), -55.0714 );
CreateObject( OBJECT_TYPE_PLACEABLE, PRC_STORAGE_R, lSpawn );
this doesn't seem to work -- the item is spawned in a rather inconvenient spot of Denerim market instead (in area where the player is, i.e. den200ar_market )
To make things funnier, if the script is launched again (on re-entering the market) it detects properly the storage item was spawned. But if the player zones into the den260_warden_cache area the item is no longer detected -- i can manually trigger the script and spawn the item where it was supposed to be in the first place. Which to my understanding shouldn't be happening because these two areas form single zone and remain in memory together.
I was thinking of maybe using the "any area" workaround for PRCSCR and then checking the area tag for den260_warden_cache ... but another gotcha, because the warden_cache is technically in single area list with the den200ar_market, PRC doesn't trigger when zoning into the warden_cache.
Kind of stumped at this point, any suggestions how to resolve that would be very welcome.
Modifié par tmp7704, 20 mai 2010 - 04:46 .





Retour en haut






