D
Devsman
Guest
Suppose I'm still not really sure what I want to name my character, but for organizational purposes, I put all the sprites, sounds, files, etc for the character in data/chars/[character name].
Could I define a macro so that when I decide to change the character's name from "Steve" to "Mike" I can just change that and not have to go through every frame and change "data/chars/Steve/..." to "data/chars/Mike/..."?
For example, something like this:
Thanks.
Could I define a macro so that when I decide to change the character's name from "Steve" to "Mike" I can just change that and not have to go through every frame and change "data/chars/Steve/..." to "data/chars/Mike/..."?
For example, something like this:
Code:
define $name = "Steve"
name $name
health 100
speed 12
type player
shadow 3
diesound data/chars/$name/eek.wav
running 24 4 2 1 0
animationscript data/chars/$name/animationscript.c
icon data/chars/$name/icon.pcx
anim idle
loop 1
delay 70
offset 20 44
bbox 5 2 31 43
frame data/chars/$name/Stand00.pcx
delay 30
frame data/chars/$name/Stand01.pcx
Thanks.