- Joined
- Jul 12, 2013
- Messages
- 25
- Reaction score
- 0
- First Language
- English
- Primarily Uses
I am currently making a teleport script which I have got a problem with. I need to allow the user to put as many "add_command()" without actually writing "add_command()", just filling in the following variables:
@numberteleports = 1 # Put how many teleports you have in here# Teleport 1 @tp_1_id = 1 # A no that is different for all TP's @tp_1_name = "Example" # A name to identify the TP @tp_1_text = "Example" # The text that will be shown in game @tp_1_map_id = 1 # The number associated with the map you're teleporting to @tp_1_map_x = 5 # The X possition where you want to TP to @tp_1_map_y = 5 # The Y possition where you want to TP to @tp_1_map_d = 4
I would prefer it if I didn't have number of teleports but I can have that. I want people to just be able to copy and paste the "Teleport 1", change all the 1's to 2, change the number of teleports and then I could script the rest. After that I have:
def make_command_list add_command()and I want all the teleports that the user makes to have a seperate "add_command".
I hope I have been as clear as possible. And thanks in advance!
@numberteleports = 1 # Put how many teleports you have in here# Teleport 1 @tp_1_id = 1 # A no that is different for all TP's @tp_1_name = "Example" # A name to identify the TP @tp_1_text = "Example" # The text that will be shown in game @tp_1_map_id = 1 # The number associated with the map you're teleporting to @tp_1_map_x = 5 # The X possition where you want to TP to @tp_1_map_y = 5 # The Y possition where you want to TP to @tp_1_map_d = 4
I would prefer it if I didn't have number of teleports but I can have that. I want people to just be able to copy and paste the "Teleport 1", change all the 1's to 2, change the number of teleports and then I could script the rest. After that I have:
def make_command_list add_command()and I want all the teleports that the user makes to have a seperate "add_command".
I hope I have been as clear as possible. And thanks in advance!

