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 274 75 76121 122 Next To the start

old Re: Scripting Questions

bezmolvie
User Off Offline

Quote
The most you can have is not 255. You can change the max in the game.inf, although this is kind of redundent.

old Re: Scripting Questions

Qc Popipo
User Off Offline

Quote
Ok I made some kind of obsitcal course with monster and ect.. and at the end there is an banana but i want this banana to increase a skill like for exemple planting how can I do this, I readed some tutorial and sutff but i dont understand very well the easy one >.> And mostly they are all in german.Any Idea?

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
@QC popipo
Its easy just use the script
on:use
event "iskill_planting","global"





can someone answer my question plz i really need it
1
2
3
4
5
6
7
8
9
A few questions 
Can i make any amount of actions for an object like ani_idle4,5,6 etc? 
and how to make an attack by assigning a new key? 
and i also wanna make an attack that doesnt damage but 
makes the unit force fully use the part of the animation? 
Another thing how to make a key that on pressing that it equips an item but on equiping something else it vanishes 
Where are the animation stuff 
and last can you give me the continuous fire script? 
like a water pistol

old Re: Scripting Questions

galahad13
User Off Offline

Quote
thank you guys for your answers. just wish the last part of the modding tutorial would get translated, cuz the only thing I remember from my highschool german is how to say my foot is broken.

Not sure if this is the right spot for this question, so I will just ask.
-How do you edit the colormap? I know there is a button for that in the editor, and have done it that way, every time I use a map I edited the color on, I'm fine for the first day, but as soon as its midnight I start lagging real bad. there are no error messages, so I'm not sure what i'm doing wrong. Althouh I have no doubt that it is me.

old Re: Scripting Questions

soggydoggy
User Off Offline

Quote
hey guys,

I wondering how i would script something:

When i build an object attached to a fireplace, how can i make it that the fire will always bit lit as Eternal Fire (rainproof),

EG:, a fire protection building?

Im really stumped!

old Re: Scripting Questions

The Second
User Off Offline

Quote
I have again a guestion: Is it possible to make an object so you can't see it, but you can walk through it?

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
The Second has written
I have again a guestion: Is it possible to make an object so you can't see it, but you can walk through it?


you cant see it and walk through it?
well i have one
thin air

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
This is possible make object and in its script write:
1
alpha 0;
or
1
alpha 1;
I dont remember which of it, one of these is invisible, second fully visible
You must make event too

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
he said the object should be invisible and can be walked through
whats the point in the object?

old What`s wrong

Russian Stranded Fan
User Off Offline

Quote
script=start
     if (gotstate("unit",1,7)==1){
$rnd=random(1,2);
      if ($rnd==1){freestate "unit",1,7;}
          play "collect.wav";
          msg "Fracture splinted!",4;
          speech "positive";
          freestate "unit",1,7;}
if ($rnd==2){addstate "unit",1,1;}
addstate "unit",1,"bleeding";{
     }else{
          msg "You have no fractures",3;
          speech "negative";
     }
     skipevent;
script=end
combi=end



What`s wrong with this script?


!3 SCRIPT ERROR:
!3 Mismatched brackets
!3 Script: Global Map Script
!3 Info: (combinations.inf-script)
!3 Event: combine
!3 Row: 9
!3 Col: 1
!3 Script: }else{

old Re: Scripting Questions

Phyire
User Off Offline

Quote
can eny1 help e, i wana change Unit id=1 (the player) 's maxweight while he is playing. How do i do this?

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
you have to edit game.inf for that
see the max weight thingy in it
but if you dont want to edit the game inf then capture lots and lots of butterflies

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
A few questions
Can i make any amount of actions for an object like ani_idle4,5,6 etc?
and how to make an attack by assigning a new key?
and i also wanna make an attack that doesnt damage but
makes the unit force fully use the part of the animation?
Another thing how to make a key that on pressing that it equips an item but on equiping something else it vanishes
Where are the animation stuff
and last can you give me the continuous fire script?
like a water pistol

and one more too and its compulsory
i want to bind object together to make a unit like a ragdoll
See this if you need a pic
cant tell better way:
http://img385.imageshack.us/img385/6977/difficultbutimportant.png

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
Do you want to make Garrys mod for s2?

Ok,
Vibhor has written
Can i make any amount of actions for an object like ani_idle4,5,6 etc?

No.

Vibhor has written
and how to make an attack by assigning a new key?

Write in game.inf
1
scriptkey=ID,"NAME"
where ID is value from 00 to 99(I think)
And events "on:keyhitXX", "on:keydownXX", "on:keyreleaseXX", where XX is ID from 00 to 99(I think).
These event are working only in Game.inf ! For other .inf use command s2 cmd event, better is
1
event "NAME","global"
, where NAME is name of event(on:NAME), but global is only global

Vibhor has written
and i also wanna make an attack that doesnt damage but
makes the unit force fully use the part of the animation?

Code in gun:
1
2
3
on:impact{
	animate impact_id(),a1,a2,a3;
}
, where a1 is Startframe(animation in 3d editor can make ONE animation), a2 is Endframe, a3 is animation speed.
To the start Previous 1 274 75 76121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview