Else Heart.Break()

Else Heart.Break()

romi 2015 年 12 月 29 日 上午 9:02
Code sharing on github ?
Hi there !
I created a repo on github for sharing awesome codes, tricks, mods (DO IT), etc.
You can find it here : awesome-sprak[ddg.co] (dead link)

If you don't have a github acount, I can upload your code and credit you for it !

Take care ! :Burn:

EDIT : I'm obviously not really good with git, nor with written english ! So forgive any bad habitudes I might have ;)
最后由 romi 编辑于; 2022 年 8 月 20 日 上午 3:17
< >
正在显示第 1 - 15 条,共 17 条留言
Geeky Meerkat 2015 年 12 月 29 日 下午 7:12 
One of my favorites for drinks is to convert one drink into this and keep it on me at all times:

var tap = Connect("DesolateHouseLobby_Poor_WaterTap_Poor_WaterTap_1") Sleepiness(-100) Smelliness(-100) Charisma(100) Drunkenness(-100) Corruption(-100) tap.SetLiquidAmount(500)

It can be any tap really, you just need access to that SetLiquidAmount() function so you can refill your drink as soon as you drink it. Something of note though, if you have more than one drink in your inventory it can act a little strange, but why would you need or want more than one drink?

Also if you don't like those specific numbers you can adjust them to what you want. The important thing though is that the number in the SetLiquidAmount() function needs to be at least as large as the sum of the absolute value of the other numbers.

Also I don't think Charisma actually does anything in the game, and there is also a speed value you can set. However, we currently have very little way of knowing what our character's current values are to know what we should change them too. Once you get far enough in the game you actually can get an item that affects your speed but that you can't hack... and as that speed seems nice I like to just let that be my speed. Though I wouldn't mind having a higher speed.
Geeky Meerkat 2015 年 12 月 29 日 下午 7:28 
So sure you could set up a teleport network or a slurp network, but a fun one to set up is a door network.

Normally on one side of a door you will have a Goto("A") and on the other side you have a Goto("B"), thus creating a little A <-> B system. That's all great and everything but it doesn't take long for us to learn we can set a door to any other door in the game. It's a hastle though going constantly reporgraming doors, so what I like to do is take pairs of doors and chain them together. Normally we would have A <-> B and C <-> D. But what we want is instead: A -> D -> C -> B -> A. But what does this look like when in actual use? Well let us take the hotel hallway forinstance. Each of those doors I have set up to take me to various points in the world, but let's take a look at just one of them for now.

# Hotel_Corridor_Door2 if GetUser() == "Sebastian" Goto("BlaKnutenDoorToBurrows") else Goto("Hotel_Room2_Door1") end

# BlaKnutenDoorToBurrows Goto("BurrowsDoorToBlaKnuten")

# BurrowsDoorToBlaKnuten if GetUser() == "Sebastian" Goto("Hotel_Room2_Door1") else Goto("BlaKnutenDoorToBurrows") end

# Hotel_Room2_Door1 Goto("Hotel_Corridor_Door2")

Two of the doors as you can see are their default code (though with a # so you know what door it is. The reason the other two though check to see if the user is Sebastian, is that I only want this door network to work for me. If someone else uses the door they'll end up where they expect. The nice thing about setting it up this way is I don't actually cut off my own ability to go to any of these 4 places. Sure I could have set up the hotel door to go directly to door on the street to the bakery, and the backery back to the hotel, but then I wouldn't have been able to actually get into the bakery (and it does have a nice soda machine I can reprogram so that's nice). Also I can get into the hotel room still and watch my neighbor that watches the birds sleep.
最后由 Geeky Meerkat 编辑于; 2015 年 12 月 29 日 下午 7:34
romi 2015 年 12 月 30 日 上午 1:15 
Ah ! I like the last one !
It's pretty funny that we write lines of code in the game the same way we would in real life : with automation and time-saving in mind.

If you want, I can upload this on github ? :}
Geeky Meerkat 2015 年 12 月 30 日 上午 7:57 
Ya feel free. I'm trying to come up with some other interesting tricks. I don't know much about github though so if I post something here feel free to add it up there if you think it's interesting enough.
Zinal 2015 年 12 月 30 日 下午 1:50 
I love the idea of a code-sharing platform for Else Heart.Break(), but I don't think GitHub is ideal for this due to a number of reasons:
  • Requires an account (You solved that by us emailing you, still not ideal :P)
  • Code Formatting. GitHub doesn't have any good formatting for Sprak (Since it's made up and based on BASIC I think)
  • Forking can become quite annoying after a while, especially if several users try to fork at the same time. This can cause loss of others script and you'll have to be careful in what to allow and disallow.
