Your "success" so far

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
So... For you mapmakers, if you wish, post here what you've done so far, and how you did, and if possible, the map.

Myself, I've created a map with mouse look support, key press support for movement, and a manual attack using C.

Non-key press/mouse look. Just third person camera with C to attack.



Edit: Click movement, creates an explosion where you click.

Edit2: Improved interface, UI is now gone.

Edit3: Crashing issue is fixed.

 

Attachments

  • Woo2.zip
    38.5 KB · Views: 344

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Added both versions I've made...
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
187
Mouse look. !!!!! you mean you can actually track the mouse coordinates (not just after a click)?????

OMG ill have too see it to believe it....



EDIT:

OMFG this opens so many possiblities.... thank god....

It would work alot better if you would keep the zoom at a certain level
and make UP and Down mouse movments move the camera towards the sky or ground so it reacts like a first person shooter with WASD as the controls. And boom....!!! perfection
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
My current attempt is to make the zealot walk in the direction your camera faces... Way more complex than it seems.
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
187
Quote:
Camera - Lock Camera Mouse Relative Mode On/Off(1, On)

There you go. However, selecting/ordering units is impossible while doing this.


ya may have to hit a button to switch out of camera mode
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I decided to just order him to move to the clicked position. o.o
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
187
i figured out how to do it

it will take me a bit to set it up.
but heres the basic idea.....
you can create a local variable

use the function real to int to convert
and you can then set the variable to any camera property (pitch,yaw,roll...etc) for any camera.

Hell it even brings up a list of all the properties.... freaken awesome.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Added a click movement mod... It's optimal to lock your mouse onto the zealot when you start.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Well, I've been messing with the GUI mostly, to see how far it can go...
Trigger:
  • Untitled Trigger 001
    • Events
      • Timer - Elapsed time is 1.0 Real Time seconds
    • Local Variables
    • Conditions
    • Actions
      • Camera - Apply Camera 001 for player 1 over 0.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Include Target
      • General - Wait 2.0 Real Time seconds
      • Camera - Lock Camera Mouse Relative Mode On/Off(1, On)


There's what sets my mouse look up.

Trigger:
  • Untitled Trigger 002
    • Events
      • UI - Player 1 presses C key Down with shift Exclude, control Exclude, alt Exclude
    • Local Variables
    • Conditions
    • Actions
      • Unit - Order Zuk'rah [109.25, 33.00] to ( Attack (Random Any unit from (Units in (Region((Position of Zuk'rah [109.25, 33.00]), 100.0)) having alliance Enemy with player (Owner of Zuk'rah [109.25, 33.00]) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))) (Replace Existing Orders)


To attack a nearby unit using C, had to go through so much to find the value within the editor to turn auto-attack off.

Trigger:
  • Untitled Trigger 003
    • Events
      • UI - Player 1 clicks Left mouse button Down.
    • Local Variables
    • Conditions
    • Actions
      • Unit - Order Zuk'rah [109.25, 33.00] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
      • Environment - Create a Small Protoss explosion at (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))


To move to the clicked position, effect is there so you can see where you clicked.
 

BlowingKush

I hit the blunt but the blunt hit me.
Reaction score
187
Just figured out Global variables.

Create them just like your creating a new trigger
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Right click left side, New > Variable. Or simply, Ctrl + B.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
591
Code:
bool gt_UntitledTrigger001_Func (bool testConds, bool runActions) {
    // Variable Declarations
    point lv_untitledVariable001;

    // Variable Initialization
    lv_untitledVariable001 = RegionRandomPoint(RegionFromId(1));

    // Actions
    if (!runActions) {
        return true;
    }

    UnitCreate(1, "Mothership", 0, 1, lv_untitledVariable001, 270.0);
    return true;
}

Quite C-Like.

I wonder if there are leaks.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Yea, though creating a unit at a random point is pretty simple...

Edit: There's apparently a garbage cleaner, though how well it runs is unknown.
 

Sevion

The DIY Ninja
Reaction score
424
Yea, though creating a unit at a random point is pretty simple...

Edit: There's apparently a garbage cleaner, though how well it runs is unknown.

One way to find out:

Make a super big loop that creates a leak. Monitor you process memory.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top