Here’s a better answer. When you get an image in your graal files, it is cached with byte size and what not. So it’s better to just rename the image something else and use that. Also, yes the images go into images and ganis go into ganis.
Also there is a typo somewhere in this line, see if you can find it O_O.
That thread is nothing but useless. I actually found an old thread about Custom Swords and it was exactly what this guy was looking for. If he needs the link to it I’ll be happy to show him. But that is just spam Jatz.
Hey I used this script, worked quite well! However I have a slight problem! I want it to unsheath and after it attacks, the character dissappears, it seems to have problems going from attacking to idle, but it helps to take a step forward he appears again, but standing still=NONO.
Question about how sword damage works…
If I duplicate sword and rename it sword2 it still does damage. Does this have something to do with the sprite still being changed? And will this fix that, so I can do a custom damage system with triggeractions?
You should probably try looking over what you right before posting to improve readability but meh…
To change how much health a sword would take using a custom damage system you check the paramaters of the triggeraction sent to the player.
hit is the name of the action of which you will call
the number after that is a parameter and will be sent with action hit.
too check on the receiving player:
if (actionhit)playerhearts -= strtofloat(#p(0));
#p(0) refers to the first parameter sent (#p(1) would refer to the next parameter if there is any, and so on) and strtofloat converts the parameter which is a string when sent to a floating point (or what ever graal does…)
good luck and remember have apply logic coz in the end this shit is really simple…