Page 1 of 1

Inhibitions Action Not Set Correctly?

Posted: Mon Jun 14, 2010 8:46 pm
by GodzFire
I am trying to set Wraiths in DoD not to show up during Timid-Normal diffs using the Inhibitions map action. However, it doesn't seem to be working. Below is the map script. See anything that could be the issue?
----- Spawned Wraiths -----
{
(subj, monster_identifier)
(ALL THE MONSTERS)
}

Activate Wraith Spawn Dispatcher TIMER
{
Activates on Trigger
>>>Find Wraith to Spawn<<<
=== Wraith Spawn Dispatcher ===
}

=== Wraith Spawn Dispatcher === [Action List]
deactivates_never
600.00, 600.00
{
Actions to Activate
Spawned Wraiths x02
Spawned Wraiths x03
Spawned Wraiths x04
Spawned Wraiths x05
Spawned Wraiths x06
Spawned Wraiths x07
Spawned Wraiths x08
Spawned Wraiths x09
Spawned Wraiths x10
Activate Only One
Inhibitions
Difficulty = TIMID
Inhibitions
Difficulty = SIMPLE
Inhibitions
Difficulty = NORMAL

}

Spawned Wraiths x02 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
2
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x03 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
3
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x04 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
4
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x05 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
5
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x06 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
6
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x07 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
7
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x08 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
8
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x09 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
9
Activate Actions
>>>Find Wraith to Spawn<<<
}

Spawned Wraiths x10 [Munger]
activates_only_once
deactivates_on_trigger
0.00, 0.00
{
Replace Parameters
>>>Find Wraith to Spawn<<<
(_max, integer)
10
Activate Actions
>>>Find Wraith to Spawn<<<
}

>>>Find Wraith to Spawn<<< [Geometry Filter]
deactivates_on_trigger
4.00, 4.00
{
Link
----- Spawned Wraiths -----
Entire Map
Results Action Identifier
Spawned Wraith Visible
Tested items Inside Field Name
subj
Maximum Number of Items
1
Choose Random Items
Use Markers instead of Monsters
Only Use Uncreated Monsters
Activates on Success
Spawned Wraith Visible
}

Spawned Wraith Visible [Unit Control]
deactivates_on_trigger
0.00, 0.00
{
Visible Flag
Ghost Visibility Flag
true
Tain Visibility Flag
Activates on Success
Spawned Wraiths Attack !!
>>>Find Level Drain PROJ<<<
}

Spawned Wraiths Attack !! [Attack]
deactivates_never
1.50, 3.00
{
Link
----- Spawned Wraiths -----
Attack All Enemies Flag
Attack Nearest Flag
}

>>>Find Level Drain PROJ<<< [Geometry Filter]
initially_active
deactivates_never
1.00, 1.00
{
Object Type
19sw
Entire Map
Results Action Identifier
>>>Find Unit To Level Drain<<<
Tested Items Inside Location Field Name
cent
Maximum Number of Items
10
Activates on Success
>>>Find Unit To Level Drain<<<
}

>>>Find Unit To Level Drain<<< [Geometry Filter]
deactivates_on_execution
0.00, 0.00
{
Link
All Player Units
Circle Radius
1.000
Results Action Identifier
Drain Found Units Xperience
Tested items Inside Field Name
subj
Maximum Number of Items
1
Activates on Success
Drain Found Units Xperience
}

Drain Found Units Xperience [Unit Control]
deactivates_on_trigger
3.00, 3.00
{
Link
Drain Found Units Xperience
Add Experience
-10

Re: Inhibitions Action Not Set Correctly?

Posted: Mon Jun 14, 2010 9:49 pm
by Pyro
Why do you have 3 "Inhibitions" parameters? It is plural for a reason. It would be better to have an action trigger before your "Wraith Spawn Dispatcher" MA. Since that MA never deactivates, it is really wasteful to have it triggering every 600 seconds when it will always get inhibited on Timid to Normal difficulties. So how about something like the following:

[Action List] Wraith PreTest
deactivates_on_execution

Actions to Activate
--Wraith Spawn Dispatcher
Inhibitions
--Difficulty = TIMID
--Difficulty = SIMPLE
--Difficulty = NORMAL


Also, remove those Inhibitions you added to that "Wraith Spawn Dispatcher" action. Since I don't know what kind of mess the DoD script might be, I suggested this. However, if you were to create a script from scratch or do a lot of modifing, I would have made it so the difficulty test trigger some action to include those actions you want to work for certain difficulties. But this method works too.

Keep in mind you have to add this action before the "Wraith Spawn Dispatcher" action so that whatever action was going to activate that action should now activate the action I mentioned earlier.

Re: Inhibitions Action Not Set Correctly?

Posted: Mon Jun 14, 2010 10:48 pm
by GodzFire
o3 messaged me with a better idea I think; just set all the wraiths to heroic difficulty level. No testing needed.

Re: Inhibitions Action Not Set Correctly?

Posted: Tue Jun 15, 2010 1:09 am
by Pyro
HA! I just figured you had a reason you didn't to that to begin with. I over estimate yet again.