• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

2 Quick Questions about Spell Book and GetLocalPlayer() Desync

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,220
1. removing it locally? that would be pretty stupid, I think if you remove an ability and the unit has that ability in the spellbook it will be removed from that unit.

2. this is from my tutorial
"6. Unit visibility, color, visibile for 1 player only?

Question - this cause desyncronization?
Answer - Yes but Vertex color dont desync"
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
1. removing it locally? that would be pretty stupid, I think if you remove an ability and the unit has that ability in the spellbook it will be removed from that unit.

Yeah, found out myself. Thanks.

2. this is from my tutorial
"6. Unit visibility, color, visibile for 1 player only?

Question - this cause desyncronization?
Answer - Yes but Vertex color dont desync"

Damn. Gotta find another way. Anyway, thanks.

Moyack's updated JNGP has a utility for running simultaneous wc3 instances. You should be able to test this kind of thing there :)

Oh, right.
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
For adding/removing spellbook abilities many people use dummy spellbooks.

It works like this:
You have a normal spellbook that is empty
For each ability that you want to add you have another spellbook with the same rawcode ID. Those are dummy spellbooks.
All dummy spellbooks are disabled at map initialization to prevent them from being seen.
Since the rawcode IDs of the spellbooks are the same, then all of them share spells from others.

Also, you can check my tutorial for anything related to spellbooks.
 
Status
Not open for further replies.
Top