Need Help Fast!!!

Drakosa123

Level 5
Hi can any help me im making a map. I want so a player gets a random unit (Not Hero) in random place on the map and when it dies it makes a agian and agian please can you help me. And i want a Scoreboard that see how much you have killed and that player got 100 kills wins please help me.

bounty hunter2

Level 18
Create a integer variable

trigerr 1
time elapsed = 1

Set integer = math random number between 1 and 5
if integer = 1 create paladin at random point in entire map
else
if integer = 2 create bloodmage at random point in entire map
esle if integer = 3 etc...

triger 2
unt dyes
dying unit = hero

Set integer = math random number between 1 and 5
if integer = 1 create paladin for owner of dying unit at random point in entire map
else
if integer = 2 create bloodmage at random point in entire map
esle if integer = 3 etc...

Drakosa123

Level 5
you mean variable?

bounty hunter2

Level 18
Create a integer variable

yes

Drakosa123

Level 5
CAn you help me with the score board and winning too?

bounty hunter2

Level 18

then:
create integer variable for each player
trigger
unit dyes
if
killing unit = p1
set p1kills = p1kills + 1
change leaderboard player1 to p1 kills
else
if
killing unit = p2
set p2kills = p2kills + 1
change leaderboard player2 to p2 kills
else
etc

TerraNexx

Level 6
Multiboard
Map initialization - create multiboard for player 1,2 (depends if it's multilayer map)
Unit dies
dying unit equal to ( unit you'll randomize spawn)
set i= i+1
Show i

integer=100 or greater
Set victory for player

Drakosa123

Level 5
Please Show in Triggers don't understand so much

Day-Elven

Level 9
1. MB can't be created while map init.
2. You need array for integer variable i.
3. You can create MB by pick every player loop.
4.You don't need a variable for random number also. You can create a variable of type unittype for the units you wanna to give to player, then
• Unit - create Unit[random number between * and *] for player.

Level 5

Level 5
Bump .....

Last edited:

Level 5
Bump!!!!!

Xarwin

Level 19
That's a tripple bump!
But for the heck of it.
You can learn how to create a multiboard here and for your 'random spawn' I'll give you an example but without LEAK removing.

First you'll need a trigger like this:
• Spawn
• Events
• Time - Elapsed game time is 1.00 seconds
• Conditions
• Actions
• Unit - Create 1 Footman for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees
It will spawn the first unit. You can destroy the trigger if you want after it.
Secondary trigger for if a unit dies:
• Events
• Unit - A unit Dies
• Conditions
• ((Owner of (Dying unit)) controller) Equal to User
• ((Owner of (Dying unit)) slot status) Equal to Is playing
• Actions
• Unit - Create 1 Footman for Player 1 (Red) at (Random point in (Playable map area)) facing Default building facing degrees
This just DEMONSTRATED how to do so, those triggers are simple as hell but also leak as hell. I assume you know how to work with variables and to create points.

Drakosa123

Level 5
You didn't read my last message right?

Day-Elven

Level 9
You need integer variable that will count kills. After each kill make it to increase by 1.

You need trigger, that will check (after each kill) the value of this variable. If value = 100, then player win.

That's all)

Xarwin

Level 19
No I didn't read your message, so that's why should trimple BUMP this one and CREATE a new post.
Example trigger:
• n00b
• Events
• Unit - A unit Dies
• Conditions
• Actions
• If (All Conditions are True) then do (Then Actions) else do (Else Actions)
• If - Conditions
• KillsInteger Equal to 100
• Then - Actions
• Game - Victory Player 1 (Red) (Show dialogs, Show scores)
• Else - Actions
• Set KillsInteger = (KillsInteger + 1)

Replies
8
Views
484
Replies
2
Views
447
Replies
1
Views
291
Replies
4
Views
532
Replies
19
Views
1K