Problem with Dialog Boxes that gives rewards

ROBBYDOBBY

New Member
Reaction score
3
Hey,
I'm having trouble with my Dialog Boxes at the moment.
I've been following AceHart's helpful guide to Dialog Boxes and I've managed to create a dialog box to choose what item you want for helping the soldier.
When you click on an item it goes to another short cinematic, then should give the item to the player. BUT it doesn't Give the item to the player, and now im very confused. :confused:
Thanks in advance,
Robbydobby
Trigger: (I've only included one of the rewards in the trigger because the triggers aren't different.)
Code:
Reclaiming Milda post 5
    Events
        Unit - A unit enters Quest Range Mildas post 1 <gen>
    Conditions
        ((Owner of (Entering unit)) controller) Equal to User
    Actions
        Special Effect - Destroy Reclaiming_Milda_Post
        Cinematic - Turn cinematic mode On for (All players)
        Camera - Pan camera for Player 1 (Red) to (Position of Captain 0008 <gen>) over 0.00 seconds
        Cinematic - Send transmission to (Player group((Owner of (Entering unit)))) from (Entering unit) named (Name of (Owner of (Entering unit))): Play No sound and display I've done it. Ive k....  Modify duration: Add 0.00 seconds and Wait
        Cinematic - Send transmission to (Player group((Owner of (Entering unit)))) from Captain 0008 <gen> named Captain: Play No sound and display Thanks! You are in ....  Modify duration: Set to 10.00 seconds and Wait
        Cinematic - Turn cinematic mode Off for (Player group((Owner of (Entering unit))))
        Dialog - Clear Reclaiming_MP_Box
        Dialog - Change the title of Reclaiming_MP_Box to Choose your reward!
        Dialog - Create a dialog button for Reclaiming_MP_Box labelled Club
        Set Reclaiming_MP_Button1 = (Last created dialog Button)
        Dialog - Create a dialog button for Reclaiming_MP_Box labelled Staff
        Set Reclaiming_MP_Button2 = (Last created dialog Button)
        Dialog - Create a dialog button for Reclaiming_MP_Box labelled Dagger
        Set Reclaiming_MP_Button3 = (Last created dialog Button)
        Dialog - Create a dialog button for Reclaiming_MP_Box labelled Sword
        Set Reclaiming_MP_Button_4 = (Last created dialog Button)
        Dialog - Show Reclaiming_MP_Box for (Owner of (Entering unit))
        Trigger - Turn off (This trigger)
 RMP 1
    Events
        Dialog - A dialog button is clicked for Reclaiming_MP_Box
    Conditions
        (Clicked dialog button) Equal to Reclaiming_MP_Button1
    Actions
        Hero - Create Battered Club and give it to (Triggering unit)
        Hero - Add 400 experience to (Triggering unit), Show level-up graphics
        Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cff25525540Congrat...
        Cinematic - Turn cinematic mode On for (All players)
        Cinematic - Send transmission to (Player group((Triggering player))) from Captain 0008 <gen> named Soldier:: Play No sound and display  Oh, you want that?....  Modify duration: Set to 9.00 seconds and Wait
        Cinematic - Turn cinematic mode Off for (All players)
 
Actions
Hero - Create Battered Club and give it to (Triggering unit)
Hero - Add 400 experience to (Triggering unit), Show level-up graphics
Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cff25525540Congrat...
Cinematic - Turn cinematic mode On for (All players)
Cinematic - Send transmission to (Player group((Triggering player))) from Captain 0008 <gen> named Soldier:: Play No sound and display Oh, you want that?.... Modify duration: Set to 9.00 seconds and Wait
Cinematic - Turn cinematic mode Off for (All players)[/CODE]

theres no unit that clicked a dialog button :rolleyes:

Solution (assuming each player only has one hero on the map, if not i would upload ur map so people can see the situation)
Code:
Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Picked unit) is A Hero) Equal to True)) and do (Actions)
    Loop - Actions
        Hero - Give (Last created item) to (Picked unit)
 
Thanks :p i was thinking that was the problem :)
Argh, I've just tried it but it wont give the item!!! I'll upload the map :
 
you can use the EDIT Button
and then push "go advanced"

Solution (assuming each player only has one hero on the map, if not i would upload ur map so people can see the situation)
Code:

Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Picked unit)
Replace this with matching unit
is A Hero) Equal to True)) and do (Actions)
Loop - Actions
Hero - Give (Last created item) to (Picked unit)
there is a mistake ( a very large one)
 
General chit-chat
Help Users
  • The Helper The Helper:
    Happy Tuesday Night!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top