• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Screwed up glitch.

Status
Not open for further replies.
Level 2
Joined
Jun 21, 2008
Messages
17
In my newest orpg map, Sunra's ORPG, their is one fucked up piece of shit of a glitch. lol

Sometimes when you right click some debris or an enemy, you're character will continue to attack no matter what you do, whether it be commanding your unit somewhere else or trying to attack something else.

I've tried cutting down on leaking triggers and adding variables but nothing seems to work.

Help greately appreciated ^^

Thx <3 :bored:
 
Level 2
Joined
Jun 21, 2008
Messages
17
Maybe you created a trigger incorrect?
What kind of triggers do you have in your map?

I have simple triggers like

SpellShowTextSystem
Events
Unit - A unit Starts the effect of an ability
Conditions
Actions
Floating Text - Create floating text that reads ((Name of (Ability being cast)) + !!) above (Triggering unit) with Z offset 7.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 80.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to zz_SpellTextTime seconds


ClassMage
Events
Player - Player 1 (Red) types a chat message containing -mage as An exact match
Player - Player 2 (Blue) types a chat message containing -mage as An exact match
Player - Player 3 (Teal) types a chat message containing -mage as An exact match
Player - Player 4 (Purple) types a chat message containing -mage as An exact match
Player - Player 5 (Yellow) types a chat message containing -mage as An exact match
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ClassRequirementsMet[(Player number of (Triggering player))] Equal to True
Then - Actions
Game - Display to (All players) the text: ((Name of (Triggering player)) + has chosen to embark on his journey as a magestic mage!)
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 1) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 2) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 3) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 4) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 5) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Hero - Drop (Item carried by (Random unit from (Units in (Playable map area) owned by (Triggering player))) in slot 6) from (Random unit from (Units in (Playable map area) owned by (Triggering player)))
Item - Move (Last dropped item) to RespawnPoint[(Player number of (Triggering player))]
Unit - Remove (Random unit from (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True))) from the game
Unit - Create 1 Mage for (Triggering player) at (Center of RespawnPointer[(Player number of (Triggering player))]) facing Default building facing degrees
Set ClassRequirementsMet[(Player number of (Triggering player))] = False
Else - Actions
Game - Display to (Player group((Triggering player))) the text: Cannot perform that...


Only1Weapon1
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-class of (Item being manipulated)) Equal to Artifact
OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] Equal to False
Then - Actions
Set OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] = True
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] Equal to True
(Item-class of (Item being manipulated)) Equal to Artifact
Then - Actions
Item - Move (Item being manipulated) to (Position of (Hero manipulating item))
Set OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] = True
Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: You are already hol...
Wait 0.01 seconds
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] Equal to False
(Item-class of (Item being manipulated)) Equal to Artifact
Then - Actions
Set OnlyOneWeapon1[(Player number of (Owner of (Hero manipulating item)))] = False
Else - Actions
Do nothing


You know, just stuff like that and all the triggers are functioning as of now.
 
Level 2
Joined
Jun 21, 2008
Messages
17
that 1 item system almost looks like mine but mines more complex
On topic: i avoided this by making every destructible invulnerable maybe you should try

Still won't fix the part where you attack unit's until you die or kill them! Or when you right click to follow someone you follow them forever.
 
Level 2
Joined
Jun 21, 2008
Messages
17
ugh i have never heard of this bug before! how much terrain and units did you do in the map?

I know it's weird eh? I have about two areas that are 64x64 each and the map is 224 224.

As far as units go their is probably 1000 or so. Five shops and some doodads here and there. Enforce water height limits are off.

Gayass world edit...
 
Status
Not open for further replies.
Top