• 🏆 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!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

[Spell] How to build a portal system?

Status
Not open for further replies.
Level 3
Joined
Jul 22, 2011
Messages
37
The basic idea are 2 abilites that will create a blue and a orange portal.
As far as i can image; this shouldn't be too hard. We have a teleportation system in WC3. So we just need an ability that will instantly create one of those portals(passive building) from original WC3 (just change the model of course).
I got an idea but I don't know if it'd work.
Any suggestions are appreciated. Thanks in advance.
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,181
  • teleport
  • Events
  • Unit - A unit Finishes casting an ability
  • Conditions
  • Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Ability being cast) Equal to your spell
      • (Casting unit) Equal to your unit
    • Then - Actions
      • Unit - Move (casting unit) instantly to (Center of (your region))
    • Else - Actions
like that?
 
Last edited:
Level 12
Joined
Feb 22, 2010
Messages
1,115
I love seperate triggers and leaks, hurray simplicity :ogre_haosis:

  • Red Portal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Red Portal
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • RedPortal Equal to No unit
        • Then - Actions
          • Unit - Create 1 Red Portal for (Triggering player) at (Target point of ability being cast) facing Default building facing degrees
          • Trigger - Add to Enter Red Portal <gen> the event (Unit - A unit comes within 40.00 of (Last created unit))
          • Set RedPortal = (Last created unit)
        • Else - Actions
          • Unit - Move RedPortal instantly to (Target point of ability being cast)
  • Blue Portal
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blue Portal
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • BluePortal Equal to No unit
        • Then - Actions
          • Unit - Create 1 Blue Portal for (Triggering player) at (Target point of ability being cast) facing Default building facing degrees
          • Trigger - Add to Enter Blue Portal <gen> the event (Unit - A unit comes within 40.00 of (Last created unit))
          • Set BluePortal = (Last created unit)
        • Else - Actions
          • Unit - Move BluePortal instantly to (Target point of ability being cast)
  • Enter Red Portal
    • Events
    • Conditions
      • BluePortal Not equal to No unit
    • Actions
      • Unit - Move (Triggering unit) instantly to (Position of BluePortal)
  • Enter Blue Portal
    • Events
    • Conditions
      • RedPortal Not equal to No unit
    • Actions
      • Unit - Move (Triggering unit) instantly to (Position of RedPortal)
You may need some extra checks to prevent a portal inside another portal.
 
Status
Not open for further replies.
Top