• 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.

Open Rift need help!

Status
Not open for further replies.
Level 12
Joined
Nov 5, 2007
Messages
730
Hello everyone,

i am making an another spell that i need help with,its a 4-level channel-based spell.

It is supposed to channel for 4 seconds.Upon begining the channeling,two portals should be created,and their birth animations should be played.One at a specific region,facing 270 degrees,and an another one 200 range in front of the caster,facing the same angle as the caster.

When the channel is finished,the portals should start working - when a friendly unit enters a portal,itll appear at the other one.

Both portals should last for 10 seconds,then dissapear.

If anything happens to the caster while channeling,the portals should die.

Any help will be greatly appreciated.
 
make a channel based ability(starfall) damage and stuff to 0.00
casting time 4 sec.
duration 10 sec

  • Events
  • units starts the effect of an ability
  • Conditions
  • ability being cast equal to (starfall in this case)
  • Actions
  • Create 1 (make a portal first based on gateway) (portal) for triggering player at position of triggering unit
  • create 1 (portal) for triggering player at center of region(your region)
  • If than else action
  • if triggering unit dies
  • remove both units(make trigger for this that remove unit)
this is how i would probably do it, but wait for other ideas

HF -BR-
 
Level 12
Joined
Nov 5, 2007
Messages
730
That is a neat idea,but my problem is that every player on the map can use gateway.I only need allied units to pass through the portal.
 
Level 13
Joined
Mar 16, 2008
Messages
941
Hm on cast create those portals, and than I would use Handle Vars to attach each portal to the other one. Then create a trigger:
Totaly freehand, just want to show how :p

Code:
A unit comes in range of portal (added per Triggercomand)

Code:
Triggering Unit belongs to an ally of (Owner of (Portal))

To find the portal use
Code:
pick all units in range of (x, where x is the range you gave the original trigger) of unittype portal
set unit portal2 = GetHandleUnit(portal1, "portal2")
Move unit instantly to (position of portal2)

I hope you understand this ^^

Greets, Justify
 
Last edited:
Status
Not open for further replies.
Top