• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] unit transformation trigger help

Status
Not open for further replies.
Level 7
Joined
Jan 1, 2005
Messages
133
ok i need help 2 make a trigger. its kinda complex in the way it works but ill try and simplify it.

it involoves 2 different units. 1 has food cost of 1 the other food cost of 2.

the trigger starts on the use of an ability.

Basically im trying 2 make a lurker transformation for my starcraft converison maps. Atm i have a working trigger but the problem is that i need the trigger 2 stop if the food supply reaches maximum at the time of transofrmation. Otherweise the player is free 2 exceed the food supply and i just dont want that. from wat ive collected off starcraft as soon as the lurker transformation starts 1 food cost is applied. If any1 can help me make a trigger or knows a simple way of making the trigger stop unit transofrmation from the food supply plz post ur answers here. thanx for ur time
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Its simple... You need no JASS. Just check the food everytime an unit begins the transformation. I bet you based the spell off Bear Form or Crow Form or something anyway. Anyway, when an unit BEGINS casting this ability (doesn't start the effect), you order the unit to stop if the food cost reached 100. I don't remember if there was anyway to check the food cost, but if there is, then this is your solution.

~Daelin
 
Level 7
Joined
Jan 1, 2005
Messages
133
oh good i didnt think the trigger would b 2 complex. Ys i did base the ability off bear form, so all i need 2 know now is the condition that looks at the food count. I tried looking the yesterday b4 i posted this problem for help but i couldnt find anything really that i know of that linked 2 food count. If any1 knows the condition part of looking at food plz post it on here. thanx for ur help daelin
 
Status
Not open for further replies.
Top