Difference between revisions of "Portals"

From ALFA
Jump to: navigation, search
(Created page with "string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION"); string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND"); string sPortalCirc = GetLocalStri...")
 
(Building IC Portals)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
string sPortalLocation = GetLocalString(oPortal, "PORTAL_LOCATION");
+
=Building IC Portals=
string sPortalCommand = GetLocalString(oPortal, "PORTAL_COMMAND");
+
Not to be confused with Server Portals: [[Building Portals]]
string sPortalCirc = GetLocalString(oPortal, "PORTAL_CIRCUMSTANCE");
+
 
string sPortalDirection = GetLocalString(oPortal, "PORTAL_DIRECTION");
+
An IC portal can be a placeable, a trigger, or a door. In order for the spell [[Analyze Portal]] to work correctly ingame, portals must be set up with the following properties:
string sPortalProps = GetLocalString(oPortal, "PORTAL_PROPERTIES");
+
 
string sPortalDest = GetLocalString(oPortal, "PORTAL_DESTINATION");
+
 
string sPortalFunc = GetLocalString(oPortal, "PORTAL_FUNCTIONALITY");
+
*'''Tag''' -- The tag must start with the alfa_portal prefix: "alfa_portal_". The rest of the tag can be whatever you want.
string sPortalCompassDirection = GetCompassDirectionOfAngle(fAnglePortalFromCaster);
+
 
string sPortalDistance = GetDisplayableDistance(GetDistanceBetween(oCaster, oPortal));
+
*'''PORTAL_LOCATION''' (string) -- A description of the area where the portal is located.
 +
*'''PORTAL_COMMAND''' (string) -- Any key or command needed to activate the portal
 +
*'''PORTAL_CIRCUMSTANCE''' (string) -- Any special circumstances governing the portal's use (such as specific times when the portal can be activated)
 +
*'''PORTAL_DIRECTION''' (string) -- Whether the portal is one-way or two-way.
 +
*'''PORTAL_PROPERTIES''' (string) -- Any unusual properties
 +
*'''PORTAL_DESTINATION''' (string) -- A description of the immediate area where the portal leads
 +
*'''PORTAL_FUNCTIONALITY''' (string) -- Whether the portal is functioning correctly

Latest revision as of 13:37, 1 February 2023

Building IC Portals

Not to be confused with Server Portals: Building Portals

An IC portal can be a placeable, a trigger, or a door. In order for the spell Analyze Portal to work correctly ingame, portals must be set up with the following properties:


  • Tag -- The tag must start with the alfa_portal prefix: "alfa_portal_". The rest of the tag can be whatever you want.
  • PORTAL_LOCATION (string) -- A description of the area where the portal is located.
  • PORTAL_COMMAND (string) -- Any key or command needed to activate the portal
  • PORTAL_CIRCUMSTANCE (string) -- Any special circumstances governing the portal's use (such as specific times when the portal can be activated)
  • PORTAL_DIRECTION (string) -- Whether the portal is one-way or two-way.
  • PORTAL_PROPERTIES (string) -- Any unusual properties
  • PORTAL_DESTINATION (string) -- A description of the immediate area where the portal leads
  • PORTAL_FUNCTIONALITY (string) -- Whether the portal is functioning correctly