Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Summon a rock (or heavy objects) on hand.
#1
? 
Hi fellow modders,

I was trying to make a move for my character so he can summon a heavy rock on his hands (just like how freeze summons ice sword). However, it is weird becoz after summoning it, he is holding it like he's holding a light weapon. Yes, that means he's swinging the rock instead of throwing it.

I basically just copy the rock dat (i think is weapon1?) and changed its damage. And I tried putting the rock in stage so it is summoned from the sky like random objects, and it behaved perfectly fine. I can pick it up and throw.

Any ideas what went wrong? Thanks for the help.
Reply
Thanks given by:
#2
Freeze's sword summoning code
    DC-Code:
opoint:
      kind: 2  x: 42  y: 51  action: 35  dvx: 0  dvy: 0  oid: 213  facing: 0
   opoint_end:

and your weapon[since copied from rock] should not have any frame no. 35, it has only 10 as a frame designed to summon the weapon on hand
    DC-Code:
<frame> 10 on_hand
   pic: 5  state: 2001  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   wpoint:
      kind: 2  x: 29  y: 56  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0 
   wpoint_end:
<frame_end>

Therefore, make action: 10 in the sword frame.

Quote:However, it is weird becoz after summoning it, he is holding it like he's holding a light weapon.
That's not possible unless you coded it to
...............
Reply
Thanks given by:
#3
(04-29-2014, 11:35 AM)davis60 Wrote:  Freeze's sword summoning code
    DC-Code:
opoint:
      kind: 2  x: 42  y: 51  action: 35  dvx: 0  dvy: 0  oid: 213  facing: 0
   opoint_end:

and your weapon[since copied from rock] should not have any frame no. 35, it has only 10 as a frame designed to summon the weapon on hand
    DC-Code:
<frame> 10 on_hand
   pic: 5  state: 2001  wait: 0  next: 0  dvx: 0  dvy: 0  centerx: 29  centery: 56
   wpoint:
      kind: 2  x: 29  y: 56  weaponact: 35  attacking: 0  cover: 0  dvx: 0  dvy: 0 
   wpoint_end:
<frame_end>

Therefore, make action: 10 in the sword frame.

I already did. In fact, here's the code when summoning it:
Code:
<frame> 333 get_stone
   pic: 128  state: 15  wait: 7  next: 999  dvx: 2  dvy: 0  dvz: 0  centerx: 29  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\009.wav
   opoint:
      kind: 2  x: 42  y: 51  action: 10  dvx: 0  dvy: 0  oid: 321  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 33  y: 22  weaponact: 10  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 5  y: 15  w: 45  h: 65
   bdy_end:
<frame_end>

The code for the rock is basically identical to the old one.


Quote:However, it is weird becoz after summoning it, he is holding it like he's holding a light weapon.
That's not possible unless you coded it to
[/quote]

I know... but that's what the character is doing. I hope I can capture a video. But basically, the character will try to swing the rock with the rock sprite gone, so you can't hit anything or anyone.[/code]


Reply
Thanks given by:
#4
Try putting next: 12 (<frame> 12 heavy_obj_walk) after weapon summoning.

If that doesn't work, then I'm afraid you have to either
1) Just spawn the rock as a normal opoint(see: Tera), or
2) Do 1, but have an input that ends with A(eg: D^A) and have very minimal wait leading to frame 0(next: 999), so hopefully you will automatically pick up the weapon after it drops.

As far as I know there is no other work-around. You can't put next onto a pickup weapon frame because you need to actually press A to pick the weapon.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by:
#5
You can't opoint a heavy object on hand, but you can *try* this to force the heavy weapon pickup frames:

Frame 0~8, 110, etc: D?A to Frame X (where X is the move to summon the rock)
Frame X wait: 0 next: X+1
Frame X+1 wait: 0 next: 999, opoint: heavy_weapon on the ground, hit_a: X+2
Frame X+2 wait: 1, itr kind 2? (the pick up weapon itr anyway)

Basically the theory is, if the character goes to a frame with the "pick up itr" by pressing Attack, then they should pick up the weapon. If the hit_a: method doesn't work, try wait:1 state: 1 in frame X+1 without the hit_a.



Azriel~
Reply
Thanks given by:
#6
Thanks guys. I tried couple other ways but still not quite what I wanted. End up modifying my move. haha. Thanks tho, appreciate the quick helps.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)