Yet another trigger problem....

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
Hello pps long time no see. Well anyway i stoped making my map but i was bored so i started making it again and me and my friend tested it and supisingly there were lots of stuff that actually worked!!!

well heres my all random trigger that i took from this site from free trigger section and its got a problem. when u type in -ar it chooses the same hero for every player. Now, i know i have to put in a wait action somwhere or rearenge the whole trigger but i just cant seem to get it right. Heres the trigger

Code:
Events
    Player - Player 1 (Red) types a chat message containing -ar as An exact match
Conditions
Actions
    Trigger - Turn off Random Pick Human <gen>
    Trigger - Turn off Random Pick Undead <gen>
    For each (Integer A) from 1 to 10, do (Actions)
        Loop - Actions
            If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                If - Conditions
                    ((Player((Integer A))) slot status) Equal to Is playing
                Then - Actions
                    Set Random_Hero = (Random integer number between 1 and MaxHeros)
                    Unit - Create 1 RandomHero[RandomData[Random_Hero]] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
                    Selection - Select (Last created unit) for (Owner of (Last created unit))
                    Game - Display to (All players) for 9.00 seconds the text: ((Player_Colors[(Player number of (Owner of (Last created unit)))] + ((Name of (Owner of (Last created unit))) + |r)) + ( has chosen  + (Name of (Last created unit))))
                    Set RandomData[Random_Hero] = RandomCount
                    Set RandomCount = (RandomCount - 1)
                Else - Actions
                    Do nothing

HF with that trigger ill be back in like 2 hours hope i get some answers
 
if yours doesnt work, here you go::((should work fine)
Code:
Set Heros
    Events
        Map initialization
    Conditions
    Actions
        Set hero[1] = Paladin
        Set hero[2] = Archmage
        Set hero[3] = Mountain King
        Set hero[4] = Blood Mage
Code:
Create
    Events
        Player - Player 1 (Red) types a chat message containing -all random as An exact match
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Unit - Create 1 hero[(Random integer number between 1 and 4)] for (Picked player) at ((Picked player) start location) facing Default building facing degrees
 
Maybe i didnt explain well i have everything i need for the trigger i just want to know how can i set it to wait for like 1 second while it run and then repeat it until all players that are playing get heroes
 
Starlite said:
if yours doesnt work, here you go::((should work fine)
Code:
Set Heros
    Events
        Map initialization
    Conditions
    Actions
        Set hero[1] = Paladin
        Set hero[2] = Archmage
        Set hero[3] = Mountain King
        Set hero[4] = Blood Mage
Code:
Create
    Events
        Player - Player 1 (Red) types a chat message containing -all random as An exact match
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Unit - Create 1 hero[(Random integer number between 1 and 4)] for (Picked player) at ((Picked player) start location) facing Default building facing degrees

Add Wait 1 second to loop and ur done
 
Actually i got it but i was rong. I missed to write an important line and becouse of that i was getting same heros.
 
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

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top