Forum
Stranded II Scripts Scripting QuestionsIts 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
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
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.
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!
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
1
alpha 0;
1
alpha 1;
You must make event too
whats the point in the object?
edited 1×, last 30.10.09 04:49:51 pm
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{
see the max weight thingy in it
but if you dont want to edit the game inf then capture lots and lots of butterflies
For example:
1
player_maxweight 30000;
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
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"
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 event, better is
1
event "NAME","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?
makes the unit force fully use the part of the animation?
Code in gun:
1
2
3
2
3
on:impact{ 	animate impact_id(),a1,a2,a3; }
what about the other?
yeah i thing ill do it