Guest korean Posted October 12, 2007 Share Posted October 12, 2007 hi, i added some creature having a same group name in specific.ids.. and got a problem in a script. they have a combat script but "See(NearestEnemyOf(Myself))" trigger in the script didn't work properly. when they became enemy with red circle, but nothing else happened. they have many order in the script like "Spell(Myself,CLERIC_BLESS)", etc... why this strange situation happen? is it something like bugs? Link to comment
Gort Posted October 12, 2007 Share Posted October 12, 2007 maybe the script is overriden by another. Anyway, I think the problem should be described more precisely, with the script posted Link to comment
Guest Guest Posted October 12, 2007 Share Posted October 12, 2007 thanks to the fast reply.. one of the scripts didn't work properly was ... IF See(NearestEnemyOf(Myself)) Global("Prep","LOCALS",0) THEN RESPONSE #100 DisplayStringHead(Myself,@80) ApplySpell(Myself,WIZARD_PROTECTION_FROM_COLD) ApplySpell(Myself,WIZARD_STONE_SKIN) ApplySpell(Myself,WIZARD_SPELL_TRAP) ApplySpellRES("SPPR730",Myself) ApplySpell(Myself,WIZARD_SPELL_SHIELD) SetGlobal("Prep","LOCALS",1) END IF HPPercentGT(Myself,10) HPPercentLT(Myself,30) !GlobalTimerNotExpired("HEAL_1","LOCALS") GlobalLT("HEAL1_INCRE","LOCALS",5) THEN RESPONSE #100 DisplayStringHead(Myself,46150) IncrementGlobal("HEAL1_INCRE","LOCALS",1) SetGlobalTimer("HEAL_1","LOCALS",6) CreateItem("POTN55",1,0,0) UseItem("POTN55",Myself) Continue() END IF HPPercentLT(Myself,11) THEN RESPONSE #100 DisplayStringHead(Myself,@157) // 본체로 돌아가는 건 오래간만이군. 자네들이 평민이 아니라는 건 인정해 주지. ReallyForceSpellRES("RU_MONIC",Myself) END IF See(NearestEnemyOf(Myself)) CheckStat(Myself,0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) THEN RESPONSE #100 Spell(Myself,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) END IF See(NearestEnemyOf(Myself)) !CheckStatGT(Myself, 0, STONESKINS) THEN RESPONSE #100 Spell(Myself,WIZARD_STONE_SKIN) END IF See(NearestEnemyOf(Myself)) !CheckStat(Myself, 1, WIZARD_SPELL_TRAP) THEN RESPONSE #100 Spell(Myself,WIZARD_SPELL_TRAP) END IF See(NearestEnemyOf(Myself)) !CheckStat(Myself,1,WIZARD_SPELL_SHIELD) THEN RESPONSE #100 Spell(Myself,WIZARD_SPELL_SHIELD) END IF See(NearestEnemyOf(Myself)) !StateCheck(Myself,STATE_MIRRORIMAGE) THEN RESPONSE #100 Spell(Myself,WIZARD_MIRROR_IMAGE) END IF See(NearestEnemyOf(Myself)) !GlobalTimerNotExpired("FIRESHIELD","LOCALS") THEN RESPONSE #100 SetGlobalTimer("FIRESHIELD","LOCALS",60) SpellRES("SPPR730",Myself) END IF See([ENEMY]) OR(13) StateCheck(LastSeenBy(Myself), STATE_INVISIBLE) StateCheck(LastSeenBy(Myself), STATE_IMPROVEDINVISIBILITY) StateCheck(LastSeenBy(Myself), STATE_MIRRORIMAGE) StateCheck(LastSeenBy(Myself), STATE_HASTED) HasBounceEffects(LastSeenBy(Myself)) HasImmunityEffects(LastSeenBy(Myself)) CheckStatGT(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) CheckStatGT(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_ENERGY) CheckStatGT(LastSeenBy(Myself),0,WIZARD_MISLEAD) CheckStatGT(LastSeenBy(Myself),0,WIZARD_TENSERS_TRANSFORMATION) CheckStatGT(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_ENERGY) CheckStatGT(LastSeenBy(Myself),0,STONESKINS) CheckStatGT(LastSeenBy(Myself),0,IMPROVEDHASTE) !Allegiance(LastSeenBy(Myself),EVILCUTOFF) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #25 Spell(LastSeenBy(Myself),WIZARD_WARDING_WHIP) RESPONSE #25 Spell(LastSeenBy(Myself),WIZARD_BREACH) RESPONSE #25 Spell(LastSeenBy(Myself),WIZARD_SECRET_WORD) RESPONSE #25 Spell(LastSeenBy(Myself),WIZARD_DISPEL_MAGIC) Continue() END IF See([ENEMY]) CheckStatGT(LastSeenBy(Myself), 0, RESISTMAGIC) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 Spell(LastSeenBy(Myself),WIZARD_LOWER_RESISTANCE) END IF See([ENEMY]) CheckStatLT(LastSeenBy(Myself), 10, SAVEVSDEATH) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 Spell(LastSeenBy(Myself),WIZARD_GREATER_MALISON) END IF See([ENEMY]) CheckStatLT(LastSeenBy(Myself), 30, RESISTMAGIC) CheckStatGT(LastSeenBy(Myself), 10, SAVEVSDEATH) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 Spell(LastSeenBy(Myself),WIZARD_WAIL_OF_THE_BANSHEE) END IF See([ENEMY]) HPLT(LastSeenBy(Myself), 90) CheckStatLT(LastSeenBy(Myself), 100, RESISTMAGIC) !StateCheck(LastSeenBy(Myself),STATE_STUNNED) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 Spell(LastSeenBy(Myself),WIZARD_POWER_WORD_STUN) END IF See([ENEMY]) CheckStatLT(LastSeenBy(Myself), 100, RESISTMAGIC) HPLT(LastSeenBy(Myself), 60) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 Spell(LastSeenBy(Myself),WIZARD_POWER_WORD_KILL) END IF See(NearestEnemyOf(Myself)) !GlobalTimerNotExpired("ProtectionOfDeath","LOCALS") THEN RESPONSE #100 SetGlobalTimer("ProtectionOfDeath","LOCALS",30) ForceSpellRES("SPCL917",Myself) END IF See(NearestEnemyOf(Myself)) !GlobalTimerNotExpired("GreaterEvasion","LOCALS") THEN RESPONSE #100 SetGlobalTimer("GreaterEvasion","LOCALS",30) ForceSpellRES("SPCL914",Myself) END IF GlobalLT("KaiUsed","LOCALS",5) Range(NearestEnemyOf(Myself),6) !CheckStat(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !GlobalTimerNotExpired("KaiAttack","LOCALS") THEN RESPONSE #100 SetGlobalTimer("KaiAttack","LOCALS",10) IncrementGlobal("KaiUsed","LOCALS",1) ReallyForceSpellRES("SPCL144",Myself) Continue() END IF See(NearestEnemyOf(Myself)) !CheckStat(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !GlobalTimerNotExpired("Improved_Haste","LOCALS") THEN RESPONSE #100 SetGlobalTimer("Improved_Haste","LOCALS",24) SpellRES("SPWI613",Myself) Continue() END IF See(NearestEnemyOf(Myself)) !CheckStat(LastSeenBy(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS) !InMyGroup(LastSeenBy(Myself)) THEN RESPONSE #100 AttackReevaluate(LastSeenBy(Myself),30) END IF !See(NearestEnemyOf(Myself)) OR(2) Global("Prep","LOCALS",1) GlobalGT("KaiUsed","LOCALS",0) THEN RESPONSE #100 SetGlobal("Prep","LOCALS",0) SetGlobal("KaiUsed","LOCALS",0) END the creature with above script had only one action that is the first part, "ApplySpell(~,~) x5"... after that, it had no action more... Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.