Hi
I've got a problem with variables.
I want to do few triggers that will change one variable. I mean:
When I see 2 ways out: nw and ne I want set variable "position" to 1
When I see 2 others ways out: w and nw I want set variable "position" to 2
etc.
I wrote something like this but it doesn't work, because a name of variable is at once a name of trigger:
'World.AddTriggerEx "position", ": nw and ne", "3", 49, -1, 0, "", "", 9, 50
'World.AddTriggerEx "position", ": w and nw", "4", 49, -1, 0, "", "", 9, 50
'World.AddTriggerEx "position", ": ne, sw and e", "5", 49, -1, 0, "", "", 9, 50
I've found a specific place in my mud world and I want write a script that will know where I exactly am at the moment.
I want to write a nice-looking script, I dont want it to be like that:
<trigger
enabled="y"
match="nw and w"
send_to="10"
sequence="100"
>
<send>/world.setvariable "position", "1"</send>
</trigger>
By the way Is it possible to write triggers available only for script? I dont want to see them in my Triggers Menu.
Thanks a lot for help.
I've got a problem with variables.
I want to do few triggers that will change one variable. I mean:
When I see 2 ways out: nw and ne I want set variable "position" to 1
When I see 2 others ways out: w and nw I want set variable "position" to 2
etc.
I wrote something like this but it doesn't work, because a name of variable is at once a name of trigger:
'World.AddTriggerEx "position", ": nw and ne", "3", 49, -1, 0, "", "", 9, 50
'World.AddTriggerEx "position", ": w and nw", "4", 49, -1, 0, "", "", 9, 50
'World.AddTriggerEx "position", ": ne, sw and e", "5", 49, -1, 0, "", "", 9, 50
I've found a specific place in my mud world and I want write a script that will know where I exactly am at the moment.
I want to write a nice-looking script, I dont want it to be like that:
<trigger
enabled="y"
match="nw and w"
send_to="10"
sequence="100"
>
<send>/world.setvariable "position", "1"</send>
</trigger>
By the way Is it possible to write triggers available only for script? I dont want to see them in my Triggers Menu.
Thanks a lot for help.