Forum

> > Stranded II > Scripts > Freestored command not working...
Forums overviewStranded II overview Scripts overviewLog in to reply

English Freestored command not working...

2 replies
To the start Previous 1 Next To the start

old Freestored command not working...

Lion_Hearted
User Off Offline

Quote
I have tried this command in every way I can imagine possible...

And it just refuses to do anything... or comes up with an error sign...

I want to make the script mobile, so all I have to do is copy and paste it to several different other locations without having to change anything...

1
2
3
4
5
6
on:changeday {
		$cid=currentid;
		$cclass=currentclass;
		$largemeats=count_stored("self",9);
		freestored $cclass,$cid,9,$largemeats;
	}

The code is supposed to extend itself into multiple loops, I'm trying to make it so meat spoils, and to do that I would have to have that variable "$largemeats" to control how many times the loops repeat themselves to make an item... alteritem command doesn't work here for some reason...

This is the full script

Spoiler >


This one works on the person, but not the object.

Please help me.

old Re: Freestored command not working...

DC
Admin Off Offline

Quote
s2 cmd currentid and s2 cmd currentclass return a value and you want to use this value. this means that you have to add () behind the function call (this is a general convention in Stranded II. () whenever you use the returned value, even if there are no parameters).

1
2
$cid=currentid();
$cclass=currentclass();
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview