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 234 35 36121 122 Next To the start

old Re: Scripting Questions

top_snille
User Off Offline

Quote
ty so much bloodshot and thank you HudaJan too
it don work it only stand ''planting'' but i cant plant berrybushes trees and leafs plz tell any thing else another script

BTW is there any other adventure map i hate the regular
edited 1×, last 19.07.08 06:56:21 pm

old Re: Scripting Questions

Tinkerbell
User Off Offline

Quote
Bloodshot has written
incskill "planting",800;

Beg your pardon Bloodshot, but the command you mentioned should be ..
incskill "plant", 800, "planting";

Then it will work. If you want to do ALL the skills, then do them "one at a time.

eg) incskill "hunt", <value>, "hunting"; etc.

old Re: Scripting Questions

top_snille
User Off Offline

Quote
ty now i understand!


but those '' should not be there?


it still not work

edited 1×, last 19.07.08 08:00:26 pm

old Re: Scripting Questions

Builder2-0
User Off Offline

Quote
Tinkerbell has written
Bloodshot has written
incskill "planting",800;

Beg your pardon Bloodshot, but the command you mentioned should be ..
incskill "plant", 800, "planting";

Then it will work. If you want to do ALL the skills, then do them "one at a time.

eg) incskill "hunt", <value>, "hunting"; etc.

Nope, incorrect. However, that really doesn't matter either because of the fact you ignored HudaJan:
Quote
yes, there is, but it won't work properly, because levelup events are activated only when you "walk through" all of the skillpoints one by one
incskill

This man speaks the truth. Sure, you can increase your skills to infinity if you want, but it *will not* unlock anything do to the fact you must trigger each unlock individually.

-Builder

old Re: Scripting Questions

Builder2-0
User Off Offline

Quote
top_snille has written
it dont work why?

...
I give up.
HudaJan has written
yes, there is, but it won't work properly, because levelup events are activated only when you "walk through" all of the skillpoints one by one

Listen next time.

-Builder

old Re: Scripting Questions

Builder2-0
User Off Offline

Quote
top_snille has written
i type incskill ''plant'' ,planting; but it still dont work why

Because. That. Will. Not. Fucking. Work. You cannot do some magical cheat and increase your stats that way. Ok? Understand? Also, you mistyped the command:

incskill "planting",800;

But even that will not work. As levelups will not be triggered.

-Builder

old Re: Scripting Questions

Raven Shadow
User Off Offline

Quote
Tinkerbelle and Builder are both correct and incorrect

If y'all numbnutz had looked this up instead of
making useless post after useless post ( I ain't
talkin' about Tinkerbelle and Builder here, so listen up)
you would have had your answer 2 or 3 days ago.

The correct format for the command is:

s2 cmd incskill "skillname1",X,"skillname2"

That's the long format and In a previous post made by
DC you would have read that "skillname1" is the skills
internal name, and "skillname2" is the friendly name.
skillname2 is only needed if you're trying to use a cheat
command ingame to increase a skill level that hasn't
been increased by normal means yet.

If you had done some simple reading you would also
have read in many many MANY posts, that such script
commands ONLY work when the cheat mode has been activated.

So instead of constantly crying that it doesn't work try
doing some searches.

Try a forum search on "cheat"
You'll get several results, one of which gives explicit
directions on accessing the cheat window .....
See how easy it is ?

If you did a forum search on "skill", you would've have
gotten a very hit good on a post that explains it .
See how easy it is ?

Hint #3
There's a difference between the console window, and
the cheat window. they are 2 different windows.
system commands go in the console and cheat
commands go in the cheat window ...... go fig....
See how easy it is ?


On a side note:
Tinkerbelle is correct she was only commenting on the
format of the command.

Builder is thinking about any buildings or combinations
that get unlocked at specific levelsthat would not get
unlocked when the cheat is used.

Using incskill by itself will meet the original posters
needs and will allow him to plant new items.

But to unlock buildings/combis controlled by the plant
skill, you have to trigger the iskill_plant event afterwards

old Re: Scripting Questions

Tinkerbell
User Off Offline

Quote
Raven Shadow has written
On a side note:
Tinkerbelle is correct she was only commenting on the
format of the command.

Thank you Raven .. What I was trying to say, people, is ...
( and Raven Shadow has made this quite clear ), is FIRST you have to :-

1) HUNT .. so that you HAVE a "Hunting" skill (Even if it is only 1) .. or..

2) PLANT .. so that you HAVE a "Planting" Skill .. (excetera)

THEN press the "~" key, and type CHEAT, and THEN type (EXACTLY as Shown) .. in "Execute Script" ..

inskill "hunt", <your value>, "hunting"; or
inskill "plant", <your value>, "planting"; (etcetera)

(Please note the " the , the spaces and the ; in the command)

This WILL result (as Raven has said) in your skill level being increased, and (also) will (probably) allow ALL, that the "skill level" has to offer; or at least, it should, but do remember to (eg: Plant something afterwards, or Hunt something afterwards) as well.
edited 2×, last 22.07.08 03:02:36 pm

old Please some one answer my question

Guest

Quote
Bo Diddley has written
Is it possiple to make aircraft turn more realisticly other than just turning on a flat radius please post a script for air craft behaviour if some geniouse can thanks

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
I'd like to help a little with script... no script, event on:keyhitXX
How can I know what to put instand of XX? Is there some list of key codes?
e.g., what's the code for SPACE...?

old Re: Scripting Questions

WRCMeister
User Off Offline

Quote
You can increse skills and still learn stuff as i recon, i used to use another command then you did builder, that seemed to work for me.


(If not, im outa here)

old Re: Scripting Questions

Builder2-0
User Off Offline

Quote
HudaJan has written
I'd like to help a little with script... no script, event on:keyhitXX
How can I know what to put instand of XX? Is there some list of key codes?
e.g., what's the code for SPACE...?

"XX" is anywhere from 0 to 20 (It may go higher). You first need to create a script key first in game.inf. I used that event so that the player can open the achievement\stats\ect menu's anywhere (in the dev version of MM).

scriptkey=ID,Name
Erstellt eine Taste, welche im Optionsmenü belegt werden kann und die Events keyhitXX, keydownXX und keyreleaseXX (XX=00,01,02 ... bis 20 für die ID) im globalen Spielscript (game.inf, sonst nirgendwo!) auslöst, wenn sie gedrückt wird. ID ist ein Wert von 0-20, der Name ist ein beliebiger Text, welcher im Menü erscheinen soll

Rough translation:
Add that to your game.inf file, replace ID with 00 or 20, check keys.inf if you need to find the proper id, and then give it a name. Have fun.

You can find that in the definitions for game.inf on the Stranded site.

-Builder

old Re: Scripting Questions

Guest

Quote
how can i make that when i make fire at campfire script will load next map?

old Re: Scripting Questions

Guest

Quote
ok, i found command on stranded website, sorry for first posting then searching

old Re: Scripting Questions

Guest

Quote
I have problem with script. I want to make script, that when player hasn't got any job, it opens dialogue page for apllying for a job, when player got job it opens job page in job dialogue, and when he got other job than that from exact NPC, he tells player by msg to go away.
My script:
on:use {
if ($gotjob==0) {dialogue "job", "miner.s2s";}
elseif ($gotjob==1&&$miner==0) {msg "You already have a job. Go away";}
elseif ($gotjob==1&&$miner==1) {dialogue "miner", "miner.s2s";}
}

I have all variables in global script.

on:start {
$thief==0;
$miner==0;
$baker==0;
$wood==0;
$gotjob==0;
}
To the start Previous 1 234 35 36121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview