Help for a newbie

Posted by ABFenriz on Sun 23 Mar 2014 11:08 PM — 6 posts, 24,031 views.

#0
Hello, after a dozen failed attempts in mini-windows scripting i decided to ask for someone help, because i realized i'm more than a newbie in scripting.

What i tried is very simple compared to other examples i found in the forum (i think that even Nick's tutorial about the inventory mini-window doesn't fit my needs).

Briefly, i need to omit ten lines of text included between the words <BEGIN> and <END> and send them to a mini-window.

An example of what i want to omit:

<BEGIN>
Line0
Line1
Line2
Line3
Line4
Line5
Line6
Line7
Line8
Line9
<END>

I don't need mini-window title nor any aesthetic improvement, just the simplest script possible.

Please anyone can help me?
USA Global Moderator #1
You want something like
http://www.gammon.com.au/forum/?id=8816
But replace MAPSTART and MAPEND with BEGIN and END and change some of the styling and remove the TelnetOptionOn/TelnetOptionOff stuff.
Amended on Mon 24 Mar 2014 08:56 PM by Fiendish
#2
I already tried with that code but something went wrong.. but it's sure it's my fault.

Ok it seems I'll give it another try.. just another question:

- do these triggers have any utility for my needs?

<trigger
enabled="n"
match="*"
script="map_redirect"
name="multi_line_map"
omit_from_output="y"
sequence="10"
>
</trigger>

<trigger
enabled="y"
match="You can now sense anger in your immediate area."
sequence="100"
send_to="12"
>
<send>SendNoEcho ("map")</send>
</trigger>

- do i need the hotspot and the hyperlink stuff or can i remove it?

Thanks again for your answers.
Amended on Mon 24 Mar 2014 09:31 PM by ABFenriz
Australia Forum Administrator #3
This one is probably pretty close:

http://www.gammon.com.au/forum/?id=9965

It captures an inventory (which can be multiple lines) and shows them in a miniwindow. It's pretty short.
USA Global Moderator #4
ABFenriz said:
- do these triggers have any utility for my needs?

The first one yes. The second one no.

Quote:
- do i need the hotspot and the hyperlink stuff or can i remove it?

Hyperlink no. Other hotspots you should leave until you understand what they do.
Amended on Wed 26 Mar 2014 02:13 AM by Fiendish
#5
Thank you so much Fiendish and Nick, i think i'll focus again on Nick's inventory example as it the simplest one.

I'll be back soon with many other questions ;)