Trigger code

  • Thread starter Thread starter unknown
  • Start date Start date
U

unknown

Guest
Im making a map where it is possible for players heroes to duel.The problem is i dont know how to set up the trigger.
I want it where a player can type "-duelblue" and then a message pops up to blue asking him if he wants to duel leting him accept or decline. If he accepts it teleports them both to an areana where they can duel. and the doors lock and no one can in or out unless until there is a victor. I need ton know the shortest or best trigger to do this plz and ty.
 
you have to create a dialogbox... i did something like that in another map....

==============================

Create
Events
Map initialization
Conditions
Actions
Dialog - Create a dialog button for Dialog labelled Accept
Set Accept = (Last created dialog Button)
Dialog - Create a dialog button for Dialog labelled Decline
Set Decline = (Last created dialog Button)

=============================

Show Red
Events
Player - Player 1 (Red) types a chat message containing -duelblue as An exact match
Conditions
Actions
Dialog - Show Dialog for Player 2 (Blue)

==============================

Show Blue
Events
Player - Player 2 (Blue) types a chat message containing -duelred as An exact match
Conditions
Actions
Dialog - Show Dialog for Player 1 (Red)

==============================

Accept
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Accept
Actions
Unit - Move (Triggering unit) instantly to (Center of (Playable map area))
Unit - Move (Triggering unit) instantly to (Center of (Playable map area))

===============================

Decline
Events
Dialog - A dialog button is clicked for Dialog
Conditions
(Clicked dialog button) Equal to Decline
Actions
Do nothing

=================================

That should do it...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top