Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Lycan ABS - Weapon display
#3
If you're messing with the regular one (not the paperdoll system)...
Let's assume you have a character. Let's name him... Fred. Why not? I used Freddy Kruger's first movie music in the demo. Laughing

Now, you normally have a regular character like 001-Fighter_01.png for your character. Let's give your guy a new character... 'Freddy.png'. It's nothing special. We could use '001-Fighter_01', but that's a mouthful. Easier to just say Freddy.png.

No, it didn't need to be FreddyABS.png. I just used BillABS in the demo.


Now, the configuration system has this in the defaults:
Code:
# Animation Suffixes ----------------------------------------------------------
  SUFFIX_CENTER     = "!"                   # Used for center justified animations
  SUFFIX_MELEE      = "_melee"              # Used for melee attack animations
  SUFFIX_MISSILE    = "_range"              # Used for missile attack animations
and
Code:
# Melee Weapons
#               ID     Range  Mash   Delay     FStart    Kick    Jump    Suffix
# ================     =====  =====  =======   =======   =====   ====    =======            
  MELEE_WEAPONS[34]  = [   2,     3,       3,        1,    nil,   25,   "_sword"]
  MELEE_WEAPONS[5]   = [   2,     1,       3,      nil,    nil,   25,   "_sword"]

Now the 'SUFFIX_MELEE' value is set to '_melee'. That means that any melee attack performed will show with a character drawn with '_melee' tacked on to the end. So if you have a "Freddy_melee.png" made up, it will show for any melee attack performed by Fred. That is... it will show unless you set up special weapons in the MELEE_WEAPONS array.

In the MELEE_WEAPONS array above, you have two weapons defined... Weapons #5 and #34. In these cases, it will use a characterset with the '_sword' suffix tacked to the end.

So you could have defined for your Fred character:
"Freddy.png" for his characterset
"Freddy_melee.png" for any melee attack with no specific melee weapons defined.
"Freddy_sword.png" to be used if a weapon is defined in the MELEE_WEAPONS array.
The filename for the attacks and actions is always based upon the name of the characterset in use (Bill.png -- Bill_melee.png // Bob.png -- Bob_club.png)

System safeguard: If a graphic file is not valid, it will not crash the system. A safeguard in Lycan is that it skips loading missing files rather than crashing as it normally would.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }


Messages In This Thread
Lycan ABS - Weapon display - by Jetboy - 07-13-2015, 06:02 AM
RE: Lycan ABS - Weapon display - by JayRay - 07-14-2015, 02:45 AM
RE: Lycan ABS - Weapon display - by DerVVulfman - 07-14-2015, 03:30 AM
RE: Lycan ABS - Weapon display - by Jetboy - 07-14-2015, 04:52 AM
RE: Lycan ABS - Weapon display - by DerVVulfman - 07-14-2015, 06:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Display some uncommon values Melana 6 7,628 08-15-2017, 05:38 PM
Last Post: Melana
   Multi Attack & Combo Display Keeroh 10 12,345 05-15-2017, 06:39 PM
Last Post: DerVVulfman
   Display State Ranks in Status Screen Melana 3 6,763 04-02-2017, 12:46 AM
Last Post: marketing small business ideas
   Lycan abs - Making enemies flee on sight ChickenFetus 1 3,982 06-07-2016, 04:39 AM
Last Post: DerVVulfman
  Icon Display 1.0 scripts makes events impossible to go to events, which are passable Djigit 0 3,609 01-03-2015, 09:11 PM
Last Post: Djigit
   Ahzoh's Lycan ABS On/Off queries Ahzoh 9 11,818 12-22-2014, 04:10 AM
Last Post: DerVVulfman
   Lycan ABS + GPlats? swickster 5 8,659 09-16-2014, 04:44 AM
Last Post: DerVVulfman
   Help With Taryn's Weapon Ammunition System TheOnlyArman 10 12,438 05-17-2010, 03:40 AM
Last Post: TheOnlyArman



Users browsing this thread: