is there a way to make an item to telaport you'r party ?
Author | Topic: is there a way to make an item to telaport you'r party ? |
---|---|
Infiltrator
Member # 5566
|
written Wednesday, March 23 2005 11:01
Profile
what i need to know is there a way i can make an item that when you to use it it gives the option forward backward left right and when you select one it gives the option spaces in this direction 1 2 3 4 5 6 7 8 9 10 it would then teleport your party that many spaces forward and while I'm at it is there a way to make an item to take you to a different town ? Posts: 507 | Registered: Tuesday, March 1 2005 08:00 |
...b10010b...
Member # 869
|
written Wednesday, March 23 2005 11:13
Profile
Homepage
1) It's not impossible, I suppose. You'd need to include checks to make sure the party didn't teleport outside the town boundaries. Also, keep in mind that they may not end up quite where you expect in every case; the party placement algorithms are a little weird sometimes. 2) Not very well. You can only call move_to_new_town() from a special encounter rectangle. Also, please shorten your sig. It's obscene. [ Wednesday, March 23, 2005 11:14: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, March 23 2005 11:34
Profile
Homepage
Taking out the line breaks would fix the sig problem. You'll probably want to use a shortened form of Numeric Input for this. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Post Navel Trauma ^_^
Member # 67
|
written Thursday, March 24 2005 02:16
Profile
Homepage
You should probably also either make the item have infinite uses, or design the scenario so that the party can never get stuck. (Imagine dying of starvation because you teleported to behind the counter in a shop and you can't get out) -------------------- Barcoorah: I even did it to a big dorset ram. New Mac BoE Posts: 1798 | Registered: Thursday, October 4 2001 07:00 |
Infiltrator
Member # 5566
|
written Thursday, March 24 2005 08:25
Profile
quote:thank you i will use this but i need to know how what type of code do i need the item editor doesn't have anything remotely like what i need and yes it will have infinite uses for that exact purpose and [ Friday, December 16, 2005 15:49: Message edited by: Hawk King ] Posts: 507 | Registered: Tuesday, March 1 2005 08:00 |
Off With Their Heads
Member # 4045
|
written Thursday, March 24 2005 08:55
Profile
Homepage
Remember that punctuation? You want an item with a special ability that calls a state in the scenario script. First, you probably want to use is_town to make sure the party is in town mode. If not, use an end call to stop everything and pop up a message -- maybe using print_str or message_dialog. Then pop up a dialog that explains the four text responses: north, south, east, and west. Then ask for a text input, and check for each of those four responses. Then pop up a box that asks "How far?" and takes a numeric input of up to ten. Use current_town_size and char_loc_x and char_loc_y to make sure that the location is a permissible one. If not, end everything again, perhaps with an error message. And finally, use the relocate_character call to move the party. Heck, I could make this for you if you really needed, but it'd probably be good scripting practice for you to make it yourself. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Infiltrator
Member # 5566
|
written Thursday, March 24 2005 09:32
Profile
quote:I'm working on the punctuation marks and stuff. and yes please could you build it for me ? I'm a little to early in the stages of scripting to be doing what you are saying i would need to do I'm still getting error messages with the draconian armor thing so yes i would really appreciate the help. Posts: 507 | Registered: Tuesday, March 1 2005 08:00 |
Law Bringer
Member # 2984
|
written Thursday, March 24 2005 14:28
Profile
Homepage
This "direction and distance" approach limits the options very much. Would a coordinate input work, just out of interest? I was thinking of using something like that in a scenario... -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |
...b10010b...
Member # 869
|
written Thursday, March 24 2005 16:45
Profile
Homepage
Coordinate input would work pretty well, I think. Basically you'd need two consecutive Numeric Input domains in your script (one for x-loc, one for y-loc). Two problems would be party placement (which is a problem with any sort of teleportation) and the fact that the player would need a fair idea of their starting coordinates (it'd probably be a good idea to actually tell them the lead character's current location before the first Numeric Input.) [ Thursday, March 24, 2005 16:46: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Off With Their Heads
Member # 4045
|
written Thursday, March 24 2005 21:29
Profile
Homepage
Totally untested, but this is my interpretation of doing what you want to do. This would go in your scenario script (apologies if it has errors, but I haven't bothered to do more than the most basic of checks): -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Infiltrator
Member # 5566
|
written Friday, March 25 2005 07:27
Profile
first of all thank you, second I put it in my scenario script renamed the states to 16 & 17 now what should i do ? :confused: Posts: 507 | Registered: Tuesday, March 1 2005 08:00 |
Off With Their Heads
Member # 4045
|
written Friday, March 25 2005 08:34
Profile
Homepage
First, read it over and make sure that you follow the logic of the script. The best way to learn to script is to read other people's scripts, and this thing is fully commented. Second, change the internal state references to make sure that they are correct. That is, I have a few set_state_continue(10) calls that should be changed to set_state_continue(16), and some set_state_continue(11) calls that should be set_state_continue(17). Third, make an item that uses this state. I recommend a wand or something similar. The two key lines are: If you have those, then it ought to work. The other properties are up to you. -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
BANNED
Member # 4
|
written Friday, March 25 2005 14:07
Profile
Homepage
Feel free to use my code, just cite me somewhere in the readme/text file. -------------------- * Posts: 6936 | Registered: Tuesday, September 18 2001 07:00 |
Infiltrator
Member # 5566
|
written Friday, March 25 2005 20:04
Profile
i don't get it what am i doing wrong ? whenever i try to use it it says (USE: telaporting wand) but nothing happens i changed all the states and stuff i did everything you said to do what am i doing wrong ??? [ Friday, March 25, 2005 20:08: Message edited by: hawk king ] Posts: 507 | Registered: Tuesday, March 1 2005 08:00 |
...b10010b...
Member # 869
|
written Friday, March 25 2005 20:21
Profile
Homepage
It's hard to look for errors when we don't know what we're looking for. It'd help if you uploaded your scenario somewhere so we can see what you might be doing wrong. Also, you shouldn't use item number 499; the docs warn against it. Use a different item number. [ Friday, March 25, 2005 20:22: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Law Bringer
Member # 2984
|
written Thursday, March 31 2005 21:36
Profile
Homepage
quote:Perhaps the coordinate input could be relative to the current characters position, and put them on the town border if it's out of range... Also, Kel: Mind putting in a pagebreak in the longer lines of the code? My browser renders this awfully... -------------------- Encyclopaedia • Archives • Members • RSS [Topic / Forum] • Blog • Polaris • NaNoWriMo Look on my works, ye mighty, and despair. I have a love of woodwind instruments. Posts: 8752 | Registered: Wednesday, May 14 2003 07:00 |