I own a web-server that has a special javascript-based code formatting that might work instead of GitHub. I would love to write up something so that everyone can see and share their code easily.
The temporary address is: http://elseheartbreak.zinals.nu.preview.citynetwork.se/index.php
(I screwed up the DNS, so until it is fixed, that will have to suffice).
It currently uses my 5~6 year old script-kiddie style, but it can be changed to whatever I/the community wants). It's far from complete and currently it just shows how the code-formatting works. (The scripts are saved in a remote database and will be editable).

My idea is that you can upload and share as a registered user (this allows editing later) or just as a Guest (Author will still display the name inputted)
最后由 Zinal 编辑于; 2015 年 12 月 30 日 下午 1:53
romi 2016 年 1 月 1 日 上午 4:16 
@Geeky Meerkat : will do that as soon as I can have access to command line :)

@Zinal : Well, the main point of an Awesome List is to share the most awesome stuff, not to host it, but to share it.
So you can share your code anywhere on github, a anonymous gist, pastebin, your webserver, your own git server, a shared etherpad to work on it , etc. :)
BeauTAEful 2016 年 3 月 23 日 下午 3:01 
引用自 Geeky Meerkat
var tap = Connect("DesolateHouseLobby_Poor_WaterTap_Poor_WaterTap_1")
So will I have to refill the mug only with that tap or any will do? If yes, where is that desolate house?
Zinal 2016 年 3 月 23 日 下午 4:05 
Any tap will do, but that drink is automatically refilled everytime you drink from it.
BeauTAEful 2016 年 3 月 23 日 下午 5:01 
Thank you.
plang 2016 年 3 月 24 日 上午 7:44 
I made my own water drink tool box that opens the doors around you, teleport your modifier at your feets if you haven't it in your inventory, and optionnaly teleports you (without using a teleporter) in a room or close to a person or object (computer anyone?) of your choice.

I put the code in a steam community guide here:
http://steamcommunity.com/sharedfiles/filedetails/?id=651229341

Neurydancer, may I suggest you create a guide for your github repository? Maybe with the code or at least the links in it? Guides are a bit more visible than a thread there.
Thanks in advance :)
headholo 2016 年 3 月 30 日 上午 4:11 
I've just seen this game on Gog and ended up here .
I don't get this ,are you physically changing the game by enteirng this "coding" ?
Can you do stuff the devs never intended or maybe even break the game.
Or are you confined to only doing certain things ?
plang 2016 年 4 月 1 日 上午 2:49 
Yes, you *can* do stuff the devs never intended and maybe even break the game. Some people did.
You are still confined to only certain things: the ones they gave you access through the hacking mechanism
headholo 2016 年 4 月 1 日 下午 12:37 
Interesting ,thanks for the info .
Vlek 2017 年 11 月 12 日 下午 6:01 
引用自 Geeky Meerkat
One of my favorites for drinks is to convert one drink into this and keep it on me at all times:

I know this is years old, but I felt that it was important to respond to this as it still pops up in search results.

If you're doing this, please think a little more out of the box. While in the real world you have to use a cup of coffee in order to get its affects, you're able to proxy everything in this game. Think about having this code in a more fundamental item in the game for your play, and tamper with it there. As an added benefit, you don't have to worry about replenishing the contents if you're not actually Using the item for its affects.

Food for thought for anyone else that stumbles across this like me.
Anson 2022 年 5 月 17 日 上午 10:15 
引用自 headholo
I've just seen this game on Gog and ended up here .
I don't get this ,are you physically changing the game by entering this "coding" ?
Can you do stuff the devs never intended or maybe even break the game.
Or are you confined to only doing certain things ?

So its hard to say how confined you are with the games hacking mechanic, as that would entail actually hacking the real game and figuring out the source code to know what limitations the game actually has.

Of course as its a sandbox ish game, you can brake it quite easily , in fact if you don't... I'm not sure why your playing it lol

as for doing things the Devs never intended, well they intended for the player base to discover things they never could have predicted or intended... so technically no as that's a catch all intention lol
< >
正在显示第 1 - 15 条,共 17 条留言
每页显示数: 1530 50