Flight Paths

Saiza

New Member
Reaction score
10
Yo !

I got a problem I hope someone is willing to help me with, well here it is;

I have flight paths in my RPG, basicly once I buy a ticket to a certain place a Gryphon Raider spawns with the Goblin Zeppeline load and unload skill, and then it should load the hero buying the item and fly with it to the destination and then unload it at the destination region. Heres triggers, but they dont work =/
I whonder if someone know a better way to do it;

Training Forest 1
Events
Unit - A unit Acquires an item
Conditions
(Item-type of (Item being manipulated)) Equal to Flight Ticket: Training Forest
Actions
Unit - Create 1 Gryphon for Player 1 (Red) at (Position of (Hero manipulating item)) facing (Position of Gryphon Aviary 0016 <gen>)
Unit - Order (Last created unit) to Load (Hero manipulating item)
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Unit - Order (Last created unit) to Move To (Center of Flightpath Burrins Expedition <gen>)


Training Forest 2
Events
Unit - A unit enters Flightpath Burrins Expedition <gen>
Conditions
(Unit-type of (Entering unit)) Equal to Gryphon
Actions
Unit Group - Pick every unit in (Units of type Gryphon) and do (Unit - Order (Picked unit) to Unload (Hero manipulating item))
Special Effect - Create a special effect at (Position of (Hero manipulating item)) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
Unit Group - Pick every unit in (Units of type Gryphon) and do (Unit - Remove (Picked unit) from the game)

Edit: How do I do so the trigger goes in to a code text?
 

Darkchaoself

What is this i dont even
Reaction score
106
Well, is the gryphon the same player as the hero using the item?

If there are more than 1 person, it should be

Code:
Unit - Create 1 Gryphon for owner of (Hero manipulating item) at (Position of (Hero manipulating item)) facing (Position of Gryphon Aviary 0016 <gen>)

And its [noparse]
Code:
[/noparse]
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
Code:
For this you click the # button in advanced text editor.

So the first trigger doesn't work?

Code:
Unit - Create 1 Gryphon for Player 1 (Red) at (Position of (Hero manipulating item)) facing (Position of Gryphon Aviary 0016 <gen>)
That's probably not the reason but you've tried to make it face the angle of where the aviary is, I'm not sure if you can do that, make it face the angle of the angle the aviary is facing.

And for you condition...
Code:
Conditions
    (Item-class of (Sold Item)) Equal to Flight Ticket: Training Forest
 (Item-type of (Sold Item)) Equal to Flight Ticket: Training Forest

Use one of those, it might only be one that works so try both, I've never used it before but meh.
 

MoonSlinger

I Love using Cheap Tricks... only Results matters
Reaction score
74
Somethings to note:

- Other then load/unload, the carrier still needs "Cargo" space to hold the unit.

- Unless its is a 1 player RPG, its better to create the transport for the player who "buys the ticket". From what i know, if the owner of the "carrier" and the owner of the unit is different, they need to share full control of each other before "Transporting" can work. To prevent user control during the flight, you can use locust ability for the "carrier" OR the following:
Cinematic - Disable user control for (All players matching ((Owner of (Triggering unit)) Equal to Matching Player))
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Flightpath Burrins Expedition <gen>) over XX seconds


If you time your flight correctly with XX seconds, will end up as making cinematic of the flight, do remember to enable control when you reach the destination.
 
A

Awestruck

Guest
yeah, maybe
Code:
item being manipulated
doesn't refer to the item being acquired in
Code:
A unit Acquires an item

i would use the
Code:
A unit sells an Item
like choppa is saying

although in my experience using "item-type" works when refering to items being sold.

EDIT:
MoonSlinger: instead of panning the camera he can lock it to the gryphon; and instead of timeing you can measure the distance and divide with the speed as: t=(t/d)/t
't' is time and 'd' is distance

this is done as so:
Code:
Wait ((distance between (position of Gryphon) and (destination)) / >speed of Gryphon<
the unit has to be moving in a straight line for this to be accurate (if it's flying it probably will be)
"destination" can be any point...
the speed of the gryphon (or whatever unit) can be found in the units object editor page in the category "movement", or you can get it with:
Code:
Unit - Movement Speed (Current)
 

Saiza

New Member
Reaction score
10
It's a 1 man RPG and I got locust on the zeppe, also the item is just laying on the ground now when the game starts for testing, so the ''a unit aquiers a item'' would work. Does anyone possibly know how to order a goblin zeppe to load and unload a unit in jass? (It's the Load Goblin Zeppe and Unload Air Transport or something it's using)
Code:
Yay ;)
 

Pigger

New Member
Reaction score
13
It could be locust that is screwing it up. Try taking that off of the zepplin and see what happens.
 

NapaHero

Back from the dead...
Reaction score
43
Locust don't screw up with load and unload.

This is the best one to work:

Somethings to note:

- Other then load/unload, the carrier still needs "Cargo" space to hold the unit.

- Unless its is a 1 player RPG, its better to create the transport for the player who "buys the ticket". From what i know, if the owner of the "carrier" and the owner of the unit is different, they need to share full control of each other before "Transporting" can work. To prevent user control during the flight, you can use locust ability for the "carrier" OR the following:
Cinematic - Disable user control for (All players matching ((Owner of (Triggering unit)) Equal to Matching Player))
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Flightpath Burrins Expedition <gen>) over XX seconds


If you time your flight correctly with XX seconds, will end up as making cinematic of the flight, do remember to enable control when you reach the destination.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top