[solved] Weapon problem - ethanara - 06-09-2010
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
RE: Weapon problem - SirisRhazael - 06-09-2010
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?
RE: Weapon problem - ethanara - 06-09-2010
Im deh biggest noob at dc, but i want to be better,
anyway, what is oid?
RE: Weapon problem - SirisRhazael - 06-09-2010
In your data.txt:
id: 123 type: 6 file: data\weapon8.dat #beer
^oid in chars/weapons/objects is the specified id to summon.
RE: Weapon problem - dubbleD - 06-09-2010
object ID
in the data file, its the number id
RE: Weapon problem - SirisRhazael - 06-09-2010
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
RE: Weapon problem - forgetlatios - 06-11-2010
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>
|
RE: Weapon problem - SirisRhazael - 06-12-2010
Don't forget about hit_Dj: or something else in wallking and standing frames
|