Hey guys, I'm trying to create a pretty simple pet system but I got stumped early on, I cant figure out why my triggers not working.
So first I'll explain what I'm trying to do.
At some point in my map you're able to purchase an Empty Cage that allows you to catch critters which can be summoned as pets. There will be multiple pet options but you can only have a single pet at one time.
There are two types of item: the Empty Cage, which has the Tame Beast dummy ability (Storm Bolt), and the Full Cages (eg. Turtle Cage, Lizard Cage etc) which are Spellbooks with 3 abilities: Summon Pet, Dismiss Pet and Release Pet.
When the Empty Cage is used on a critter I want to replace the empty cage with a full cage based on the units type, which I'll probably accomplish with If/Then/Else functions
So! Like I said I got stuck pretty early on.
Thanks very much for any help, and if anyone has any useful tips for the next triggers (Release, Dismiss, etc.) that'd be really handy too.
Thanks!
So first I'll explain what I'm trying to do.
At some point in my map you're able to purchase an Empty Cage that allows you to catch critters which can be summoned as pets. There will be multiple pet options but you can only have a single pet at one time.
There are two types of item: the Empty Cage, which has the Tame Beast dummy ability (Storm Bolt), and the Full Cages (eg. Turtle Cage, Lizard Cage etc) which are Spellbooks with 3 abilities: Summon Pet, Dismiss Pet and Release Pet.
When the Empty Cage is used on a critter I want to replace the empty cage with a full cage based on the units type, which I'll probably accomplish with If/Then/Else functions
So! Like I said I got stuck pretty early on.
- Unit finishes casting an ability
- Ability being cast equal to Tame Beast
- Action:
- Set variable PetSummoner equals Casting Unit
- If (All conditions are true) then do (Then Actions) else do (Else Actions)
- If Unit type of (Target unit of ability being cast) equal to Turtle
- Then - Actions
- Remove (Target unit of ability being cast) from the game
- Hero: Drop (Item carried by PetSummoner of type Empty Cage) from PetSummoner
- Remove Last Dropped Item
- Hero: Create Turtle Cage and give it to PetSummoner
- Else:
- Next cage type
Thanks very much for any help, and if anyone has any useful tips for the next triggers (Release, Dismiss, etc.) that'd be really handy too.
Thanks!