• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Farming?

Status
Not open for further replies.
Level 24
Joined
May 9, 2007
Messages
3,561
The map is like this. You are a farmer. When the game starts you get an item which lets you build a farmhouse. You must the plant plants (lol) to gain food. With food you get sheep who eat plants. You must compete against opponent farmers in a race for prestige. The goal is to be the last farm standing.

Abilities (so far):

-Plant - Plants a different type of plant depending on targeted terrain.
-Dig - Resets terrain to dirt.
-Grow - Grows to next level of flora (short grass,grass,crops. . .)
-Torch - Provides sight range
-Rustle - Rustles sheep (captures them)
-Build fence - Build a fence (horiszontal and vertical)


Some triggers from this map include:

  • Plant
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Plant
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at (Target point of ability being cast)) Equal to Village - Crops
        • Then - Actions
          • Set TempPoint1 = (Target point of ability being cast)
          • Unit - Create 1 Wheat for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_TempPoint1)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Terrain type at (Target point of ability being cast)) Equal to Village - Thick Grass
            • Then - Actions
              • Set TempPoint1 = (Target point of ability being cast)
              • Unit - Create 1 Shrub for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_TempPoint1)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Terrain type at (Target point of ability being cast)) Equal to Village - Dirt
                • Then - Actions
                  • Set TempPoint1 = (Target point of ability being cast)
                  • Unit - Create 1 Cactus for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
                  • Custom script: call RemoveLocation(udg_TempPoint1)
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Terrain type at (Target point of ability being cast)) Equal to Village - Rough Dirt
                    • Then - Actions
                      • Set TempPoint1 = (Target point of ability being cast)
                      • Unit - Create 1 Cactus for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
                      • Custom script: call RemoveLocation(udg_TempPoint1)
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Terrain type at (Target point of ability being cast)) Equal to Village - Short Grass
                        • Then - Actions
                          • Set TempPoint1 = (Target point of ability being cast)
                          • Unit - Create 1 Shrub for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
                          • Custom script: call RemoveLocation(udg_TempPoint1)
                        • Else - Actions
                          • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 50.00)
                          • Unit - Remove Plant from (Triggering unit)
                          • Unit - Add Plant to (Triggering unit)
                          • Game - Display to (Player group((Owner of (Triggering unit)))) the text: You can't plant the...
Feed back and suggestions would be appreciated.
 
You shouldn't do that with your if functions.

Do this:

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Terrain type at (Target point of ability being cast)) Equal to Village - Crops
  • Then - Actions
  • Set TempPoint1 = (Target point of ability being cast)
  • Unit - Create 1 Wheat for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
  • Custom script: call RemoveLocation(udg_TempPoint1)
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Terrain type at (Target point of ability being cast)) Equal to Village - Thick Grass
  • Then - Actions
  • Set TempPoint1 = (Target point of ability being cast)
  • Unit - Create 1 Shrub for (Owner of (Triggering unit)) at TempPoint1 facing Default building facing degrees
  • Custom script: call RemoveLocation(udg_TempPoint1)
  • Else - Actions
Or, better yet, use arrays and a formula.
 
Its a great concept hawk although I dont understand the objective. Do we just compete to farm more. And if so is it along the lines of whoever builds faster/more wins? (What kind of strategy etc.. is involved) Other then that I would enjoy the map
 
I like the idea...
I'm a bit scared it wont be too fun though.....
I think a decent goal is to just have the land as is and having the sheep as your attacking units...
Building things and planting things are all just a part of the defense/growth mechanism....
 
By anychance have you played an RPG made by countryboy? I dled it the other day and the farming profession was virtually the same trigger.

Guess lots of people probably had the same thought though.
 
Hurrah! I did something right!

I figured that it was more efficient because if it is the first If/Then/Else's then the function can stop running.
# Alkalon:

No i Have not played that game.


This was originally inspired my a Requiest form Hive User "Troubled Farmer" and I took away with it. This project is on hold pretty much permanatly so If any one wants to develop it further I can send them the map.
 
Last edited:
Status
Not open for further replies.
Back
Top