56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
void main()
|
|
{
|
|
location Loc1= GetLocation(GetWaypointByTag("birdroom1"));
|
|
location Loc2= GetLocation(GetWaypointByTag("birdroom2"));
|
|
location Loc3= GetLocation(GetWaypointByTag("birdroom3"));
|
|
location Loc4= GetLocation(GetWaypointByTag("birdroom4"));
|
|
location Loc5= GetLocation(GetWaypointByTag("birdroom5"));
|
|
location Loc6= GetLocation(GetWaypointByTag("birdroom6"));
|
|
location Loc7= GetLocation(GetWaypointByTag("birdroom7"));
|
|
location Loc8= GetLocation(GetWaypointByTag("birdroom8"));
|
|
effect eEffect1 = EffectVisualEffect(VFX_FNF_STRIKE_HOLY);
|
|
|
|
int nDiceRoll = d8(1);
|
|
if(nDiceRoll == 1)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc1);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom01", Loc1, TRUE);
|
|
}
|
|
if(nDiceRoll == 2)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc2);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom02", Loc2, TRUE);
|
|
}
|
|
if(nDiceRoll == 3)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc3);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom03", Loc3, TRUE);
|
|
}
|
|
if(nDiceRoll == 4)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc4);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom04", Loc4, TRUE);
|
|
}
|
|
if(nDiceRoll == 5)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc5);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom05", Loc5, TRUE);
|
|
}
|
|
if(nDiceRoll == 6)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc6);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom06", Loc6, TRUE);
|
|
}
|
|
if(nDiceRoll == 7)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc7);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom07", Loc7, TRUE);
|
|
}
|
|
if(nDiceRoll == 8)
|
|
{
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect1, Loc8);
|
|
CreateObject(OBJECT_TYPE_CREATURE, "birdroom08", Loc8, TRUE);
|
|
}
|
|
|
|
}
|