help with fast food restaurant

  • Thread starter Thread starter Mothman
  • Start date Start date
M

Mothman

Guest
Well I'm making a game and I'm trying to make a fast food restraunt. What I wanna do is have it so if you highlight the cashier it says "Wanna but a burger?" and you can either click yes or no. If you click no nothing happens and the thing closes. If you click yes then in the back of the restraunt a computer guy picks up the burger, drops it on the fire, waits 4 seconds, picks it up and brings it out then drops it in front of you...How do you do this?

And THEN
I wanna make it so if you go in the back of the restraunt and dont leave the region after 10 seconds 4 units will appear and kill you. How do I do this?
 
that is some pretty advanced stuff guy. i dont think world editor is capable of doing just that, but it can probably come pretty close, just wait for acehart, or ryoko, they will probably be able to get it pretty close.
 
For the burger, you mean when they select it right? My way will create a dialog for you to answer yes or no, and if ys is clicked it will move the unit to the grill, wait a few seconds then bring it to your unit.

Code:
Dialog for buying burger
    Events
        Player - Player 1 (Red) Selects a unit
    Conditions
        (Triggering unit) Equal to Cashier
    Actions
        Dialog - Clear Your_Dialog
        Dialog - Change the title of Your_Dialog to Do you want to buy ...
        Dialog - Create a dialog button for Your_Dialog labelled Yes
        Set Yes_DialogButton = (Last created dialog Button)
        Dialog - Create a dialog button for Your_Dialog labelled No
        Set No_DialogButton = (Last created dialog Button)
        Dialog - Show Your_Dialog for Player 1 (Red)

Make burger and give to buyer
    Events
        Dialog - A dialog button is clicked for Your_Dialog
    Conditions
        (Clicked dialog button) Equal to Yes_DialogButton
    Actions
        Unit - Order Cook to Move To (Position of Grill)
        Wait 4.00 seconds
        Unit - Order Cook to Move To (Position of (Buying unit))
        Item - Create Burger at (Position of Buying unit)
        Hero - Give (Last created item) to (Buying unit)
        Game - Display to Player Group - Player 1 (Red) for 5.00 seconds the text: Thank you, come aga...

This will make a dialog for Player 1(Red), and order the Cook to make a burger, then give a burger item to the your buying unit.

Here's the one for attacking the unit if they go into the cooking area.

Code:
Attack entering unit in Kitchen
    Events
        Unit - A unit enters Kitchen
    Conditions
        (Entering unit) Not equal to Cook
        (Entering unit) Not equal to Cashier
    Actions
        Game - Display to Player 1 (Red) for 7.00 seconds the text: Cashier: Sir, you m...
        Wait 10.00 seconds
        Unit - Create 4 Guards for Player 12 (Brown) at (Position of (Entering unit)) facing (Facing of (Entering unit)) degrees
 
wow. nice work mon, i could have never done anyhting like that in a million years. lol. im still a noobie =(
 
First make a dialog variable


Event - Player selects Cashier
Actions -
- Send transmission from Cashier "Wanna have a burger?"
- Add dialog button "Yes" to dialog variable made up top.
- Add dialog button "No" to dialog variable made up top.
(Now make a trigger called "Yes" or something like that. Make sure it is not initially on. Also make one called "No" that is not initially on.)
- Trigger - Turn on "Yes"


Now in the trigger "Yes".
Event - player selects dialog button
Condition - Button is equal to "Yes"
Actions -
- Unit issue order pick up item (burger)
- Unit issue order drop item at point in region. (make a region near the fire for this)
- Wait 4 seconds
- Unit issue order pick up item (burger)
- Unit issue order drop item at point in region. (make a region between you and cashier.)



Now in the trigger "No".
Event - player selects selects dialog button.
Condition - Button is equal to "No"
Actions -
- Do nothing









Kill You Trigger
(First make a timer variable)
Events - Unit enters region (behind restaurant)
Actions -
- Create One-Shot Timer that expires in 10 seconds
- Show timer window for


Timer Trigger
Events - Timer Expires
Actions - Create 4 Wisps in Kill You Region.


Turn Off Kill You Trigger
Events - Unit leaves region (behind restaurant)
Actions -
- Stop Timer
- Destroy Timer Window




It's something along those lines... I didn't open the editor to make sure I had it all right but its close probably. Tell me if you get it working.
 
lol nvm, while i was typing this someone else posted the correct triggers.... gj bro :) sry i couldnt help sooner
 
mothman, you've been here long enough to know that you broke the rules with that crappy thread topic. Don't do it again thank you.
 
Quoted from Forum Rules:

If you are starting a new thread, make the topic name of your post at least somewhat relevant to the post's contents. Do not write subject lines designed to draw attention to your post, like for example: "plz help" , "cmon i need help". Threads that fail to do this may be closed until the thread maker edits his post and changes the topic, or they may be deleted in extreme cases.

It's clear you have not read the rules, so I would ask if you do so ASAP.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top