Full Version : Again me :)
xmlspawner >>Q&A >>Again me :)
<< Prev | Next >>
Xerocrates- 05-01-2007
Hello
Little question.
i wolud make a chest if is lockpicked, the npc's around attack the lockpicker.
I create the chest... easy
I set the trigger on "skilltrigger=lockpicking,+,0,200"... easy too
And the SpawnOntrigger=true, k.. k...
the activation work, only i culdn't find a way to make "the guard attack the lockpicker"
When i can make this passage?
Tnx for the answer
(god... i love that spawner but i hate when i couldn't make one thing )
bye
godfood- 05-01-2007

QUOTE (Arte Gordon in the "How Do I" Section)
Immediately attack the triggering char: To spawn a mob that immediately targets the triggering char and begins attacking you would set the Combatant property to point to the triggering char, and then put the mob into warmode, like this ArcherGuard/Combatant/TRIGMOB/warmode/true
where the TRIGMOB keyword automatically refers to the triggering char.
The sphynx.npc file in xmlextras also has an example of this kind of thing for the Action field of Xmldialogs (if you get the question wrong you get immediately attacked).
Note, that the spawner must set up to be triggered by a character for this to work.
Immediately attack a named char:
If you wanted to have the mob attack a specific named char or npc, you could use the MOB keyword like this
ArcherGuard/Combatant/MOB,Slappy,playermobile/warmode/true
which would have it attack the playermobile named 'Slappy'
ArcherGuard/Combatant/MOB,Bobo,balron/warmode/true
which would have it attack the balron named 'Bobo'
This does NOT require that the spawner be triggered by a char.

Click here for link
Xerocrates- 05-01-2007
ups.. tnx
I dont have seen....
tnx
godfood- 05-01-2007
NP
Xerocrates- 05-02-2007
Another one little question
Sorry, i try to make a dialog with a talking npc...
Xmledit on target, bla bla ok..
When you tell "Body" to the undertaker must take by Action all parts of the body whit this line
Condition:AMOUNTCARRIED,torso>0|AMOUNTCARRIED,head>0|AMOUNTCARRIED,leftleg>0|AMOUNTCARRIED,rightleg>0|AMOUNTCARRIED,leftarm>0|AMOUNTCARRIED,rightarm>0
Action:TAKEBYTYPE,1.0,1,true/leftarm|TAKEBYTYPE,1.0,1,true/rightarm|TAKEBYTYPE,1.0,1,true/torso|TAKEBYTYPE,1.0,1,true/head|TAKEBYTYPE,1.0,1,true/rightleg|TAKEBYTYPE,1.0,1,true/leftleg
But Doesn't work... Syntatx error?
Tnx for any help
ArteGordon- 05-02-2007
the syntax error is here

QUOTE
TAKEBYTYPE,1.0,1,true/leftarm|TAKEBYTYPE,1.0,1,true/rightarm|TAKEBYTYPE,1.0,1,true/torso|TAKEBYTYPE,1.0,1,true/head|TAKEBYTYPE,1.0,1,true/rightleg|TAKEBYTYPE,1.0,1,true/leftleg

if you want to perform multiple actions on a single line, separate the actions with semicolons not '|'. The '|' is the logical OR operator that can only be used in conditional tests (like in the Condition field).
Xerocrates- 05-02-2007
Er... ehm... semicolons??
/ Slash
. dot
: duble Dot
/\
|_| Semicolons???
Xerocrates- 05-02-2007
ah right ;
Mea Culpa...
hum...
Condition:AMOUNTCARRIED,torso>0|AMOUNTCARRIED,head>0|AMOUNTCARRIED,leftleg>0|AMOUNTCARRIED,rightleg>0|AMOUNTCARRIED,leftarm>0|AMOUNTCARRIED,rightarm>0
that's Right?
i would check if the player as ALL these thing... but AMOUNTCARRIED,torso>0;AMOUNTCARRIED,head>0 seems dont work...
Xerocrates- 05-03-2007
ehm...
who i can write I want to check if this player as 1 item1 & 1 item2 & 1 item3?
ArteGordon- 05-03-2007

QUOTE (Xerocrates @ May 03, 2007 04:08 pm)
ehm... who i can write I want to check if this player as 1 item1 & 1 item2 & 1 item3?

use the & operator

QUOTE
AMOUNTCARRIED,torso>0 & AMOUNTCARRIED,head>0 & AMOUNTCARRIED,leftleg>0 & AMOUNTCARRIED,rightleg>0 & AMOUNTCARRIED,leftarm>0 & AMOUNTCARRIED,rightarm>0

Xerocrates- 05-04-2007
hm.. L'uovo di colombo....
tnx
all work..