Difference between revisions of "Portals"

From ALFA
Jump to: navigation, search
(Analyze Portal=)
(Building Portals)
Line 11: Line 11:
  
 
=Building Portals=
 
=Building Portals=
string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION");
+
In order for the spell [[Analyze Portal]] to work correctly ingame, portals must be set up with the following variables.
string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND");
+
 
string sPortalCirc = GetLocalString(oPortal, "PORTAL_CIRCUMSTANCE");
+
 
string sPortalDirection = GetLocalString(oPortal, "PORTAL_DIRECTION");
+
PORTAL_LOCATION
string sPortalProps = GetLocalString(oPortal, "PORTAL_PROPERTIES");
+
PORTAL_COMMAND
string sPortalDest = GetLocalString(oPortal, "PORTAL_DESTINATION");
+
PORTAL_CIRCUMSTANCE
string sPortalFunc = GetLocalString(oPortal, "PORTAL_FUNCTIONALITY");
+
PORTAL_DIRECTION
string sPortalCompassDirection = GetCompassDirectionOfAngle(fAnglePortalFromCaster);
+
PORTAL_PROPERTIES
string sPortalDistance = GetDisplayableDistance(GetDistanceBetween(oCaster, oPortal));
+
PORTAL_DESTINATION
 +
PORTAL_FUNCTIONALITY

Revision as of 13:27, 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

In order for the spell Analyze Portal to work correctly ingame, portals must be set up with the following variables.


PORTAL_LOCATION PORTAL_COMMAND PORTAL_CIRCUMSTANCE PORTAL_DIRECTION PORTAL_PROPERTIES PORTAL_DESTINATION PORTAL_FUNCTIONALITY