• 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.

[General] could anybody help me with this map

Status
Not open for further replies.
Level 21
Joined
Mar 2, 2010
Messages
3,069
there is at least one error that doesnt make any sense. i have changed the map so that the obelisk can be healed but, whenever i try to heal it the game acts like it isnt there so i dont get any effect. another issue is that i need items to transfer when units transform. please help me out by looking at the map.
 

Attachments

  • bam web mountains bugged2.w3x
    2.6 MB · Views: 42

Gojira2000

G

Gojira2000

Is this a trigger problem or a WC3 bug? (if the former can I get a screen shot of the trigger)
 
i have changed the map so that the obelisk can be healed but, whenever i try to heal it the game acts like it isnt there so i dont get any effect.

Loss of attachment point.

another issue is that i need items to transfer when units transform.
Store item type/stacks in variables.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i dont believe that it is a model issue because earlier it was possible to heal it with the repair spell. that makes it logical to assume that the issue is caused by something else. the item issue need to be solved as well. i am planning to upload a new version on saturday so i dont have a lot of time so please hurry with helping me fix the issues.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
the obelisk is using a custom model developed for a similar project but the creator of the project is likely dead but because the model was built for a similar project where it was likely healable it makes it unlikely to have any issues. i do however also need items to be kept when units transform so please help me with both.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to 25
Then - Actions
Set temp_item = (Item carried by (Casting unit) in slot 1)
Player - Add -25 to (Owner of (Casting unit)) Current gold
Set Temp_Boolean = ((Triggering unit) is selected by (Owner of (Triggering unit)))
Unit - Order (Casting unit) to drop (Item carried by (Casting unit) in slot 1) at (Position of (Casting unit))
Unit - Replace (Casting unit) with a metapod using The old unit's relative life and mana
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
Custom script: set u = bj_lastReplacedUnit
-------- Wait --------
Wait 25.00 game-time seconds
-------- EndWait --------
Custom script: set udg_Temp_Unit = u
Set Temp_Boolean = (Temp_Unit is selected by (Owner of Temp_Unit))
If ((Temp_Unit is alive) Equal to True) then do (Unit - Replace Temp_Unit with a Gnome using The new unit's max life and mana) else do (Skip remaining actions)
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
Player - Add 25 to (Owner of (Last replaced unit)) Current lumber
Item - Move temp_item to (Position of temp_item)
Else - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Insufficient mana
Set Temp_Boolean = ((Triggering unit) is selected by (Owner of (Triggering unit)))
Unit - Replace (Triggering unit) with a Basal Golem created from blood forge using The old unit's relative life and mana
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
 
How to easily post triggers .. please read this for next time.

I dont see event, so I guess event is sth like: Unit starts effect of an ability (?)

If player has not enough gold --> unit will be replaced by a golem? :s

This tmp_bool you use is useless

You leak location. Read this: Things that leak

You dont save dropped item into a variable, and you only do action for slot 1.

Generally you should restructure this trigger by your own a bit, I think.

If you have done these points and there is a problem, post trigger again.

Edit: Also because for now its not very easy to read this trigger.
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
the program had glitched so i couldnt see the entire trigger. here is the entire trigger.

transform into gnome
Events
Unit - A unit Begins channeling an ability
Conditions
(Ability being cast) Equal to transform into gnome new two
Actions
Custom script: local unit u
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Owner of (Triggering unit)) Current gold) Greater than or equal to 25
Then - Actions
Set temp_item = (Item carried by (Casting unit) in slot 1)
Player - Add -25 to (Owner of (Casting unit)) Current gold
Set Temp_Boolean = ((Triggering unit) is selected by (Owner of (Triggering unit)))
Unit - Order (Casting unit) to drop (Item carried by (Casting unit) in slot 1) at (Position of (Casting unit))
Unit - Replace (Casting unit) with a metapod using The old unit's relative life and mana
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
Custom script: set u = bj_lastReplacedUnit
-------- Wait --------
Wait 25.00 game-time seconds
-------- EndWait --------
Custom script: set udg_Temp_Unit = u
Set Temp_Boolean = (Temp_Unit is selected by (Owner of Temp_Unit))
If ((Temp_Unit is alive) Equal to True) then do (Unit - Replace Temp_Unit with a Gnome using The new unit's max life and mana) else do (Skip remaining actions)
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
Player - Add 25 to (Owner of (Last replaced unit)) Current lumber
Item - Move temp_item to (Position of temp_item)
Else - Actions
Game - Display to (Player group((Owner of (Triggering unit)))) the text: Insufficient mana
Set Temp_Boolean = ((Triggering unit) is selected by (Owner of (Triggering unit)))
Unit - Replace (Triggering unit) with a Basal Golem created from blood forge using The old unit's relative life and mana
If (Temp_Boolean Equal to True) then do (Selection - Select (Last replaced unit) for (Owner of (Last replaced unit))) else do (Do nothing)
 
Level 21
Joined
Mar 2, 2010
Messages
3,069
i listen but some times people are simply wrong. the obelisk could be "healed" with the repair spell but that wasnt what i wanted so i changed it to the healing spell but after that it couldnt be targeted for some reason. tempboolean is needed in order to make the unit remain selected after its transformation. you are welcome to suggest a better way though. i need units to keep items when they are transforming and i dont know how.(the methods i have tried is in the trigger i posted.) the healing problem i figured out on my own at last. i was right that it wasnt a model problem. it was an error in the object data for the obelisk.
 
Last edited:
Status
Not open for further replies.
Top