ID:261317
 
Is it possible to make npc's attack using an icon_state; if it is can someone leave an example of how to do it.


Super saiyan3
Super saiyan3 wrote:
Is it possible to make npc's attack using an icon_state; if it is can someone leave an example of how to do it.

We used to have an icon tutorial that explained icon states and such...but it's not listed in the new Tutorials listing.

Tom, does that still exist?
In response to Deadron
but what i needed was an example of implementation of it in an a.i attack code.

<font color="red"> Super saiyan3
In response to Super saiyan3
Super saiyan3 wrote:
but what i needed was an example of implementation of it in an a.i attack code.

Funny, 'cause that's not what you said.
Please close your tags.

Lummox JR
In response to Super saiyan3
Super saiyan3 wrote:
but what i needed was an example of implementation of it in an a.i attack code.

<font color="red"> Super saiyan3

When the mob attacks, you set the attack icon state...what in particular do you have a question about?
In response to Deadron
lol, Deadron nice use of my html. :)
In response to Super saiyan3
Super saiyan3 wrote:
lol, Deadron nice use of my html. :)

Rather, your HTML was very poor use of the language.
I think what you're looking for is flick(). Try something like this

mob
verb
attack(mob/M as mob in oview(1))
flick("attack",src)
//then your stuff here

Keep in mind you have to make an icon_state called "attack" for this effect to work.

=The Wizard of How=

Hope I helped :)