Jump to content

Photo

"step -> message string A-D" ffc trigger

message string ffc script step-message go to message if arguments zscript

  • Please log in to reply
34 replies to this topic

#31 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 28 October 2019 - 09:05 AM

SUCCESS!!!

Thank you very much...

Now, I gonna figure out, how to properly use my new MsgTrigger

 

Place an FFC on the screen (Right Click->Place FFC [number])

Edit the FFC; set the script in the Script drop-down.

Under the script tab, you'll see `d0`, `d1`, etc. These are the parameters, which are listed in the script after `void run`, in order. In this case, set `d0` to the number of the string (from Quest->Strings) that you want to display. Set `d1` to the sensitivity; this affects how far you need to step onto a combo to display the message. As Zoria set it, you can also not set anything, and it will use a default value for you.


  • Bagu likes this

#32 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 28 October 2019 - 09:34 AM

You are the Hero of my personal Hyrule!!! :omg:  :love:  :love:  :love:



#33 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 28 October 2019 - 03:33 PM

Also, special thanks to Zoria!
May the (Tri-)Force bei with you!

#34 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 29 October 2019 - 07:43 AM

K, now THAT is Zoria's typo.

 

Change:

if ( DistX(this) <= sens )

if ( DistY(this) <= sens )

to

if ( DistX(this, sens) )

if ( DistY(this, sens) )

 

 

I copied Zoria's script, added the top like you told and saved as .zs file.
But same result, after load and compileā€¦

There has to be an error in the script

 

Sorry, I meant to use ProximityX() and ProximityY() in the script.I wrote both variations, DistX, ProximityX; and DistY, ProximityY, and when I typed that up I mentally transposed them.

 

I didn't append an include or import directive for std.zh, as Bagu didn't specify what version of ZC he's using, so #include may have been illegal. I think that I'm going to add #include as a token to 2.53.1, just so that scripts that use it instead of import won't immediately fail to compile.



#35 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 29 October 2019 - 11:22 AM

Sorry, I meant to use ProximityX() and ProximityY() in the script.I wrote both variations, DistX, ProximityX; and DistY, ProximityY, and when I typed that up I mentally transposed them.

 

I didn't append an include or import directive for std.zh, as Bagu didn't specify what version of ZC he's using, so #include may have been illegal. I think that I'm going to add #include as a token to 2.53.1, just so that scripts that use it instead of import won't immediately fail to compile.

"import" would have been legal regardless





Also tagged with one or more of these keywords: message string, ffc script, step-message, go to message if, arguments, zscript

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users