Hi, I am trying to learn about ganis and custom items
so i took an sword script from a random server and ve modified a little
with his 3 files
al_demonblade-attack
al_demonblade-walk
al_demonblade-idle
i’ve put it on my server and the animation works, but the “sword” is invisible even if i’ve set one with setsword command
so he literaly moves his arms with nothing in his hands
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.
___Merged doublepost__________________
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.
Ganis have the ability to set to a different gani at the end of the animation. The gani it’s trying to set to probably doesn’t exist, or you don’t have a copy of it.
I went through the script and it’s no other ganis there needed, it’s three ganis…Idle, walk and attack…I attack and it should go back to idle…but it doesn’t
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?
[QUOTE=Zefyr0s;67861]
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?
[/QUOTE]
Dude, next time, look at when the thread was created and think, man, is it worth being trolled for a necro post? Make a new thread, this ones dead
[QUOTE=Zefyr0s;67861]
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?
[/QUOTE]
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.
Eg:
triggeraction playerx+4,playery+2,hit,2;
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…