Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Flaming Boulders!
Flaming Boulders!
Apr 25 2008, 4:42 am
By: Oh_Man  

Apr 25 2008, 4:42 am Oh_Man Post #1

Find Me On Discord (Brood War UMS Community & Staredit Network)

Ok high people, I have a bit of a complicated idea I want to put to the test here. Well, complicated for me. :P

I have a hero unit fighting three other units (each one a human player) and I want it to use a ability called Flaming Boulder

This ability will send an observer with exploding wraiths on it flying towards a randomly choosen player. But I don't want it to trail the player like some heat seeking missle. Rather just shoot towards the place the player was at the time of the trigger initialisation.

Thank you in advance,
Oh_Man[TFE]




Apr 25 2008, 4:50 am Ashamed Post #2

Hear me Raor!!

Just do Center location (On the player) not preserve and then do your trigger create observer at pl-1 send it to the location... now the location is on the play but it wont always been on it!! Its pretty simple!



None.

Apr 25 2008, 4:59 am Falkoner Post #3



You will randomize the player using death counts, just constantly have a death count counting to 4, when it reaches 4, set it back to 1, and then it is always either a number 1-3.

Now, depending on which death count is currently up when they use the spell, you center a location on a player, then you set the current death count somewhere else(in another death count) then you constantly center the location on whichever enemy was selected and order the observer to move to the location, then you just center a location on the observer, and create a unit and kill it for explosions :)



None.

Apr 25 2008, 5:00 am UnholyUrine Post #4



Player:Current
Condition:
<condition for firing the flaming boulder>
<random condition met (or else it will always center on the upper left most person -- Add Falkoner's triggers :P)>
Action:
MoveLocation - Center Location X on Unit for Player (Decided by the random condition)
Create 1 observer
Preserve Trigger

Now the second trigger

Player: current
Condition: Current player has an observer (Or the Flaming boulder condition is met)
Actions:
Order Observer at Anywhere (Or cover the area where the game is Location) Move to Location X
Preserve Trigger

Done.. the location won't move.. Unless you fire another observer
So you would add the Condition for the first trigger
"Current player commands exactly 0 observer"

so the person can't fire 2 observers at a time..



None.

Apr 25 2008, 8:53 am Oh_Man Post #5

Find Me On Discord (Brood War UMS Community & Staredit Network)

Thank you for your assistance!




Apr 26 2008, 4:23 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

Wraiths suck. Use spider mines. Not only will it be directly under the obs, but it won't be displaced if you move it to the wrong spot, and it will successfully go around unwalkable areas. If it does go over some area like that, imagine it "jumps" past, and doesn't explode, since it's in the air.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 27 2008, 1:02 pm Oh_Man Post #7

Find Me On Discord (Brood War UMS Community & Staredit Network)

i tried that it didnt wrk i got that annoying "unable to put unit here error".

Maybe your talking about something else? I'm creating and killing spider mines underneath the observe to create a 'flaming' affect. That's why I was going to use dying wraiths cause they do not get this above mentioned error.




Apr 27 2008, 5:59 pm rockz Post #8

ᴄʜᴇᴇsᴇ ɪᴛ!

You need to move it there, rather than create it. Create them in some other area first, then move them.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 28 2008, 11:12 am Oh_Man Post #9

Find Me On Discord (Brood War UMS Community & Staredit Network)

Hey people I'm kinda having trouble with the whole 'preserve trigger' idea I don't think I know how it works lol.

If I put a preserve trigger in my trigger? Does it mean that trigger will continually loop while the condition is met? If the condition is no longer being fulfiled does the trigger stop until next time it is met again?

if you have a trigger layout like this

Condition
Always

Action
blah
blah
preserve trigger
bloo

Do the blahs preserve but the bloo only fire once?

ALSO... I have actually been refining my Boulder Throw idea. I want it to go flying from the boss towards the player (at the time of trigger intiilsation) and then I want it to keep going. Like if the unit stands there the boulder hits him splat but if he stands aside it just keeps flying off the screen and eventually disappear.

How would I go about that??

Thanks :S
Oh_Man




Apr 28 2008, 12:48 pm rockz Post #10

ᴄʜᴇᴇsᴇ ɪᴛ!

No, preserve trigger anywhere will make the entire trigger continually loop as long as the condition is met.

As for keeping it going, you will need some sort of directional system. It's kind of advanced, so you probably won't want to do it. It essentially detects which direction you are going, so you can then order the unit to the same direction. I know tux made a gunner system in preparation for rush 2, which works pretty well.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Apr 28 2008, 9:18 pm Crackhead Post #11



You may find it useful to use Switches here. Simply Set the Switch in one trigger based on the conditions and use an action to remove one or multiples of the conditions. Use the next trigger based on the trigger Set to make the action and Clear the Switch.

Trigger 1
Conditions -
Current Player Commands 1 Scout(Using Spell-cast system).

Actions -
Remove Scout Owned by Current Player
Set Switch Y(Activate Boulder)
Preserve Trigger
Comment: Cast Boulder(Trigger 1)


Trigger 2
Conditions -
Switch Y is Set

Actions -
Move Observer(Boulder) to Location, "Start Boulder Here"(Player Y).
Command Observer(Boulder)to Location, "Target Here"(Player X).
Clear Switch Y
Preserve Trigger
Comment: Cast Boulder(Trigger 2)

You're final trigger should be creating or moving wraiths to the observer's location and having them destroyed upon entering a location centered upon the observer. Make sure the observer is owned by the player casting so that you can center the location correctly and add a condition that prevents the first trigger from starting if the player owns an observer.

Conditions -
Player Commands Exactly 0 Boulder(Observer)

All triggers should be able to have Preserve Trigger enabled.



None.

Apr 28 2008, 9:44 pm rockz Post #12

ᴄʜᴇᴇsᴇ ɪᴛ!

DCs work better than switches.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

May 1 2008, 6:08 am Paravin. Post #13



Not only some Wraiths, a ton of them.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: zsnakezz, jun3hong