Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 241 42 43121 122 Next To the start

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
humer has written
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 ( )

old Re: Scripting Questions

jockmo42
User Off Offline

Quote
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.

old Re: Scripting Questions

Raven Shadow
User Off Offline

Quote
darksol has written
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"

old Re: Scripting Questions

jockmo42
User Off Offline

Quote
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.

old Re: Scripting Questions

DontKnowToScript
User Off Offline

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

old Re: Scripting Questions

Guest

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

old Re: Scripting Questions

jockmo42
User Off Offline

Quote
Guest has written
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.

old help

Guest

Quote
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

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
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?
edited 2×, last 31.08.08 12:54:02 pm

old Re: Scripting Questions

GreyMario
User Off Offline

Quote
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.

old Re: Scripting Questions

GreyMario
User Off Offline

Quote
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;

old Re: Scripting Questions

jockmo42
User Off Offline

Quote
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.
edited 3×, last 02.09.08 08:30:41 am

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
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

old Re: Scripting Questions

jockmo42
User Off Offline

Quote
HudaJan has written
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?
To the start Previous 1 241 42 43121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview