Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - casual onion

Pages: [1] 2 3 ... 9
1
Creative Features / [Help Needed] Broken Job Script :(
« on: November 27, 2016, 01:00:17 PM »
Heller.

I have a lovely job script on my map but the script that sells the items you make and teleports you out of the factory is broken. Completely broken.

So, here's a brief description of how jobs work. 1) You get a job 2) You get materials to make selected products 3) You enter code to get in factory 4) You make the items (workbenches etc.) 5) You press a button to leave factory area and it sell what you've made. You get more if there's less than 10 of an item. 6) You collect a paycheck.

The issue lies with 5). You see, it adds the stock you've made to a stocklist so that those items can be bought at a shop. Supply and demand in a way. What's been happening is it's selling 10,000 workbenches even if you have only 100 etc. but the workbench script lines are same as the other products so what's wrong? The script is long a repetitive as it sells multiple products but here's an extract.

Code: [Select]
If
HasInventory [player] [Item1] [true]
HasHistory [JG\Stock\Item1] [<] [10]
Then
Inventory [player] [x,y,z] [move] [item1] [1]
History [JG\Stock\Item1] [+1]
History [Job\JG\Earnt] [+100]
History [Job\JG\Paycheck] [player] [+100]
loop
ElseIf
HasInventory [player] [Item1] [true]
Then
Inventory [player] [x,y,z] [move] [item1] [1]
History [JG\Stock\Item1] [+1]
History [Job\JG\Earnt] [+75]
History [Job\JG\Paycheck] [player] [+75]
loop

ElseIf
HasInventory [player] [Item2] [true]
HasHistory [JG\Stock\Item2] [<] [10]
Then
Inventory [player] [x,y,z] [move] [item2] [1]
History [JG\Stock\Item2] [+1]
History [Job\JG\Earnt] [+250]
History [JG\JG\Paycheck] [player] [+250]
loop
ElseIf
HasInventory [player] [Item2] [true]
Then
Inventory [player] [x,y,z] [move] [item2] [1]
History [JG\Stock\Item2] [+1]
History [Job\JG\Earnt] [+187]
History [Job\JG\Paycheck] [player] [+187]
loop
(Carries on through items)
ElseIf
HasInventory [player] [coal] [true]
Then
Inventory [player] [clear] [coal]
loop
ElseIf
HasHistory [Job\JG\Paycheck] [player] [false]
Then
Teleport [player] [x,y,z]
Notify [No Paycheck] [local]
Else
Teleport [player] [x,y,z]
Notify [You Have [history:Job\JG\Paycheck] Aires to collect] [local]

That should be right. The "History [Job\JG\Earnt] [+187]" lines are so I can check how much people have earnt for research purposes. If you can see anything wrong with the script then let me know. My connection is famously bad so it may be that. I really don't want to start a new map because of this issue.

Thanks.

2
Creative Features / [Scripts] Casual's Script Help | Properties
« on: November 12, 2016, 03:53:58 PM »
Howdy, as requested by ShiFt Shandy, here is how I do my property scripts. Now I add a lot of pointless history markers in my property scripts so for this guide i'll exclude them. As usual, i'll have optional parts in green.

Village\Street Name\Number\Confirm

If
HasInventory [player] [goldpieces] [<] [Amount]
Then
MessageBox [Sorry, this property is X Goldpieces.] [a=[Withdraw from bank?][Bank withdraw script]
Else
Message Box [Purchase Number, Street Name for X goldpieces?] [a=[Yes][Village\Street Name\Number\Purchase]]

Village\Street Name\Number\Purchase

If
HasInventory [player] [goldpieces] [<] [Amount]
Then
MessageBox [Sorry, this property is X Goldpieces.] [a=[Withdraw from bank?][Bank withdraw script]
Else
Inventory [player] [take] [goldpieces] [amount]
Set Block [x,y,z] [Sign] [Orientation - See player change log]
Set Text [x,y,z] [[gamertag]]
Notify [[gamertag bought a house!] [global]
Zone [Village\Street Name\Number] [builder=player]

Let me know if you have any issues or any suggestions. If you want to be sure to share your property scripts as a response. Also, would you like to see these in one topic, rather than linking them below?

Other guides in this series;

Mixed Block Mine: http://totalminerforums.net/index.php?topic=16308.msg170643#msg170643
Lottery: http://totalminerforums.net/index.php?topic=16308.msg170643#msg170643

Thanks for reading and let me know if you'd like to see more!

3
Questions and Answers / So, what's happening here?
« on: September 20, 2016, 05:20:02 AM »

4
Questions and Answers / How do I get upside corner ramps to connect?
« on: September 10, 2016, 03:27:10 PM »
I know they are automatic but my ramps usually refuse to connect. Do they need to be at a certain angle?

5
Bug Reports [Retail] / Potato & Corn Seeds not recognised
« on: September 08, 2016, 09:03:22 PM »
Tried making a script to buy these items and on Test Script it says item not found. Typing it in as is in item shop.

Irrelevant for 360 but annoying nonetheless.

6
Bug Reports [Retail] / Blue screen
« on: August 30, 2016, 09:18:11 PM »
Howdy.

I was on someone else's map and a accidently pressed a random sequence of buttons (Right side of controller) and got said bluescreen.



Though, may not be relevant but I was filling in grass that I'd previously Cleared and the same pattern of clearing kept appearing. Leaving and joining back has fixed it.

7
Questions and Answers / Zone & rank script issues.
« on: August 25, 2016, 07:01:26 PM »
Howdy. I have two issues.

1) Ranks are being removed from players, seemingly automatically. History marks are not appearing and ranks are being reset. I'm being as descriptive as I can but this is all I know. Here is the Rank script I use.



Any ideas why these issues are occurring?

2. This is the main issue. It doesn't cause huge distribution but it's still a problem. Everytime someone purchases a property in my map, the script ignores the zone command and creates a temporary zone. It has done it for me two. The zone has full permissions but the players cannot edit within the zone.

Here is my property script. The zone command is the last line. I have removed the command and redone it incase it has changed in the last update.



If you could help debug these issues or any others or maybe even simplify the scripts then I would greatly appreciate it. Also I'm not good at explaining things so I hope you understand.

8
Ideas / Cladding / Clad Block
« on: August 20, 2016, 10:39:56 AM »
Howdy. This idea would be a nice addition to the game (hopefully before Pc!)

The block would be textureable or use new designs such as decal applicator though the former, i would think is quicker to add.

Why add it though? Well it would give another layer to buildings (heck this could be part of builders delight maybe, unless it already is!)

Here are some types of cladding that could be done.



The blue cladding could be recreated similarly with Fence texture.



The hung tiles (Red - Upper floor) could be done using Terracotta tile texture.



These mock Tudor beams could be done using black texture.

The block would be the same size and shape of the stack block but done in a way that a painting could.

Why not use paintings you say? Well a) You need to build the design b) Then take a photo of it c) Place it on a building. Way too much hassle I think.

Hope you consider my idea because I can't tell you how much this would be useful :)

- Casual onion ring

9
Bug Reports [Retail] / Possible issue with save and exit
« on: August 14, 2016, 10:17:41 AM »
Howdy.

When creating several scripts in a go (ie copying to new script and editing as required), then selecting save and exit, it returns you to the scripts menu, discarding other scripts except when pressing b.

Surely it should load the previously created script before returning to the menu if applicable.

Thanks.

10
Bug Reports [Retail] / Bluescreen whilst AFK
« on: July 31, 2016, 09:02:41 AM »
Howdy. I loaded up my map on public with only me and 3 private slots. I then left the game loading and went onto the xbox guide menu and went afk to do something. Aroundan hour later, I came back and had this bluescreen. I hadn't touch my controller once.

Hope this helps.


11
Ideas / Select Value script
« on: July 20, 2016, 10:48:12 AM »
It's a far cry but he's an idea for a script. It's purpose will be to allow the player to input a numerical value. Some applications for this could include selecting prices for products and such. It would likely involve having the ability to edit lines in scripts which may be complicated though you may be able to come up with better suggestions!

It might even be possible to use it in conjunction with the new calculate scripts and if it's not possible already, it could be used to edit shop prices through scripts.

Let me know your thoughts if applicable and ta rah.

12
Creative Features / Can you assist with a rental script?
« on: July 20, 2016, 10:43:10 AM »
Howdy. I'd like to make a script where A) Players can rent out their properties (I'd choose the prices though if the script would allow them to choose then that'd be cool) and or b) I could preselect properties that would be rented out.

All money would go into a chest for either me or the property owner. Thanks in advance and good luck :)

13
Creative Features / Casual's Script Help | Ranks
« on: July 17, 2016, 02:21:02 PM »
Here's how to make a simple rank script, if your having multiple ranks.

As usual, all optional commands are in green.

Script Name: Rank\1

If
Has History [Rank\1] [player] [true]
Then
MessageBox [You already have this rank. Do you want the next rank?] [a=[Buy Rank Two for 500 GP?][Rank\2]
Elseif
HasInventory [player] [goldpieces] [>=] [100]
Then
Inventory [player] [take] [goldpieces] [100]
Inventory [player] [add] [woodpickaxe] [100]
History [Rank\1] [player] [1]
History [Rank\Bought] [player] [+1]

Notify [[gamertag] is now Rank One!] [global]
Else
MessageBox [Insufficient Funds.]

Code: [Select]
If
Has History [Rank\1] [player] [true]
Then
MessageBox [You already have this rank. Do you want the next rank?] [a=[Buy Rank Two for 500 GP?][Rank\2]
Elseif
HasInventory [player] [goldpieces] [>=] [100]
Then
Inventory [player] [take] [goldpieces] [100]
Inventory [player] [add] [woodpickaxe] [100]
History [Rank\1] [player] [1]
History [Rank\Bought] [player] [+1]
Notify [[gamertag] is now Rank One!] [global]
Else
MessageBox [Insufficient Funds.]

Script Name: Rank\Two

If
Has History [Rank\1] [player] [false]
Then
MessageBox [You need the previous rank.] [a=[Buy Rank One for 100 GP?][Rank\1]
Elseif
Has History [Rank\2] [player] [true]
Then
MessageBox [You already have this rank. Do you want the next rank?] [a=[Buy Rank Two for 500 GP?][Rank\2]
Elseif
HasInventory [player] [goldpieces] [>=] [100]
Then
Inventory [player] [take] [goldpieces] [100]
Inventory [player] [add] [woodpickaxe] [100]
History [Rank\2] [player] [1]
History [Rank\Bought] [player] [+1]

Notify [[gamertag] is now Rank One!] [global]
Else
MessageBox [Insufficient Funds.]

Code: [Select]
If
Has History [Rank\1] [player] [false]
Then
MessageBox [You need the previous rank.] [a=[Buy Rank One for 100 GP?][Rank\1]
Elseif
Has History [Rank\2] [player] [true]
Then
MessageBox [You already have this rank. Do you want the next rank?] [a=[Buy Rank Two for 500 GP?][Rank\2]
Elseif
HasInventory [player] [goldpieces] [>=] [100]
Then
Inventory [player] [take] [goldpieces] [100]
Inventory [player] [add] [woodpickaxe] [100]
History [Rank\2] [player] [1]
History [Rank\Bought] [player] [+1]
Notify [[gamertag] is now Rank One!] [global]
Else
MessageBox [Insufficient Funds.]

Then just copy the script for Rank 2 for as many ranks as you need, just changing the rank numbers.

Other guides in this series;

Mixed Block Mine: http://totalminerforums.net/index.php?topic=16308.msg170643#msg170643
Lottery: http://totalminerforums.net/index.php?topic=16308.msg170643#msg170643

Thanks for reading and let me know if you'd like to see more!

14
Total Miner Discussion / Admin Question.
« on: July 17, 2016, 05:18:10 AM »
Howdy folks. So, I used to have an admin on my map but unfortunately that could no longer be the case. As they left the game abruptly, i couldn't remove their permission and I'm worried they can come on whilst I'm afk for example and destroy the map. So I was wondering if I copied the map would they keep their admin permission, would I keep my player statistics and would the game Statistics?

Thanks.

Ps This may be in wrong section - sorry.

15
Your world / Huttondale Modern RPG
« on: July 16, 2016, 07:58:20 PM »
Huttondale
by casual onion

Introduction

Howdy. I started this map at the beginning of July 2016 and I've really enjoyed designing and constructing the map into how it is today. The map compromises of eight villages arranged in and around a valley. Each village is different in terms of styles and amenities.

What do you do on this map?

Well, on the map you can mine, build and explore. Instead of updating my previous map, i decided to make the gameplay better but in a new setting with hills. And with the new scripts coming in 2.44, a vast amount of things can be done such as making goldpieces into Aires by renaming the item. I'm sure i'll also find a use for the new mathematical scripts too. This map will have at least three mines and i'm not a 100% sure on jobs yet but I'll see if i can find a better way to do them.

Photos
by Liam Bradbury

*Adding more - Work in Progress*




Bricklyn Bridge: Spanning the Bricklyn Lake, I constructed this bridge to provide access from Hill Top to Cottonwood. Road access is also provided from Hill Top to Rockford.



Bridgetown and Jubilee Bridge: The house on the end with the black balcony has viewss over literally everything, it's amazing. Just someone please buy it.



Bridgetown Village Centre: The Town Hall is the building in the centre of the image with Just Great lying to the right.



Converted Barn, Near Jubilee Bridge: This is the converted version of Derelict Barn #2 and GOD x DRIVE has done a really nice job. It is up for sale shortly.



Derelict Barn #1:



Derelict Barn #2:



Derelict Barn #3:



Derelict Barn #4:



Derelict Barn #5:



Derelict Barn #6:



Derelict Barn #7:



Derelict Barn #8:



Derelict Barn #9:



Duxford: Duxford lies between Bridgetown and Hutton. It has a bus stop so is easily accesible, it's quite a nice place to live i think.



Enclave: The village square was built by GOD x DRIVE. The size of the houses can be seen in this photo as well as the amazing views which they have. Hutton on the Hill can be seen in the left of the image.



GOD x DRIVE's House, Near Enclave: It's literally huge and no...it isn't for sale. :(



Hill Top: This village is currently under construction and then scripting will commence. The main landmark to note is the large building in the centre which consists of 8 properties under one roof. It took a while to build :)



Hutton on the Hill: The tiny hamlet on the hill. All houses are scripted and range from 11,000 to 55,000 Aires. Duxford can be seen on the right of the image.



Jubilee Bridge and Lake: This bridge was built by GOD x DRIVE with assistance from me for finishing touches. It links Bridgetown with Hill Top.



Lakeside Court, Bridgetown: A rather nice development of five properties starting from 50,000 Aires. They all have stunning views of Jubilee Lakes & Bridge. I'd buy one.



Rockford: A rather small brick built village with houses for sale with lovely views.



The Flower Barn, Treeton: Probably the best house in the map. Because i built, designed and live in it. The garden has waaay to many flowers.



Treeton: This currently includes the Main Mine & the Wood Mine and a few houses, three of which are owned.



View over Bridgetown and Duxford: If you look carefully, you can see a small tower on a hill. It's the cheapest house in Huttondale. It's also sold - sorry.

Properties

The map has a large variety of properties with every one being different to it's neighbour. Whether it be size, shape or design, each one is unique, there's no copy and pasted houses here. Whats more, most are based on real life British houses, something i like doing! The price of each property is based on the volume of it and any extras such as farms. I can guarantee you that houses are much cheaper than in any of my other maps with them starting at only 8,000 Aires. For that price you get a tower on a hill with stunning views over Enclave Lake.

Game Statistics
as of 24.11.2016

Man Hours Played: 1,100
Blocks Cleared: 360,236
Blocks Placed: 330,932
Most Concurrent Players: 12
World Visitors: 667
World Rates: 231
World Rating: 4.2


My Statistics
as of 24.11.2016

Hours Played: 438.4
Blocks Cleared: 102,784
Blocks Placed: 255,182
Distance Flown: 4,267,365
Distance Walked: 644,737


To-do list

Complete Shop Scripts
Complete Property Scripts
General Landscaping

Villages

Bridgetown: This is the main village in the map and has 35 properties in total. Just Great & the Town Hall are both located here as well as the allotments.

Cottonwood: This area is under development and once finished will be a small village. It currently has a JG store for anyone who stumbles upon it.

Duxford: This hamlet lies in the valley between Hutton and Bridgetown. It only consists of just ten properties which are of a relatively large size.

Enclave: This is the most affluent location in the map and has just five properties in total. It lies between Hutton and Rockford.

Hill Top: This village, compromising of 14 properties, lies on top of a hill, hence the name, in the south of the map. It is built mainly out of local brick and shops will also be able to purchased here. It's the least visited village by bus.

Hutton on the Hill: Based on cottages from the North Yorkshire Moors in England, this is the prettiest location in the map and every house is for sale for under 60,000 Aires. There are 7 cottages in total in the village.

Rockford: This area currently compromises of a small mine, which you require Rank Supervisor or 1,000 Aires to enter. It houses blocks from Dacite to Granite.

Treeton: This village currently houses the main mine and is accessed from Bridgetown via the Treeton Bridge. There are 11 houses and numerous apartments.

With Thanks To...

GOD x DRIVE: He has helped me landscape, build and design the map.

Liam Bradbury: Liam took the images shown in this topic.

Conclusion
I hope that you will follow the progress for the new map as i update it. A number of you may want to know what has happened to Barrow. Well, it will still be worked on and hosted, i built this map as i wanted a break from Barrow. The map will continue until October when this one will be publicly hosted. Have a question about the map? Let me know and I'll answer. Please note that the name is subject to change.

The code for the custom menu is 7991.
- casual onion

Pages: [1] 2 3 ... 9