• 0

    posted a message on Death Actor - Need Help

    @Southpaw444: Go Just clicking on the marine unit you can see the death effects thingy on the right. Maybe something with that will work but i havent tried it so i dont know. Hope this helps.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Character Modification

    @Isthereanopenname: Go

    You need to make a trigger that runs off the event "Dialog Item Is Used" with the action "Add weapon to unit" Have your character start out with no weapons and add them with this trigger for however many weapons you want.

    For run speed its more difficult and i'm not sure how all this works. This Link is to OneTwoSC on youtube: http://www.youtube.com/user/OneTwoSC

    He does all sorts of useful tutorials about the SC2 Editor and I think the best place to start looking how to do this kind of thing would be with his Hero Unit tutorial. (He does some attribute thingy and you can change speed with that and im sure you could find a way to use the triggers to set that off somehow.) Hope this helps.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Need help with victory conditions.

    @Cobrafanglol: Go

    The easiest way I've found to do this is as follows. Firstly you need to make a variable in the trigger editor. Just right click on the left-hand side, scroll down to the "New ->" option and create a new variable. It should automatically be an integer and you need to set the basic value to 4 by dodubleclicking the "Intial Value" option in the right-hand box. After that create a new trigger and make the event "Unit Dies". Double click the event and click the value button. Scroll down the list of possible units and select your first hive. Then hit ok and go to actions. Make a new action "Modify Variable" have it subtract one from the variable. Copy paste the whole trigger and make 3 extra copies each one for a different hive. After that make a new trigger with a "Periodic Event" and set it to every 1 second of game time This event could be anything that triggers when you want the player to achieve victory, any unit dies, for instance. (I say that because if you have it be every one second it wont let you play past victory...you'll see what i mean if you test this.) Then go to actions and create a new "If Then Else" action. Into the If box make a condition "Within Bounds" Change the value to the variable you made and for the bounds "0 <= "Variable _<= 0" Then create a new "End Game" action in the "Then" box and it should be automatically set to Victory for player 1.

    If you still need help send me a PM and ill try and help you out.

    Posted in: Miscellaneous Development
  • 0

    posted a message on How to fix an attack animation that is shooting from the base of a unit.

    SEE LATER POST-Figured out a much better way to do this.

    Ive been trying to fix this forever and havent found a better solution myself or on these forums. First off this is for a map with only one level (if you have a turret on the ground and the same type of turret on a cliff this will not work. Also this if for units that shoot missiles) i do not know if it works with other types of attacks. In truth this is probably not the best way to do this but if you are desperate it should work.

    Once you have opened up your map and data editor click the filters and set it to actors and type in the name of your "Attack Missile" actor (for instance the photon cannon has the actor "Photon Cannon Actor Missile" For this actor to be here you have to copy/make an actor for whatever tower/unit you are using. (it is named whatever you named it) You should see a selection for this actor (not the model) called "Events +" Double click on this and an event window will open with a few events in it depending on the attack missile. Right-click and go to add event. Look back in the window and a new event with the title "Action Damage" will be there. Left click it. Now you need to go to the "Msg Type" box and scroll down till you find "Unit Birth"-click this Now go down one more box to the "Source Name" box scroll down and find the "Weapon" unit associated with your unit and left click it. (for a photon cannon the name of the weapon is "Weapon - Phase Cannon Weapon") Leave the last box unchanged and look back at the event window. Look under the "Unitbrith.<Your Weapon Name>" event (there may be more than one make sure you click on the one that says "Action Impact") and click on the "Action Impact" name. Click the box next to the "Msg Type" text and scroll down until you find either "Set Position Height (Absolute)" or "Set Position Height (Relative)", both work in different ways

    "Set Position Height (Relative)" is easier. Just type in the X/Y values of a position in your map (if you dont know how to find these values I explain it farther down the post) that has the correct cliff height and then Set the height value to the height you want your missile to come from (for a photon cannon the turret height is almost exactly 1 but from different sizes/turrets you have to find the correct height through trial and error). Now when your unit shoots the bolt should spawn at that height above the base of your unit.

    "Set Position Height (Absolute)" is slightly different. First off hit ok on the event window-we'll come back to this in a second. Go to your custom map and hover over a cliff that is the same height as the place where you are going to build your turrets. On the very bottom left of the program bar you sould see "Point: (.*,.*,.*) where *=numberz. the last value is the point you want. It might register, for instance, (88.2, 96.5, 5.0) This means the X value of that point is 88.2 the Y value is 96.5 and the Z (height) value is 5.0 Record the Z (height) value, go back to your data editor and re-open the event window for your unit's "Attack Missile" actor. Find the (SetZ__) text and click on it (it should be under the "UnitBirth" event you made earlier) Now change the height value to the value you recorded before but with the height you want it to shoot from added (so for the sample point and a tower that you want to shoot from 1 height from the base of the tower it would be (5+1)) To find the right height that you need to add you just have to test different values.

    Now when your unit shoots the missile should spawn at that height and shoot. However, the attack will only target the base of the eneny unit for some unkown reason...like i said this isnt the best way but it might work for you or at least help you think of something to fix this (if you find a better fix let me know)

    Posted in: Miscellaneous Development
  • 0

    posted a message on I can't get my projectiles to fire out of the gun.

    mis-post idk how this happend sorry

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.