- Joined
- Sep 10, 2022
- Messages
- 101
Hello, I am here with a new question. I am trying to make something similar to the Oracle Revelation spell from Starcraft 2.
How does Revelation in SC2 actually work:
1. Any caster with the ability just chooses an area (in my case it is the point), and then clicks to perform the spell.
2. You gave a few seconds of vision on the area (or area around the point), if there are any units or buildings, they will be highlighted and stay revealed for some seconds.
What I did:
1. Created Revelation(AoE) spell based on Alliance Magic Tower Scout ability (or based on Goblin neutral building, does not matter) to just have an opportunity to scout an area. Then reduced the casting range from default 99999.00 to my 1400 (it does not matter). Reduced the area of spell effect and removed the scout effect in "Stats: Effects".
2. Created a single spell "Revelation" based on fairy fire ability to further give it to DummyCaster.
3. Wrote a trigger that causes Dummy to cast a custom fairy fire on all units within range of the spell target point.
I don't really understand what the problem is, but I have a suspicion that Dummy Unit can't cast the custom fairy fire because of the spell itself -like it does not work on unexplored territory.
It would be appreciated if you could comment on the situation as well as my script (I am still new to triggers and jass), and suggest how I may fix the situation.
How does Revelation in SC2 actually work:
1. Any caster with the ability just chooses an area (in my case it is the point), and then clicks to perform the spell.
2. You gave a few seconds of vision on the area (or area around the point), if there are any units or buildings, they will be highlighted and stay revealed for some seconds.
What I did:
1. Created Revelation(AoE) spell based on Alliance Magic Tower Scout ability (or based on Goblin neutral building, does not matter) to just have an opportunity to scout an area. Then reduced the casting range from default 99999.00 to my 1400 (it does not matter). Reduced the area of spell effect and removed the scout effect in "Stats: Effects".
2. Created a single spell "Revelation" based on fairy fire ability to further give it to DummyCaster.
3. Wrote a trigger that causes Dummy to cast a custom fairy fire on all units within range of the spell target point.
-
Revelation AoE
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Revelation (AoE)
-
-
Actions
-
Set VariableSet spell_target_area_2 = (Target point of ability being cast)
-
Set VariableSet spell_target_units = (Units within 600.00 of spell_target_area_2.)
-
Unit Group - Pick every unit in spell_target_units and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is Magic Immune) Equal to Нет
-
((Picked unit) is alive) Equal to Да
-
-
Then - Actions
-
Unit - Create 1 Dummy for (Triggering player) at spell_target_area_2 facing Default building facing degrees
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Revelation (single target) to (Last created unit)
-
Unit - Order (Last created unit) to Night Elf Druid Of The Talon - Faerie Fire (Picked unit)
-
-
Else - Actions
-
-
-
-
Custom script: call RemoveLocation(udg_spell_target_area_2)
-
Custom script: call DestroyGroup(udg_spell_target_units)
-
-
I don't really understand what the problem is, but I have a suspicion that Dummy Unit can't cast the custom fairy fire because of the spell itself -like it does not work on unexplored territory.
It would be appreciated if you could comment on the situation as well as my script (I am still new to triggers and jass), and suggest how I may fix the situation.
Last edited: