• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,219
  • 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