Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Equiping  (Read 947 times)

0 Members and 1 Guest are viewing this topic.
Equiping
« on: June 06, 2007, 07:33:33 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
Well i got 2 buttons C and V i tried to doing it this way but gm says it cant compare arguments
Code: [Select]
//Drawing
if global.SelectorTX=1 {
draw_sprite(SprBow,0,view_xview[0]+197,view_yview[0]+10)
global.EquipC=true
global.EquipItemc="Boomarang"
}

///Checking
if global.EquipV="Boomarang"
{
global.EquipV="None"
}
thats the script for c , v is the opposite.

anyone know of any examples or if they can help me with this pm me and we can talk on msn.
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog

Koh

Re: Equiping
« Reply #1 on: June 06, 2007, 09:09:49 pm »
  • Tamer Koh
  • *
  • Reputation: +6/-0
  • Offline Offline
  • Gender: Male
  • Posts: 980
instead of saying none, tey just plain "".  BTW, its spelled boomerang.  and also, instead of putting true for C, put 1.  You can't argue with true or false.
Logged
  • Megaclipse Games

Dayjo

shut the fuck up donny.
Re: Equiping
« Reply #2 on: June 06, 2007, 10:55:03 pm »
  • hungry..
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3602
I presume that it's because you're trying to use the variables as a string and a boolean.

global.EquipV="Boomarang"

setting EquipV as a string

however in the V script it'll set that to true... right?
Logged
  • My Blog
Re: Equiping
« Reply #3 on: June 06, 2007, 11:58:29 pm »
  • Hookshot to the Future!
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 517
Code: [Select]
//Drawing
if global.SelectorTX=1 {
draw_sprite(sprItemIcon,9,view_xview[0]+197,view_yview[0]+10)
global.EquipC="1"
}

///Checking
if global.EquipV="1"
{
global.EquipV="0"
}
Code: [Select]
///Drawing ITems
if global.SelectorTX=1
{
draw_sprite(sprItemIcon,9,view_xview[0]+220,view_yview[0]+10)
global.EquipV="1"
}
//Checking
if global.EquipC="1"
{
global.EquipV="0"
}
0 is none and 1 is boomerang.
but it wont equip still i got these 2 scripts for C and v press for link.
Logged
Check my ZRPG development blog at rev2k9blog.spaces.live.com
  • My Blog
Re: Equiping
« Reply #4 on: June 07, 2007, 12:29:43 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Just check through your scripts and make sure all variables are the correct datatypes (string, boolean, float, int)
Logged
the a o d c
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.442 seconds with 47 queries.

anything