婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2009-8-26
|
顺便我刚想到点思路,搜到了相关事件文本,里面有需求。例如艾鼬(polecat),在RoomDataP.lua里有对应事件段落如下:
StartThreadedEvents =
{
{
FunctionName = "ActivateFamiliar",
GameStateRequirements =
{
-- gale appearance requirements; requires HecateGrantsFamiliars01 to be recruited
{
PathFalse = { "GameState", "FamiliarsUnlocked", "PolecatFamiliar" },
},
{
-- PathTrue = { "GameState", "WorldUpgradesAdded", "WorldUpgradeFamiliarUpgradeSystem" }
},
{
Path = { "GameState", "LifetimeResourcesSpent", "FamiliarPoints" },
Comparison = ">=",
Value = 3,
},
{
PathFalse = { "CurrentRun", "ActiveBounty" },
},
NamedRequirementsFalse = { "HecateFamiliarsInHub" },
-- ChanceToPlay = 0.75,
},
Args =
{
Id = 778664,
Name = "PolecatFamiliar",
SkipAISetup = true,
OverwriteSelf =
{
OnUsedFunctionName = "nil",
SpecialInteractFunctionName = "PolecatFamiliarSpecialInteractLockedInRun",
PreRecruit = true,
DistanceTriggers =
{
{
WithinDistance = 550,
FunctionName = "GenericPresentation",
Args =
{
PreWait = 0.0,
AngleTowardHero = true,
SetAnimation = "Familiar_Polecat_Greet",
VoiceLines = { GlobalVoiceLines = "PolecatReactionVoiceLines" },
},
},
}
},
},
},
}
狗的类似:
StartThreadedEvents =
{
{
FunctionName = "ActivateFamiliar",
GameStateRequirements =
{
-- hecuba appearance requirements; requires HecateGrantsFamiliars01 to be recruited
{
PathFalse = { "GameState", "FamiliarsUnlocked", "HoundFamiliar" },
},
{
FunctionName = "RequiredAlive",
FunctionArgs = { Units = { "NPC_Nemesis_01", }, Alive = false },
},
{
-- PathTrue = { "GameState", "WorldUpgradesAdded", "WorldUpgradeFamiliarUpgradeSystem" }
},
{
Path = { "GameState", "LifetimeResourcesSpent", "FamiliarPoints" },
Comparison = ">=",
Value = 2,
},
{
PathFalse = { "CurrentRun", "ActiveBounty" },
},
NamedRequirementsFalse = { "HecateFamiliarsInHub", "HecateMissing" },
ChanceToPlay = 0.8,
},
Args =
{
Id = 722876,
Name = "HoundFamiliar",
SkipAISetup = true,
OverwriteSelf =
{
OnUsedFunctionName = "nil",
SpecialInteractFunctionName = "HoundFamiliarSpecialInteractLockedInRun",
PreRecruit = true,
DistanceTriggers =
{
{
WithinDistance = 550,
FunctionName = "GenericPresentation",
Args =
{
PreWait = 0.0,
AngleTowardHero = true,
SetAnimation = "Familiar_Hound_Greet",
Sound = "/SFX/Familiars/DogBarkDiscovery",
VoiceLines = { GlobalVoiceLines = "HoundReactionVoiceLines" },
},
},
}
},
},
},
} |
|