TriggerReactor

TriggerReactor

24.6k Downloads

String comparison fails with value returned from papi

wysohn opened this issue ยท 3 comments

commented
var = placeholder.parse(player, "%betonquest_spaceQuestLine:condition.openedChest%")
#MESSAGE var
IF var == "true"
    #MESSAGE "var is true"
ELSE
    #MESSAGE "var is false"
ENDIF
commented

FinishedIsland8-10653-201
^^ It's a text file

commented

FinishedIsland8-10653-201 ^^ It's a text file

file content

//tempvar = placeholder.parse(player, "%betonquest_spaceQuestLine:condition.openedChest%")

//#MESSAGE tempvar

//IF tempvar == "true"
//    #MESSAGE "You already opened this chest!"
//ELSE
//    #MESSAGE "&aYou find an journal along with an unusual item shoved in the back of this chest. Maybe it could come in useful? &7Tip: You hold quest items in your /backpack."
//    #CMDCON "betonquest event $playername spaceQuestLine.give_item_key_finder"
//    #CMDCON "betonquest event $playername spaceQuestLine.give_item_astro_journal"
//    #CMDCON "betonquest tag $playername add spaceQuestLine.openedChest"
//ENDIF

var = placeholder.parse(player, "%betonquest_spaceQuestLine:condition.openedChest%")

#MESSAGE var.getClass()
var = var + "1"

IF var == "true1"
    #MESSAGE "var is true"
ELSE
    #MESSAGE "var is false"
ENDIF
commented

Resolved on 3.3.0.8-beta.
For more details, check out the #473