• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

JASS a better option?

Status
Not open for further replies.
Level 4
Joined
Jun 23, 2011
Messages
70
Hey, I'm working with some pretty hacked-together GUI triggers, and I've come up against something that I REALLY don't feel like going through.

I need to alter 150 (not a typo, one hundred and fifty) actions inside a trigger, changing one of the options from "create a visibility modifier 100 wide" to "create a visibility modifier 500 wide". Is there a find-and-replace option available in JASS or something?
 
JASSNewGenPack has one, but you'd have to turn those GUI triggers to JASS, which is an irreversible move. Right now, it might be the seemingly easiest approach, but if you have to change how that trigger works, then you'll have to redo it completely, since you don't know JASS.
 
There's a "Find" feature in the trigger editor but it will not be a "find and replace".

If you aren't comfortable using JASS, this may be the best solution.

Edit: I think Maker has the right idea with the loop. You usually shouldn't have so many actions in a trigger if you do it right.

I second the notion of you posting your WIP so we can get an idea if this is possible.
 
Status
Not open for further replies.
Back
Top