I'm trying to make an item that gives the unit with the item the ability to cliff jump, but it's not working. Right now I have it set up so the item equips a jump behavior that I created.
I think the problem has to do with the unit's mover being set to ground, but I can't figure out how to change it to cliff jump through the item. I still want the unit to use the ground mover when the item isn't equipped so I can't just set the unit's mover to cliff jump. If I do that then the unit is able to cliff jump with the item equipped, but when the item isn't equipped the unit just gets stuck at walls because it doesn't have the ground mover.
Create an upgrade A which sets the mover to cliffjumper
Create an upgrade B which sets the mover back to ground.
Write a trigger that sets upgrade A level to 1, B to level 0 when item is equipped
Write a trigger that sets upgrade B level to 1, A to level 0 when item is unequipped
I created the upgrade and it works, but I can't figure out the trigger. What's the event or condition that I would need to know when an item is equipped?
Create an upgrade A which sets the mover to cliffjumper
Create an upgrade B which sets the mover back to ground.
Write a trigger that sets upgrade A level to 1, B to level 0 when item is equipped
Write a trigger that sets upgrade B level to 1, A to level 0 when item is unequipped
I'm trying to do something similar and using a validator as the trigger for my behavior. However, how do you create an upgrade that changes the mover?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to make an item that gives the unit with the item the ability to cliff jump, but it's not working. Right now I have it set up so the item equips a jump behavior that I created.
I think the problem has to do with the unit's mover being set to ground, but I can't figure out how to change it to cliff jump through the item. I still want the unit to use the ground mover when the item isn't equipped so I can't just set the unit's mover to cliff jump. If I do that then the unit is able to cliff jump with the item equipped, but when the item isn't equipped the unit just gets stuck at walls because it doesn't have the ground mover.
I think there's a mover specifically for cliff jumping (as in Reaper) but I know the Colossus mover works for sliding up or down cliffs at the least.
If you can't have an item set a mover, you might look at triggers that could set a unit's mover if it has an item.
@devilesk: Go
Create an upgrade A which sets the mover to cliffjumper
Create an upgrade B which sets the mover back to ground.
Write a trigger that sets upgrade A level to 1, B to level 0 when item is equipped
Write a trigger that sets upgrade B level to 1, A to level 0 when item is unequipped
I created the upgrade and it works, but I can't figure out the trigger. What's the event or condition that I would need to know when an item is equipped?
I'm trying to do something similar and using a validator as the trigger for my behavior. However, how do you create an upgrade that changes the mover?