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 292 93 94121 122 Next To the start

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
FD god has written
is it possible to make spawner that makes sheeps or turtles? ,i can't happen to make spawners


You can make spawners in editor

old Re: Scripting Questions

lint35
User Off Offline

Quote
Is it possible to show an item in first person? If so how is it possible? I only need the weapon to be shown.

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
Yep. Look at script for example in V666 mod objects_stuff STIH. Make timer, and check conditions, and change model

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
Only pistol, shotgun, chaingun, and some new weapons.
Oh, i see, you downloaded the multiplayer version

old Fruit Trees

tmh47
User Off Offline

Quote
I'm making a small mod (For my own use) and I'm trying to create a tree that spawns multiple fruits, so far I've stuck with simply having the fruits dropped to the ground and spawned around the tree, but I wondered if the "spawn" command could spawn more than one type of thing at the same time?

old Re: Scripting Questions

lint35
User Off Offline

Quote
Okay I downloaded the single player but I still don't understand how to make it show the weapon... I used the STIH but it still doesn't work... I changed the id's of the weapons to match mine but no help please

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
lint35 has written
Okay I downloaded the single player but I still don't understand how to make it show the weapon... I used the STIH but it still doesn't work... I changed the id's of the weapons to match mine but no help please

Now find event "ih" in game.inf. It creates STIH object if this object didn't appear in the game. And in "on:inhand" in your weapons (weapons you want to make in-hand model) call this event(event "ih","global";)
The Second
It is possible. Just create buttons as commands but not as dialogue definition. s2 cmd button

old Re: Scripting Questions

lint35
User Off Offline

Quote
Sorry but I'm still having troubles, what I have done:
> I copied the STIH script and put it into my objects_stuff.inf.
>Changed one of the ID's of the weapons that were in the script
>Copied the on:inhand { event "ih","global"; } and put it into my game.if
> Did the same thing you did with the on:inhand event "ih","global" on my weapon script
Am I missing something?

old Re: Scripting Questions

slow
User Off Offline

Quote
I've been playing about a week now, and I have learnt to edit item codes and such to make new items and such things on simple levels. (Prior to getting any mods, I added my own sheep milk, butter, cheese and more using existing models with edited images and edited scripts or some copy=pasted and pieced together then edited further)

Now, however, I would like to add a skill of glass-blowing using sand + seaweed + blowpipe, but when I have rummaged around, I've not found any files for skills other than the one that shows the "level-up" information.

Will/can someone explain how I may do this?

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
lint35 has written
Sorry but I'm still having troubles, what I have done:
> I copied the STIH script and put it into my objects_stuff.inf.
>Changed one of the ID's of the weapons that were in the script
>Copied the on:inhand { event "ih","global"; } and put it into my game.if
> Did the same thing you did with the on:inhand event "ih","global" on my weapon script
Am I missing something?

Check your models. Are you sure that your inhand models are correct? And try changing y. Just as i have in this script.
But you didn't say anything about game.inf!
There must be
1
2
3
4
on:ih {
		if(count("object",225)<1){
			create "object",225;
		}
in game.inf.
PS: change the id to your STIH's id.

@slow
Spoiler >
To the start Previous 1 292 93 94121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview