I Need Help Urgently!


#1
#You kill him by using a combination of your silenced SL.40 and Combat Knife.

        
        *set Melee %+10
        *set Ranged  %+10

        You take out your ${Melee} and rush in quickly slash his chest. You then take out your ${Gun} and shoot him in the head. He gets no time to react and dies as a result.
*create Gun "Silenced SL 40"
*create Melee "Combat Knife"

I’m getting an error here, which says “Combat knife is not a number”. How can I set strings as a value and then print it?
Note: I’m using Chronicler.


#2

You can’t create a variable with numbers then try to assign characters to it.
You will need a second variable, try MeleeWeapon and it will be fine.


#3

Oh Man.:disappointed: I just acted like a fool. Thanks, by the way!
Update: sorry, that doesn’t work.


#4

You need to create the new variable.


#5

WORKS!THANKS A LOT @Urban!


#6

You need to sort your variables out. You’re raising melee and ranged, but those aren’t numbers. Try:

#You kill him by using a combination of your silenced SL.40 and Combat Knife.
        *set melee %+10
        *set ranged  %+10

        You take out your ${meleeweapon} and rush in quickly slash his chest. You then take out your ${gun} and shoot him in the head. He gets no time to react and dies as a result.
*create melee 0
*create ranged 0
*create meleeweapon ""
*create gun ""

At some point, you’d need:

*set meleeweapon "Combat Knife"
*set gun "Silenced SL 40"

Or something. :yum: