Hi,
I would like to change parameter settings using the textport.
For example, how could I change the /obj/geo1/box1/sizex to specific value using HSCRIPT?
Thanks!
Setting parameters using HSCRIPT in textport
1361 2 0- maxbel
- Member
- 36 posts
- Joined: 1月 2014
- Offline
- goldfarb
- スタッフ
- 3455 posts
- Joined: 7月 2005
- Offline
a nice trick of the Textport is the ‘help’ and ‘exhelp’ commands - using the -k flag
eg:
>> help -k operator
or
>> exhelp -k operator
this will return all the commands that have the string ‘operator’ in their help
by reading through this list you'll likely see a command that relates to what you want to do, in your case you want to change the value of a parameter - so opparm might be useful
so now you can do:
>>help opparm
and you'll see the help for opparm…with some examples of how ti can be used to change the value of a parameter
opparm box1 sizex ( 3 )
eg:
>> help -k operator
or
>> exhelp -k operator
this will return all the commands that have the string ‘operator’ in their help
by reading through this list you'll likely see a command that relates to what you want to do, in your case you want to change the value of a parameter - so opparm might be useful
so now you can do:
>>help opparm
and you'll see the help for opparm…with some examples of how ti can be used to change the value of a parameter
opparm box1 sizex ( 3 )
- maxbel
- Member
- 36 posts
- Joined: 1月 2014
- Offline
-
- Quick Links