Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Weapon problem
#1
? 
Im going to make this charcter, firetemplate, and if it can i would like that he can make a weapon like freeze does. I have the sprites while he make it and for the sword itself, but what should i write in fire-templates data so he make that sprite?
Ethanara
I think all eggs have Anatidaephobia: the fear that youre being watching by a duck....
A blogspot project....
Reply
Thanks given by:
#2
Simple solution: copy freeze's data, replace the oid, pics etc. and you're done :)
Anyway, are you good in DC-ing, or are you already starting?
The answer to life, universe and everything (no, not 42) (Click to View)
Reply
Thanks given by: ethanara
#3
Im deh biggest noob at dc, but i want to be better,
anyway, what is oid?
I think all eggs have Anatidaephobia: the fear that youre being watching by a duck....
A blogspot project....
Reply
Thanks given by:
#4
In your data.txt:
id: 123 type: 6 file: data\weapon8.dat #beer
^oid in chars/weapons/objects is the specified id to summon.
The answer to life, universe and everything (no, not 42) (Click to View)
Reply
Thanks given by:
#5
object ID
in the data file, its the number id
~its been a long time coming~
Reply
Thanks given by:
#6
For your sword you should use:
    DC-Code:
opoint:
      kind: 2  x: 42  y: 51  action: 35  dvx: 0  dvy: 0  oid: xxx  facing: 0
 opoint_end:
#Kind: 2 summon weapons. Action: 35- swords' "on_hand" frame-IMPORTANT! Oid is id number in data.txt

Opoint in the 1st frame NEVER works.
Ah, and if you're gonna use your pics, be warned:
The first one in spritesheet is not marked as 1. It's 0. So don't be surprised if you notice that char uses wrong sprite :P
Example: look at standing frames.
pics:
0
1
2
3
NOT
1
2
3
4
The answer to life, universe and everything (no, not 42) (Click to View)
Reply
Thanks given by:
#7
and some frame before that, use wpoint/k3 to drop the held weapon... like this:
    DC-Code:
<frame> 300 Sword
   pic: 135  state: 3  wait: 1  next: 301  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0 mp: 1200
  sound: data\071.wav 
   wpoint:
      kind: 3  x: 40  y: 43  weaponact: 35  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
 
#drop weapon 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
#<ignore>
<frame> 301 Sword
   pic: 136  state: 3  wait: 1  next: 304  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\070.wav    
bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 304 Sword
   pic: 135  state: 3  wait: 1  next: 305  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\071.wav 
   wpoint:
      kind: 3  x: 40  y: 43  weaponact: 35  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 305 Sword
   pic: 136  state: 3  wait: 1  next: 306  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\070.wav    
bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 306 Sword
   pic: 135  state: 3  wait: 1  next: 307  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\071.wav 
   wpoint:
      kind: 3  x: 40  y: 43  weaponact: 35  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 307 Sword
   pic: 136  state: 3  wait: 1  next: 302  dvx: 0  dvy: 0  dvz: 0  centerx: 33  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\070.wav    
bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
 
<frame> 302 Sword
   pic: 137  state: 3  wait: 2  next: 303  dvx: 0  dvy: 0  dvz: 0  centerx: 40  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
<frame_end>
#</ignore>
<frame> 303 Sword
   pic: 138  state: 3  wait: 2  next: 999  dvx: 0  dvy: 0  dvz: 0  centerx: 31  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   bdy:
      kind: 0  x: 24  y: 14  w: 31  h: 64
   bdy_end:
   opoint:
      kind: 2  x: 44  y: 48  action: 23  dvx: 0  dvy: 0  oid: xxx #id of weapon  facing: 0
   opoint_end:
   wpoint:
      kind: 1  x: 44  y: 48  weaponact: 23  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
<frame_end>
[Image: UB2.gif]
FrozenFiren|Devid|Sprites

News of the day 19th Sep 10: Someone's back on track
Reply
Thanks given by:
#8
Don't forget about hit_Dj: or something else in wallking and standing frames
The answer to life, universe and everything (no, not 42) (Click to View)
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)