HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Leaderboard and Timer

02-09-2004, 11:11 PM#1
TrainSpotter
Okay, here is what I am trying to do...

I want all players to see a leaderboard with one value - Lives Remaining.
Lives Remaining is equal to varible 'souls' which is an integer set at 100.
In the Initialization trigger I have it run trigger 'Create'. My 'Create' trigger sets up my board. I have another trigger 'Refresh' that runs when a specific unit dies, so my board gets updated.

Problem is: The board never displays, I have looked at several other games and tried to mimic what they have, but still nothing.

Second thing I am trying to do...

Start and display a timer for all players at the beginning of the game. The timer should run for 30 mins. My Initialization trigger turns on the timer.

Problem is: Timer doesn't display

Please look at my map and see if you can figure out where I am going wrong.
02-10-2004, 02:34 AM#2
TrainSpotter
-
02-10-2004, 04:52 AM#3
AllPainful
The board never displayed because you CAN'T make a leader board on INIT, you MUST make it after the game has already started (an "Elapsed time 1 second" is what most people use.)

Same with timers, you can't create them on init (INIT is what happens DURING the "Loading" screen)
02-10-2004, 05:23 AM#4
TrainSpotter
I got the board to display, but still no timer.

I have the Int trigger run the game timer trigger, On the game timer tirgger i have the event of elapsed time set to one second.
02-10-2004, 05:48 AM#5
AllPainful
Do NOT run the timer trigger AT ALL until after the game starts.

Have the timer event ONLY "Time Elapsed" and do not run the trigger via another trigger.

And also after creating the timer, do a "Show timer window for (Last created timer)"
02-10-2004, 06:27 AM#6
TrainSpotter
It worked! Thank you very much!

Since you were so helpful on that problem I need help with a new problem.

1st problem - I am trying to make it so ppl can't spawn camp. What i did is create region in the two teams' bases, one called spawn1 and the other spawn2. The I made a trigger, looks like this:

When unit enters region 'spawn#'
Unit equal to player 1-6 (for team 2 spawn visa versa for other players)
Instantly move triggering unit to center of playable map
Display text (blah blah blah...)

Problem is: nothing happens

2nd problem - I am trying to make it so the Hunters get penialized when they kill a villager that has not been possesed. trigger looks like this:

Unit owned by neutral passive dies
Triggering unit equal to Male Villager
Owner of (killing Unit) equal to player 1-6
(punishment)

Problem is: nothing happens, p.s. all the villagers that the map creates are controlled by neutral passive

3rd and last (not really a big promlem just would like to fix it up) - There are 7 regions that villagers spawn at. Right now I have it so 1 spawns in each region every 30 seconds. The problem with this is, there is nothing to stop them from getting out of control if left alone. I tried to make is so when the trigger ran every 30 secs and the food used by nuetral passive was less than or equal to 5 it would spawn a unit in eash region. But when I set it up that way the trigger only ran once.

Please d/l my map if you want to see how i set things up.
02-10-2004, 07:28 AM#7
AllPainful
1. Your trigger should look like this
Code:
Event
  Unit enters region Spawn1
Conditions
  [color=red]OR condtions[/color]
     Owner of entering unit is equal to player 1
     Owner of entering unit is equal to player 2
     Owner of entering unit is equal to player 3
     Owner of entering unit is equal to player 4
     Owner of entering unit is equal to player 5
     Owner of entering unit is equal to player 6
Actions
  Move Entering unit instantly to center of playable map area
  Send message to force (convert player to force(owner of(enterting unit))) the message "Do not spawn camp"
NOTE: I used "Entering Unit" instead of triggering unit, and you must use an OR in the conditiions, if you don't use an or then ALL the conditions must be true for the trig to run, and of course its impossible for a unit to be owned by more that one player.


2. Same thing, don't forget the OR and use "Dying unit" instead of "Triggering unit" and see if it works.


3. That is unusual because I use a "Food becomes less than" in one of my triggs in my map and didn't have a problem, do me a favor (I ain't gonna download the map, WE takes for ever to open on my computer) just goto the trigger editor, hit "Copy as Text" and paste the trigger for your 3rd question here (Between [code] tags so I can see the indentations) and I will see if I can figure out what is wrong with it.
02-10-2004, 02:05 PM#8
TrainSpotter
thanks for all your help, I am at work now so i'll have to try it when i get home.

I'll post the third problem then - thanks again