Quote: ":state=1,varequal=SVar 1,hudmouseup=Website 1:sound=audiobank\menu\click.wav,weblink=http://www.google.com"
There are three colons in this script. I have found that can be troublesome. I have never personally been able to get weblink to work, easily or very well. Therefore, I created my own command in RPG EdMod. This is not available in the public RPGmod; but, I know that you don't want a mod anyway. I would do a FRAP on my test however, it doesn't show up because FRAP only works within a game. When it goes outside of the game it won't show up.
Here is the code prior to getting the address.
weblinkaddress$=""
if aiactionseq(seq).value=-1
weblinkaddress$=entityelement(e).eleprof.soundset$
else
if aiactionseq(seq).value=-2
weblinkaddress$=entityelement(e).eleprof.soundset1$
else
. . . other code . . .
endif
endif
This tells me that if weblink=-1 then the address is going to be in the default soundset (sound0). If it is a -2 then it will be in soundset #1. This is my script within a trigger zone:
:state=0,plrwithinzone=1:weblink=-1,state=1
Here is the trigger parameters:
Notice the parameter for Sound0. It is a website url.
The other code in the else clause of the above code I have not been able to figure out yet. Here is the source:
tstringindex=aiactionseq(seq).value
if tstringindex>0
weblinkaddress$=actstring$(tstringindex)
endif
This looks like one should be able to put a string value with weblink=string value. But ???
Anyway I can get it to work with -1 value and using a trigger zone. However, there are still issues. The website will execute, however the screen remains on the game image rather that showing the website. You have to use the ALT-TAB to focus on the website.