Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 241 42 43121 122 Nächste Zum Anfang

alt Re: Scripting Questions

DontKnowToScript
User Off Offline

Zitieren
humer hat geschrieben
ohh thanks huda jan, seems like i confound there something. I was a little bit busy. Sorry

hudajan,humer script worked but i think your one will work too ( )

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
Well, giving up on my last question, I've moved on to making everything with liquid need a bottle, and making every liquid generate a bottle when consumed. The problem with this is that when a combination involving water uses a water-source instead of water in your inventory, I expect it will still make a bottle. Is there a way to prevent this?

EDIT: Nevermind, they use separate combinations. It just works.

alt Re: Scripting Questions

Raven Shadow
User Off Offline

Zitieren
darksol hat geschrieben
I making a model for stranded 2 using blender and exporting it to .3ds i have the folder and the model in the same file but it is all white can any one help me


In blender you have to use set it to use relative
locations when saving texture info in the model.

In the "user preferences" window click the "File Paths",
button then click the "Relative Paths Default" button, it
should turn a dark teal.

Then click the "File" menu, then "Save Default Settings"

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
Okay, so I screwed up liquids somehow with this script.

     on:eat {
          process "drinking",1000;
          drink 5,0,50,0;
          local $id;
          $id=create("item",106);
          store $id,"unit",1;
          free "self";
     }

It basically creates an empty bottle when you drink water. The problem is that the guy suddenly drinks whole stacks of water at once and it only makes one bottle. Making one bottle for a stack is bad enough, but drinking all your water in one gulp is worse.

alt Re: Scripting Questions

DontKnowToScript
User Off Offline

Zitieren
maybe instead of
$id=create("item",106);
store $id,"unit",1;
try
alteritem 1,106;
maybe that would work.
1× editiert, zuletzt 30.08.08 10:51:00

alt Re: Scripting Questions

Gast

Zitieren
Wouldn't that need an item to alter? I thought that the drinking deleted the water... I'll try it anyway. Thanks.

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
Guest hat geschrieben
Wouldn't that need an item to alter? I thought that the drinking deleted the water... I'll try it anyway. Thanks.


^Was me, didn't work.

EDIT: Ah, fixed it. Got rid of the free self thingy and it worked for some reason. I'm awesome.

alt help

Gast

Zitieren
i need help with adding text scripts (ingame)and i need to know how to activate the text and when i got an anser to this some time ago it diddnt help one bit and it would be usefull to make the ai stand still i saw this eirlier but i forgot where it was

alt Re: Scripting Questions

DontKnowToScript
User Off Offline

Zitieren
on:start {
ai_stay "self";
}
can someone answer this :how do i make you can write on a sign (in a middle of a game) and then read what u written like any normal one?
2× editiert, zuletzt 31.08.08 12:54:02

alt Re: Scripting Questions

GreyMario
User Off Offline

Zitieren
The first thing you'd need to know is whether or not you can input text at all somehow.

In-game chat probably won't work.

alt Re: Scripting Questions

GreyMario
User Off Offline

Zitieren
Right, that would do it.

Now, I'm a bit rusty... are variables storable on a per-object basis?

edit: just found it, local $var; $var = someshit;

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
I'm still on about that state-related loot, thing. Is there a way to link loot from a creature to the states it had upon death? Thanks.
3× editiert, zuletzt 02.09.08 08:30:41

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
I suggest you to look it up in adventure maps through the editor
its located in maps\adventure\map01.s2
And I highly recomand to examine all the scripts in adventure greal lessons

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
HudaJan hat geschrieben
Stored items doesn't have states...


Yeah, but that's not what I want.

Okay, say I kill a crab and it has one piece of small meat. If it were to have had a certain state when it died, could I change the items I find on its corpse?
Zum Anfang Vorherige 1 241 42 43121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht