• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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.
 
Level 37
Joined
Mar 5, 2008
Messages
3,887
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