Well-Actually War Trall BainIhrno Posted January 29, 2013 Share Posted January 29, 2013 I've written a creature script for one of the final bosses, I was wondering if anyone would like to take a look at it. // VARNOTH // begincreaturescript; variables; short i,j,k,choice; INIT_STATE; break; DEAD_STATE; break; START_STATE; break; beginstate 3; if who_hit_me(char_has_item_of_class_equip(get_selected_char,3,0) damage_char(i,50,4); break; beginstate 4; if (tick_difference(last_abil_time,get_current_tick()) > 0)) print_str_color("Varnoth breathes!",1); put_boom_on_char(ME,0,1); put_boom_on_char(ME,0,1); put_boom_on_char(ME,0,1); put_boom_on_char(ME,0,1); put_boom_on_char(ME,0,1); put_boom_on_char(ME,0,1); run_animation_sound(167); damage_near_loc(my_loc_x(),my_loc_y(),get_ran(35,2,10),2,1); last_abil_time = get_current_tick(); } if (target_ok() == FALSE) set_state(START_STATE); do_attack(); break; ------------------------- So basically, state 4 is a custom breathing weapon. I've based it off of t13 in Za-Khazi Run With state 3, I'm trying to create a weapon that does extra damage to this specific character alone. Will this coding work? Thanks. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.