by Drake Raider » Fri Jul 25, 2008 16:42
Okay, scratch that last. I got the script to compile. Now I can't get the NPC's to talk in-game. The NPC is in "MAP03", the script lump is "SCRIPT03", and the decorate code and conversation script for the NPC are as follows:
DECORATE:
[spoiler]ACTOR Tyrinath : StrifeHumanoid 26355
{
Health 100
PainChance 200
Speed 4
Radius 20
Height 56
ConversationID 1
Monster
+FRIENDLY
-COUNTKILL
+NOSPLASHALERT
-ISMONSTER
MinMissileChance 150
MaxStepHeight 16
ConversationID 4
MaxDropoffHeight 32
SeeSound "peasant/sight"
AttackSound "peasant/attack"
PainSound "peasant/pain"
DeathSound "peasant/death"
HitObituary "$OB_PEASANT"
States
{
Spawn:
PEAS A 10 A_Look2
Loop
See:
PEAS AABBCCDD 5 A_Wander
Loop
Melee:
PEAS E 10 A_FaceTarget
PEAS F 8 A_CustomMeleeAttack(2*random[PeasantAttack](1,5)+2)
PEAS E 8
Goto See
Pain:
PEAS O 3
PEAS O 3 A_Pain
Goto Melee
Wound:
PEAS G 5
PEAS H 10 A_GetHurt
PEAS I 6
Goto Wound+1
Death:
PEAS G 5
PEAS H 5 A_Scream
PEAS I 6
PEAS J 5 A_NoBlocking
PEAS K 5
PEAS L 6
PEAS M 8
PEAS N 1400
GIBS U 5
GIBS V 1400
Stop
XDeath:
GIBS M 5 A_TossGib
GIBS N 5 A_XScream
GIBS O 5 A_NoBlocking
GIBS PQRS 4 A_TossGib
Goto Death+8
}
}[/spoiler]
Conversation Script:
[spoiler]#===================
#Tyranith block 1========
#===================
$MOBJ 1
NAME Tyranith
DIALOG &I AM LEAVING CLUES IN CASE I FAIL TO DESTROY Eidolon. I WILL BEGIN IN CASTLE BLACKMARSH WHERE FAMINE AWAITS. I'VE HEARD STRANGE RUMORS OF AN INVICIBLE CRYSTAL GOLEM THAT PROTECTS THE ENTERANCE TO FAMINE's LAIR.&
{
TEXT &HOW AM I TO GET PASSED?&
YESTEXT _
LINK -2
}
$END
#===================
#Tyranith block 2========
#===================
$MOBJ 1
NAME Tyranith
DIALOG &PERHAPS THE KING'S MAGES KNOW OF A WAY TO GRANT ME THE POWER TO DESTROY IT. I BELIEVE THAT THE BROTHERHOOD OF HUNGER MAY HOLD SOME CLUES, AND KNOWING THAT I MUST FREE THE BROTHER OF HUNGER FROM THE CASTLE TREASURY.&
$END[/spoiler]
Could someone tell me what's wrong?
Okay, scratch that last. I got the script to compile. Now I can't get the NPC's to talk in-game. The NPC is in "MAP03", the script lump is "SCRIPT03", and the decorate code and conversation script for the NPC are as follows:
DECORATE:
[spoiler]ACTOR Tyrinath : StrifeHumanoid 26355
{
Health 100
PainChance 200
Speed 4
Radius 20
Height 56
ConversationID 1
Monster
+FRIENDLY
-COUNTKILL
+NOSPLASHALERT
-ISMONSTER
MinMissileChance 150
MaxStepHeight 16
ConversationID 4
MaxDropoffHeight 32
SeeSound "peasant/sight"
AttackSound "peasant/attack"
PainSound "peasant/pain"
DeathSound "peasant/death"
HitObituary "$OB_PEASANT"
States
{
Spawn:
PEAS A 10 A_Look2
Loop
See:
PEAS AABBCCDD 5 A_Wander
Loop
Melee:
PEAS E 10 A_FaceTarget
PEAS F 8 A_CustomMeleeAttack(2*random[PeasantAttack](1,5)+2)
PEAS E 8
Goto See
Pain:
PEAS O 3
PEAS O 3 A_Pain
Goto Melee
Wound:
PEAS G 5
PEAS H 10 A_GetHurt
PEAS I 6
Goto Wound+1
Death:
PEAS G 5
PEAS H 5 A_Scream
PEAS I 6
PEAS J 5 A_NoBlocking
PEAS K 5
PEAS L 6
PEAS M 8
PEAS N 1400
GIBS U 5
GIBS V 1400
Stop
XDeath:
GIBS M 5 A_TossGib
GIBS N 5 A_XScream
GIBS O 5 A_NoBlocking
GIBS PQRS 4 A_TossGib
Goto Death+8
}
}[/spoiler]
Conversation Script:
[spoiler]#===================
#Tyranith block 1========
#===================
$MOBJ 1
NAME Tyranith
DIALOG &I AM LEAVING CLUES IN CASE I FAIL TO DESTROY Eidolon. I WILL BEGIN IN CASTLE BLACKMARSH WHERE FAMINE AWAITS. I'VE HEARD STRANGE RUMORS OF AN INVICIBLE CRYSTAL GOLEM THAT PROTECTS THE ENTERANCE TO FAMINE's LAIR.&
{
TEXT &HOW AM I TO GET PASSED?&
YESTEXT _
LINK -2
}
$END
#===================
#Tyranith block 2========
#===================
$MOBJ 1
NAME Tyranith
DIALOG &PERHAPS THE KING'S MAGES KNOW OF A WAY TO GRANT ME THE POWER TO DESTROY IT. I BELIEVE THAT THE BROTHERHOOD OF HUNGER MAY HOLD SOME CLUES, AND KNOWING THAT I MUST FREE THE BROTHER OF HUNGER FROM THE CASTLE TREASURY.&
$END[/spoiler]
Could someone tell me what's wrong?