Rivals of Aether

Rivals of Aether

Villager (Animal Crossing)
 This topic has been pinned, so it's probably important
FelixBlobDev  [developer] 30 Dec, 2022 @ 12:20pm
Pocket Compatibility Guide
Villager's NSpecial is Pocket, which can pocket projectiles and throw them back out. By default, this works with all projectiles.

In some cases though, Pocket might not work as expected depending on how the opponent's character functions, or Villager might be able to pocket a projectile/article that he shouldn't.

Additionally, you can also define the icon(s) on Villager's hud when specific projectiles are pocketed, either with your own custom ones or some built-in ones.

All this is completely optional, but if you're a workshop creator and you're interested in improving how Villager's Pocket works with your character, I've written a short guide here to help you!

Basics
First, there are the basic and important variables. These are usually put in hitbox_init under each projectile hitbox, but can also be managed as you please in hitbox_update.
  • Pocketable - If false the projectile can't be pocketed, and if true it is always pocketable. If this is missing, Villager can pocket the projectile.
  • Pocket_hsp - The horizontal speed applied when Villager throws out the projectile. Leaving this undefined makes Villager mimic the hsp the projectile had when he pocketed it.
  • Pocket_vsp - Same as above, but the vertical speed.

HUD variables
The variables for the hud icon when Villager pockets something. You can use your own custom icons, or a set of built-in ones.
  • Pocket_hud - The custom sprite used by Villager to show what he has pocketed. If set to -1, Villager will use his own generic built-in ones instead (useful if you don't want to make custom ones). Also, if this one is missing, then Villager will simply default to a question mark icon.
  • Pocket_hud_imageindex - The frame number to use for the pocket hud sprite. Remember that this starts at 0.
You can see a list of the basic built-in icons here.[i.imgur.com]

Other variables
A few other variables you may or may not find useful.
  • Pocketed - If the projectile is currently pocketed or not. If this variable is present, it'll be set to true when Villager pockets the item, and false when he throws it out. Useful for specific behavior (or disabling unintended ones) while the object is in his pocket.
  • PocketableByOwner - The player with this player number (1-4) won’t be able to Pocket the projectile again. Useful if you don't want Villager to be able to re-pocket a projectile as many times as he wants.
< >
Showing 1-6 of 6 comments
DonGT 2 Jan, 2023 @ 8:51am 
poopy
FelixBlobDev  [developer] 2 Jan, 2023 @ 8:53am 
broken, needs to instantly lose when pocket is used (also pratfall)

Originally posted by DonGT:
poopy
chrismrhach 17 Feb, 2023 @ 7:23pm 
how do i put an icon for my character i just want an icon i don't want a special script just an icon!
chrismrhach 18 Feb, 2023 @ 11:31am 
i just want to put an icon no fancy code just an icon how i do it?
FelixBlobDev  [developer] 18 Feb, 2023 @ 11:52am 
Originally posted by crismrhach:
i just want to put an icon no fancy code just an icon how i do it?
If you're talking about an icon for a projectile, then that is explained in the guide.
chrismrhach 26 Feb, 2023 @ 4:19pm 
Originally posted by FelixBlobDev:
Originally posted by crismrhach:
i just want to put an icon no fancy code just an icon how i do it?
If you're talking about an icon for a projectile, then that is explained in the guide.
Can you make a simple code for just icons like villagericon =DSPECIAL = 2 villagericon =
sprite_get("pocketicons");
< >
Showing 1-6 of 6 comments
Per page: 1530 50