[Fixed for V0.39] Can't get the attack graphics to work.

Messages are moved here (should anyone ever want to see them again) once they are no longer applicable to the current version (e.g. suggestions that have been implemented or bugs that have been fixed).

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

[Fixed for V0.39] Can't get the attack graphics to work.

Post by Chaos Awakes »

I don't know if it's a bug or if I'm doing it wrong but I can't get the attack graphics to work for close attack types.

I've cloned a giggler and called it "thief". I've given it three close attack methods - steal, kick and punch.
I've imported graphics for the thief including a graphic of it kicking and a graphic of it punching and of it stealing.
I've added the steal graphic under close attack bitmap 1, the kick graphic under close attack bitmap 2 and the punch graphic under close attack bitmap 3 in the editor when editing the thief. I don't know what to put for "attack graphic", but I've tried it both as NULL and with a graphic.

When I play the game, only the "steal" attack graphic ever plays, so either the thief is never using his other attack methods or the graphics don't work.

This is weird: If I save the dungeon and reload it in the editor, and bring up the resource of the thief, all three close attack methods have been replaced by the same "steal" graphic. However, if I load the text file into a text editor, the three attack graphics are listed so it's saving and loading the text file correctly but not displaying the right graphics in the editor.
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

You may find the overall attack graphic above overrides the other graphics.... I am not sure

I had this problem, and I am sure solved it when I nulled out the main attack grphic. I will check it out - if this is so, then it is perhaps the opposite of hos it should work - you would want the default to be used unless others have been specified

You may also find the editor very rarely enforced what it thinks of as right (for backwards compatibilty adapting)
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

Post by Chaos Awakes »

Thanks beo, but I have tried it with and without anything in the overall attack graphic slot and it doesn't work either way.

What makes a monster decide which attack to use - is it random? If it's random then I would expect to see all my graphics used!
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Ye,s i believe so...nto sure how the new six slots work , what i do know it is was a percentage of the available attacks when it was three - so each one has the same chance of being used. If you want to weight it, you would put say the same attack twice in two slots and have a third ion one to get a 2:1 ration
User avatar
Daecon
Expert
Posts: 329
Joined: Tue May 16, 2006 1:56 pm
Location: Upper Hutt, New Zealand

Post by Daecon »

Are values like energy used, time taken, etc. the same for all attacks the monster has?

Maybe it's just deciding to use the most "economical" attack each time?
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Nope - it's random.

There's probably a bug in there somewhere which means that its drawing the wrong graphic. I'll have a look...
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

Post by Chaos Awakes »

Hi George,

I don't know if you've had a chance to look at this, but the attack graphics seem to be quite messed up generally :)
I've just created a creature with a close and ranged attack (only one of each) and allocated a different graphic to the close attack 1 and ranged attack 1 graphic slots. In game, only the ranged attack 1 graphic ever plays, the close attack never does even when he is attacking with his close attack, when the ranged attack graphic plays.
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

Yes - this was a bug; now fixed for V0.39
Post Reply