Difference between revisions of "Portals"
(Created page with "string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION"); string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND"); string sPortalCirc = GetLocalStri...") |
|||
Line 1: | Line 1: | ||
+ | =Analyze Portal== | ||
+ | |||
+ | The Caster can tell if a 20 foot sphere contains a magic portal. After the first round, Caster is given a caster level check (d20 + CL) each round, for up to another 6 rounds, to learn information about the portal. Failing any caster level check ends the spell. Properties of the portal are discovered in this order: | ||
+ | |||
+ | *'''Portal Command'''* -- Any key or command needed to activate the portal | ||
+ | *'''Portal Circumstances'''* -- Any special circumstances governing the portal's use (such as specific times when the portal can be activated) | ||
+ | *'''Portal Direction'''* Whether the portal is one-way or two-way | ||
+ | *'''Portal Properties'''* -- Any unusual properties | ||
+ | *'''Portal Destination'''* -- A description of the immediate area where the portal leads | ||
+ | *'''Portal Functionality'''* -- Whether the portal is functioning properly | ||
+ | |||
+ | =Building Portals= | ||
string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION"); | string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION"); | ||
− | + | string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND"); | |
− | + | string sPortalCirc = GetLocalString(oPortal, "PORTAL_CIRCUMSTANCE"); | |
− | + | string sPortalDirection = GetLocalString(oPortal, "PORTAL_DIRECTION"); | |
− | + | string sPortalProps = GetLocalString(oPortal, "PORTAL_PROPERTIES"); | |
− | + | string sPortalDest = GetLocalString(oPortal, "PORTAL_DESTINATION"); | |
− | + | string sPortalFunc = GetLocalString(oPortal, "PORTAL_FUNCTIONALITY"); | |
− | + | string sPortalCompassDirection = GetCompassDirectionOfAngle(fAnglePortalFromCaster); | |
− | + | string sPortalDistance = GetDisplayableDistance(GetDistanceBetween(oCaster, oPortal)); |
Revision as of 13:23, 1 February 2023
Analyze Portal=
The Caster can tell if a 20 foot sphere contains a magic portal. After the first round, Caster is given a caster level check (d20 + CL) each round, for up to another 6 rounds, to learn information about the portal. Failing any caster level check ends the spell. Properties of the portal are discovered in this order:
- Portal Command* -- Any key or command needed to activate the portal
- Portal Circumstances* -- Any special circumstances governing the portal's use (such as specific times when the portal can be activated)
- Portal Direction* Whether the portal is one-way or two-way
- Portal Properties* -- Any unusual properties
- Portal Destination* -- A description of the immediate area where the portal leads
- Portal Functionality* -- Whether the portal is functioning properly
Building Portals
string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION"); string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND"); string sPortalCirc = GetLocalString(oPortal, "PORTAL_CIRCUMSTANCE"); string sPortalDirection = GetLocalString(oPortal, "PORTAL_DIRECTION"); string sPortalProps = GetLocalString(oPortal, "PORTAL_PROPERTIES"); string sPortalDest = GetLocalString(oPortal, "PORTAL_DESTINATION"); string sPortalFunc = GetLocalString(oPortal, "PORTAL_FUNCTIONALITY"); string sPortalCompassDirection = GetCompassDirectionOfAngle(fAnglePortalFromCaster); string sPortalDistance = GetDisplayableDistance(GetDistanceBetween(oCaster, oPortal));