• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Spell] How to make portal system

Status
Not open for further replies.
Level 2
Joined
Jul 31, 2012
Messages
14
Hi there .. i want to make a minimap like pudge wars but i'm confused how to make portal system, ehmm .. look at the picture first ..
SS.jpg


anyone help me?? pleasee help me to make portal system.. so unit can pass through the portal.. thanks in advance :ogre_haosis:
 
Level 3
Joined
Apr 4, 2006
Messages
33
like this?
if bloodmage uses flamestrike, a scout tower will be created at target point of ability being cast.
same with 2nd portal.
if a unit is ordered to target a portal (scout tower) within 500 range, it will instantly moved to the second portal.
creating a 3. portal destroys 1 and 2.

just for example


  • create portal
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Flame Strike
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • counter Less than 2
        • Then - Actions
          • -------- eg.: 2 portals --------
          • Unit - Create 1 Scout Tower for Neutral Passive at (Target point of ability being cast) facing Default building facing degrees
          • Set counter = (counter + 1)
          • Set portal[counter] = (Last created unit)
        • Else - Actions
          • -------- eg.: 3rd portal = kill 1 & 2 --------
          • Unit - Kill portal[1]
          • Unit - Kill portal[2]
          • Set counter = 0
      • Unit - Order (Casting unit) to Stop
  • move through portal
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Target unit of issued order) Equal to portal[1]
          • (Target unit of issued order) Equal to portal[2]
    • Actions
      • Set teleportation_range = 500.00
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target unit of issued order) Equal to portal[1]
        • Then - Actions
          • Unit Group - Pick every unit in (Units within teleportation_range of (Position of portal[1]) matching ((Matching unit) Equal to (Ordered unit))) and do (Actions)
            • Loop - Actions
              • Unit - Move (Ordered unit) instantly to (Position of portal[2])
        • Else - Actions
          • Unit Group - Pick every unit in (Units within teleportation_range of (Position of portal[2]) matching ((Matching unit) Equal to (Ordered unit))) and do (Actions)
            • Loop - Actions
              • Unit - Move (Ordered unit) instantly to (Position of portal[1])
      • Wait 0.01 seconds
      • Unit - Order (Ordered unit) to Stop
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Well, I guess you're GUI.

Create 4 regions. one under the portals, and one in front of the portals. Lets say you have PortalA and PortalB, use A unit enters Region event.

A unit enters Portal A Entrance
Move unit instantly to Center of PortalBExit

A unit enters Portal B Entrance
Move unit instantly to Center of PortalAExit

Entrance is Under the portals. Exit is in front of the portal.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
GUI is the graphic interface where you create Triggers.
Behind that graphic interface (Graphic User Interface) relies JASS, the language WC3 uses to compile all the triggers information.
 
Status
Not open for further replies.
Top