Help (Once Again..)

  • Thread starter Thread starter DoYouLikePie
  • Start date Start date
D

DoYouLikePie

Guest
I am making the map, you probably know by now, lol. And I am making the multiboard exactly how the tutorial told me to. But when I kill a unit, the multiboard goes to 1. The next unit I kill, the multiboard stays at one. Here is what I have:

This is for the player colors for the multiboard (Just 6 for an example I can add more later)

Player Colors
Events
Map initialization
Conditions
Actions
Set PlayerColor[1] = |c00ff0000
Set PlayerColor[2] = |c000000ff
Set PlayerColor[3] = |c0000ffff
Set PlayerColor[4] = |c008000080
Set PlayerColor[5] = |c00ffff00
Set PlayerColor[6] = |c00ff80000

This is the triggers for creating the multiboard. Everything is fine here I think, because the multibaord shows.

Create Multiboard
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Set PlayerCount = (Number of players in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing))))
Multiboard - Create a multiboard with 3 columns and (PlayerCount + 1) rows, titled Kills
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Player Name
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
For each (Integer A) from 1 to (1 + PlayerCount), do (Actions)
Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column 1, row 1 to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 1, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 2, row (Integer A) to Show text and Hide icons
Multiboard - Set the display style for (Last created multiboard) item in column 3, row (Integer A) to Show text and Hide icons
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 2.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 8.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 2.00% of the total screen width
Set List = 2
Player Group - Pick every player in (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) controller) Equal to User))) and do (Actions)
Loop - Actions
Set Multiboard_Spots[(Player number of (Picked player))] = List
Multiboard - Set the text for (Last created multiboard) item in column 2, row List to (PlayerColor[(Player number of (Picked player))] + ((Name of (Picked player)) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 3, row List to 0
Multiboard - Set the icon for (Last created multiboard) item in column 1, row List to ReplaceableTextures\CommandButtons\BTNArcaniteMelee.blp
Set List = (List + 1)
Multiboard - Show (Last created multiboard)

Last is the update. This is where the problem is I think.

Player Kills Update
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) controller) Equal to User
Actions
Set KillCount[(Player number of (Owner of (Killing unit)))] = KillCount[((Player number of (Owner of (Killing unit))) + 1)]
Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Owner of (Killing unit)))] to (String(KillCount[(Player number of (Owner of (Killing unit)))]))

If anyone does know what I did wrong, please replay as soon as possible.

Thanks
_______________

P.S. How do you get the picture next to your account name?
 
This:

Code:
Set KillCount[(Player number of (Owner of (Killing unit)))] = KillCount[((Player number of (Owner of (Killing unit))) + 1)]

should be this:

Code:
Set KillCount[(Player number of (Owner of (Killing unit)))] = KillCount[((Player number of (Owner of (Killing unit)))] + 1

Note how that + 1 is outside the brackets. When it was inside, you were adding to the index.

As for the picture, it's called an avatar. Click User CP in the bar at the top of the screen, the click Edit Avatar.
 
Thanks

Thank's it worked, but I have another question. After awhile, the courpse in this area get to be too much. Is therer a trigger that removes courpes from a region area? Thanks


_____________________________________________________________

P.S. Where does that one guy get the mage avatar from? Can I get a moving avatar from a website somewhere? Thanks! :D
 
Here is the action:

Code:
Pick every unit in <region> matching Unit is Dead equal to true and do Remove (picked unit).
 
Nope

Doesnt work :(

Heres what I put:

Clean
Events
Player - Player 1 (Red) types a chat message containing -clean as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in CleanRed <gen> matching (((Triggering unit) is ) Equal to True)) and do (Unit - Remove (Picked unit) from the game)


When I play the game, and kill some creeps, I type -clean, and the courpes are still there. Do you know what to do???


_______________________

Thanks!
 
Sorry

Still doesnt work, this is what I have:

Clean
Events
Player - Player 1 (Red) types a chat message containing -clean as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in CleanRed <gen> matching (((Matching unit) is ) Equal to True)) and do (Unit - Remove (Picked unit) from the game)


Thanks for helping!

______________________

Bang! :banghead:
 
Get rid of the "matching (((Matching unit) is ) Equal to True)" part.
 
But..

That would get rid of alive units too, then..

Man this is a hard subject. LoL


_______________
Stay cool. :shades:
 
If you're sure you're never going to need any corpses:

Code:
RemoveCorpse
    Events
        Unit - A unit Decays
    Conditions
    Actions
        Unit - Remove (Decaying unit) from the game
 
Idea!

Ace, can I do this? Or is this not possible:

Conditions:
Owner of triggering unit equal to Netrual Hostile?


:P dont no much about editor yet lol

:) Thanks

______________________________________________

Nobody ever answered my question: Do you yahoo? LoL
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top