At Most
Sep 8 2008, 9:58 pm
By: ColdFusion  

Sep 8 2008, 9:58 pm ColdFusion Post #1



I've got a selection system where if you select a hero it checks to see if the player force (force 1) has at most 0 'hero name'.

Then i've got another trigger where if you attempt to select it but someones already taken it I made it to check force 1 commands at most 1 'hero name' and even though no one has picked the hero, it keeps giving me the error. I used the same trigger for the other heroes and it works. I tried at least 1 'hero name' too but it still gives me the error. Anyone know what's up?

Post has been edited 1 time(s), last time on Sep 8 2008, 10:05 pm by ColdFusion.



None.

Sep 8 2008, 10:09 pm Roy Post #2

An artist's depiction of an Extended Unit Death

Uh... What?

I'm sorry, but I don't understand what you're saying. I'll take a shot at it anyways.

You're using "Commands at most 1 (hero)" which, in translation, means "Commands 0 or 1 (hero)." Maybe this is the source of your problem?

You didn't elaborate on this "error." Could you describe what this error is? And maybe describe this selection system a bit more?




Sep 8 2008, 10:11 pm ColdFusion Post #3



The error is a display text I put for someone who tries to pick an already picked hero. "Error: Hero is already taken"



None.

Sep 8 2008, 10:15 pm ColdFusion Post #4



Also, for the Hero Taken trigger I tried changing it to force 1 commands at least 1 'hero' and exactly 1 'hero' but when I do that nothing happens at all. It doesn't pick nor gives an error. Graghhh.

Could it be because i'm using a force? Perhaps i'm going to have to do the player 1-8 commands at least 1 'hero'



None.

Sep 8 2008, 10:17 pm Roy Post #5

An artist's depiction of an Extended Unit Death

Thanks for updating your first post :P

Well, "At most" is definitely the wrong condition to be using. "At least" SHOULD work, but as you stated, you still get a problem. I would review your trigger and make sure everything is right (You can compare with the triggers that you claim work). If nothing is amiss, I would check for silly things you might accidentally overlook, such as placing the hero on the map owned by someone in force 1. If you still have problems and feel comfortable doing so, I would suggest posting the map.

(Does your first trigger create the hero for the player when he/she selects it?)

Of course, you could do other methods of selecting a hero, such as adding the selection condition "(computer player) commands at least 1 (hero)" and then give the hero to the player. Therefore the trigger could only run once, because the condition would be checking for if the computer player still had the hero.




Sep 8 2008, 10:24 pm ColdFusion Post #6



Hum, I just now tried deleting the 'Hero already picked' trigger and it still doesn't even want to pick. This narrows it down..



None.

Sep 8 2008, 10:31 pm NudeRaider Post #7

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Uhm when the hero has been chosen by a player, and then another player steps on the same beacon (if thats your choosing system) you can detect for at least 1 <hero name> of force 1 and give the error message.
If he steps on the beacon and force 1 brings 0 <hero name> to anywhere then just give him his hero.
Its really simple. As Roy said, you should check your triggers for mistakes.




Sep 8 2008, 11:02 pm ColdFusion Post #8



Lol, you guys were right. It was something retarded, I got one of my locations wrong.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
Please log in to shout.


Members Online: DiearAnother