Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flag archercanmove
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Flag archercanmove
probably your code is removing the flag instead add it

to add flags you must use:
Code:
FLAGS |= statf_archercanmove    //which is a shortcut for FLAGS=<FLAGS> | statf_archercanmove

and to remove it:
Code:
FLAGS &= ~statf_archercanmove    //which is a shortcut for FLAGS=<FLAGS> & ~statf_archercanmove

EDIT: if you just want use these flags on bows you can also move this code directly to t_weapon_bow, this will just set/remove the flag 1x at item equip/unequip instead keep running the same code again at every @SkillStart
Code:
[TYPEDEF t_weapon_bow]
ON=@Equip
   SRC.FLAGS |= statf_archercanmove
ON=@Unequip
   SRC.FLAGS &= ~statf_archercanmove
(This post was last modified: 03-10-2019 07:08 AM by Coruja.)
03-10-2019 07:04 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Post Reply 


Messages In This Thread
Flag archercanmove - Indiaret - 03-10-2019, 05:39 AM
RE: Flag archercanmove - Coruja - 03-10-2019 07:04 AM
RE: Flag archercanmove - Indiaret - 03-10-2019, 08:56 PM
RE: Flag archercanmove - Coruja - 03-11-2019, 08:05 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)