In your "!fd*" event you're looking for
Code:
      if ($readini(Firstdeath.ini, $nick, Boss) == $2)
which will only be true if the user typing it was the one who wrote it. You're searching for the $nick of the user as the topic as well as the limit to ops only in the script. No other users than ops will be able to trigger that far into the script.

I re-designed your script a bit while still trying to keep to your same style of scripting
Code:
on *:text:!fd &:#: {
  var %file firstdeath.ini
  if (!%firstdeath) {
    if ($2 != open) msg # First Death is currently not active, it needs to be opened first.
    elseif ($nick !isop #) msg # This command is for mods only. 
    else {
      msg # First Death is open, choose the form of first death.
      remini %file #
      set %firstdeath 1
    }
  }
  elseif (%firstdeath == 1) { 
    writeini %file # user $nick
    writeini %file # boss $2
    msg # You chose $2
    set %firstdeath 2
  }
  elseif (%firstdeath == 2) {
    if ($2 != close) msg # First Death is currently not active, it needs to be closed first.
    elseif ($nick !isop #) msg # This command is for mods only. 
    else {
      msg # First Death is now closed
      set %firstdeath 3
    }
  }
  elseif (%firstdeath == 3) { 
    if ($2 == $readini(%file,#,boss)) { 
      msg # YOU WIN! $2 was correct, $readini(%file,#,user) was the one who chose it. 
      unset %firstdeath
      writeini -n Dinocoins.ini $+(#,.,$nick) dinocoins $calc($readini(Dinocoins.ini,$+(#,.,$nick),dinocoins) + 50)
      msg # $nick now has $readini(Dinocoins.ini,$+(#,.,$nick),dinocoins) Dino coins.
    }
    else msg # Sorry, $2 was not correct.
  }
} 

You'll have to tell me what you mean by "reading more than one line" Do you want to add dinocoins to people who guess, even though it's wrong? The way I scripted it now won't check for op status in the channel, so whoever guesses right will receive the dinocoins boost.


Quote:
[19:38] <@nillens> !fd test
[19:38] <@nillensbot> First Death is currently not active, it needs to be opened first.
[19:38] <@nillens> !fd open
[19:38] <@nillensbot> First Death is open, choose the form of first death.
[19:38] <@nillens> !fd Chainsaw
[19:38] <@nillensbot> You chose Chainsaw
[19:38] <@nillens> !fd test
[19:38] <@nillensbot> First Death is currently not active, it needs to be closed first.
[19:38] <@nillens> !fd close
[19:38] <@nillensbot> First Death is now closed
[19:39] <@nillens> !fd guess
[19:39] <@nillensbot> Sorry, guess was not correct.
[19:39] <@nillens> !fd chainsaw
[19:39] <@nillensbot> YOU WIN! chainsaw was correct, nillens was the one who chose it.
[19:39] <@nillensbot> nillens now has 50 Dino coins.
Tested and working.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net