level.jvbot_weapon_priority["m1 garand"] with no q

Please use this forum to ask all your MoHAA Bots questions / discussions

Moderator: Moderators

Post Reply
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

level.jvbot_weapon_priority["m1 garand"] with no q

Post by bdbodger »

can I use level.jvbot_weapon_priority[m1 garand] with no quotes?

I am trying to print quotes to the console for my botmapper but if I use any of these
println "level.jvbot_weapon_priority[" """ "m1 garand" """ "] = " (getcvar wep_grand)
println "level.jvbot_weapon_priority[" "''" "springfield '03 sniper" "''" "] = " (getcvar wep_springfield)
println "level.jvbot_weapon_priority[" "'" "'" "thompson" "'" "'" "] = " (getcvar wep_thompson)
I get
level.jvbot_weapon_priority["""m1 garand"""] = 10
level.jvbot_weapon_priority[''springfield '03 sniper''] = 20
level.jvbot_weapon_priority[''thompson''] = 40
What looks like " in that are 2 single quotes ' ' and it looks spaced out in the script like this

level.jvbot_weapon_priority[' 'thompson' '] = 40

if I try to use 3 quotes """ it prints all 3 sets of quotes
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Ok nevermind I got I did "" " that or " "" will work just adding 1 space beside the " worked and the space didn't even print looks good now
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Cool 8-)
Image
Post Reply