• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Random Environments

Status
Not open for further replies.
Level 5
Joined
Apr 11, 2011
Messages
107
heres what ive got so far, is there a more efficient way to do this? Will this cause problems besides accessibility issues? any help is appreciated..

note: ive only done the 8 regions. (eventually the whole map will be covered)
 

Attachments

  • test.w3x
    26 KB · Views: 38
Level 11
Joined
Jun 30, 2008
Messages
580
Simplicity, is your friend.

  • VarSet
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set REGION[1] = 1 <gen>
      • Set REGION[2] = 2 <gen>
      • Set REGION[3] = 3 <gen>
      • Set REGION[4] = 4 <gen>
      • Set REGION[5] = 5 <gen>
      • Set REGION[6] = 6 <gen>
      • Set REGION[7] = 7 <gen>
      • Set REGION[8] = 8 <gen>
      • Set MAX_REGION = 8
      • -------- ------- --------
      • Set Doodad[1] = Outland Tree Wall
      • Set Doodad[2] = Rock Chunks
      • -------- ------- --------
        • Do Multiple ActionsFor each (Integer A) from 1 to MAX_REGION, do (Actions)
          • Loop - Actions
            • Destructible - Create a Doodad[1] at (Random point in REGION[(Integer A)]) facing (Random angle) with scale (Random real number between 0.50 and 1.00) and variation (Random integer number between 1 and 10)
            • Destructible - Create a Doodad[2] at (Random point in REGION[(Integer A)]) facing (Random angle) with scale (Random real number between 0.50 and 1.00) and variation (Random integer number between 1 and 10)
 
Level 5
Joined
Apr 11, 2011
Messages
107
Thanks a lot, never woulda thought of that. Any idea how to do a movement system similar advance wars for the gameboy advance?
 
Level 5
Joined
Apr 11, 2011
Messages
107
You click a unit, it shades all the squares the unit is able to move to in red, difficult terrain cost double, so movement past them is halved. I was considering using circle of powers to mark moveable squares. All in all this map is going to be a turn based rts.
 
Level 11
Joined
Jun 30, 2008
Messages
580
Well, you can terrain the map like tiles of chess. 2 alternating squares. And you could do a loop of checking the regions around the unit, and then if those squares are movable create a Circle of power on those regions to show the moves, and then after the move remove the CoP.
 
Level 5
Joined
Apr 11, 2011
Messages
107
I was going to use an "invisible" chessboard out of regions. Lable then abc's by 123's. Each of the units have a predetermined number of squares they can move, varying from unit to unit. After the unit has moved, it becomes paused and can't be used till your next turn.
 
Level 11
Joined
Jun 30, 2008
Messages
580
Cool! Well, yea use the regions thing.
Btw cool concept I'd like to test it with you.

Also why don't you make this an official Map project! Go to Map Development and display your project so people can help you and follow your project! And get a bigger fan base :)

This could be an interesting game :)
 
Level 5
Joined
Apr 11, 2011
Messages
107
ill consider making it a project once im father along. and the two camps youve shown, me, are pretty close to what i had in mind. ill post back on here once ive got more of a foothold. thanks to both of you!
 
Status
Not open for further replies.
Top