Forum

> > Stranded II > General > Altered Hammer function?
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Altered Hammer function?

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Altered Hammer function?

Klokkwork
User Off Offline

Zitieren
In searching through the forums, I learned that the hammer's building function is hard-coded into the engine, but that skipevent may be employed to bypass it. I'm wondering if anyone has happened to have created an alternate scripted function for the hammer, where right-clicking on a building site would remove more than one resource material at a time?

I ask because right-clicking so many times seems a bit on the excessive side. I know that it's probably to make sure that your hunger, thirst, and fatigue increase while you work, and that you wouldn't want to take one swipe and be suddenly completely drained, but if there could be some other way to go about building something that requires 200 clicks.. I'd just be overjoyed.

Perhaps a timer function instead, which you could suspend if you needed a break to eat or nap? Or perhaps the ability to ask a trained a monkey to build for you?

alt Re: Altered Hammer function?

DC
Admin Off Offline

Zitieren
the building progress is hardcoded in a pretty simple way: all material you need for your building will be stored inside the building site - each click one item (that's the reason for the maxweight=1000000000 in its definition).
therefore it should be possible to speed up building by storing required items in the building site with a script.

alt Re: Altered Hammer function?

Klokkwork
User Off Offline

Zitieren
Haha!! Good show, DC. Excellent advice. A little edit to the objects_buildings.inf, and it works like a charm. I simply added the OnUse script for "Exchange = self" thing, and now I won't be wearing out my right mouse button any time soon. Thank you very, very much.

alt Re: Altered Hammer function?

DontKnowToScript
User Off Offline

Zitieren
so thats how it works! (but i did know from the start it works on storing cause i created a concrete item and after a day it disappeared from the site so it is storing)

alt Re: Altered Hammer function?

armyguy
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
12
script=start
	on:use {
		exchange "self";
	}
	on:hit {
		if (getplayerweapon()==30){
			msg "Press the right mousebutton",3;
			msg "to build here!",3;
		}

	}
script=end
code 4 Hammer function

alt Re: Altered Hammer function?

Truthowl
User Off Offline

Zitieren
I've not played much so far. But I like the game. But I don't like having to right click on the addition of every single building material. This thread seems to be what I'm looking for. I want to make it so that holding down the right mouse button will repeatedly build until finished or I run out of materials. I tried adding the following to the file objects_buildings.inf under

### Building Site
id=150


user armyguy hat geschrieben
1
2
3
4
5
6
7
8
9
10
11
12
script=start
	on:use {
		exchange "self";
	}
	on:hit {
		if (getplayerweapon()==30){
			msg "Press the right mousebutton",3;
			msg "to build here!",3;
		}

	}
script=end
code 4 Hammer function


I'll add my full altered fuction now to show what I mean/have:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### Building Site
id=150
name=Building Site
group=building
icon=gfx\buildplace.bmp
model=gfx\buildplace.b3d
behaviour=buildingsite
col=2
health=100
mat=wood
script=start
     on:use {
          exchange "self";
     }
	 on:hit {
		if (getplayerweapon()==30){
			msg "Press the right mousebutton",3;
			msg "to build here!",3;
		}
	}
script=end
maxweight=1000000000

From what I read that should do the trick. However, it seems to change nothing. I still have to right click for every single building material. Maybe I'm misunderstanding where the on:use exchange "self"; is supposed to go. Armyguy does state code 4 hammer function. Can anyone help me?

I do realize this is a dead thread. But figured since it's relevant to me it couldn't hurt to ask in the original thread.

alt Re: Altered Hammer function?

Truthowl
User Off Offline

Zitieren
user Hurri04 hat geschrieben
try to change "on:use" to "on:attack2".


Thank you for trying Hurri. Sadly, it didn't appear to have any affect.

Loaded my game, dropped a hut, gathered my stones and sticks from my storage's. Then went and tried it. Still requires 1 click per mat.

Thank you very much for trying Mate. Any other idea's? I'll try about anything. I want to play the game but i quit until I can find a solution that doesn't invole carpal tunnel or buying a new mouse once this one wears out.

alt Re: Altered Hammer function?

Hurri04
Super User Off Offline

Zitieren
oh, my bad. I thought this was the script for the hammer and not for the building site

then what happens when you change it back to "on:use", place a buildingsite, walk up to it and use it with 'E'?
usually this should open the exchange dialoge in which you could just put the stuff needed for building into the buildingsite, just as if it was a crate/storage. then one last rightclick with the hammer should actually build it.

alt Re: Altered Hammer function?

Truthowl
User Off Offline

Zitieren
user Hurri04 hat geschrieben
this should open the exchange dialoge in which you could just put the stuff needed for building into the buildingsite, just as if it was a crate/storage. then one last rightclick with the hammer should actually build it.


Ahhh fantastic!!! Thank you Mate. It works. Now I can play and enjoy the game.

Thank you very very much.

alt Re: Altered Hammer function?

Revelati0nz
User Off Offline

Zitieren
Hey guys. Can any one explain it to me in a step by step format? I still dont understand the one click- one mat alteration system. Please help me out.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht