|
Post by broham2 on Apr 15, 2009 9:23:41 GMT -5
Let me start by saying I know nothing about scripting, but I am curious…
Is it possible to script an item that only works within certain cells of the PW? For example, an item that only works within a specific city or an item that only works when in cells containing the main road?
|
|
|
Post by luna on Apr 15, 2009 12:12:12 GMT -5
I think so.
|
|
|
Post by Electrocutor on Apr 20, 2009 7:35:17 GMT -5
Yes, but you would have to define where the 'main road' is... It is, after all, not a perfect straight line.
|
|
|
Post by broham2 on Apr 21, 2009 13:25:07 GMT -5
I meant the main cells containing the tradeway... and the Lion's way. The Wolves, Gnolls, Ogres, Goblins cells specifically.
My question was centered around a few ideas, one being an item that allowed the Flaming Fist characters the ability to summon a fighter that can be used as a patrolling partner within the cells containing the road they patrol. Or an item that allows the fist to cast paralyze or hold person while in town to simulate guards snatching the person they are after... things of that nature.
|
|
|
Post by loudent2 on Apr 24, 2009 13:37:46 GMT -5
Not sure what you mean by "cells" but, yes, it is possible to restrict the use of an item to a defined geographic subset of an area (or the whole area for that matter) or, more technically, it's possible to restrict the "effect" of item usage to said area and only if the effect is a scripted one and not one of the built in properties (unless you intend to modify them)
You just do the requisite checking on the on activate event script. Possible solutiosn include a waypoint distance check (creates a circular valid area) or a generic trigger (for irregular areas) or just a area waypoint check (for area wide usage)
|
|
|
Post by c2k on Apr 26, 2009 15:38:00 GMT -5
You can put variables on those areas and code the item activation to only work if the area variable is met.
|
|