HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Encrypting Save/Load???WHAAA

07-30-2004, 09:11 AM#1
Coldstrike
im really confused with the saving and loading heros in a map, sumone gave me a link for the Forum, and i d/led the stuff for the map, but still wouldnt d/l if anyone could help me with Saving And Loading Heros for a map thanks,(the editing program i d/led was GoldenUrg's trigger patch i dun no how to extract it and crap or whatev

This was the readme
WarCraft III Trigger Editor Enhancement (version 1.1)
(based on WC3 1.01)
by GoldenUrg
[email protected]

Installation:
Extract the files into your warcraft directory (should create a Units and UI subdirectories).

This enhancement also includes the hidden units which I downloaded from somewhere. If you know who made it let me know.

So far:
I've added 1 new variable type called RegionX.

You can do a simple equals/not equals comparsion of RegionX variables and functions. Including the new Event - Triggering RegionX.

Actions:
(Advanced) Create Dialog Button with Hotkey
If you know the key code for the key, you can set a hotkey "A=65"

(Advanced) Set Max Units by Type
This allows you to restrict units (and buildings) to a maximum number by type.

(Advanced) RandomDistAddItem
(Advanced) RandomDistReset
Might be useful.

(Advanced) RegionAddCell
(Advanced) RegionAddCellAtLoc
(Advanced) RegionAddRect
(Advanced) RegionClearCell
(Advanced) RegionClearCellAtLoc
(Advanced) RegionClearRect
Using RegionX variables, these functions should allow you to move or redefine RegionXs and maintain their associated events.

(Advanced) SetHeroAgi
(Advanced) SetHeroInt
(Advanced) SetHeroStr
Change a hero's stats.

(Advanced) UnitAddItemToSlotById
Add an item to a hero's inventory in a particular slot.

Event Add actions:
Using the add event action you can create events for triggers using loops and
after an array initialization is done.
Note that once you create the event changes to the variables will not affect
the event triggering (same as normal events).

In addition to most of the normal events:

(Advanced) TriggerRegisterDialogButtonEvent
If you want to trigger directly on a button click.

(Advanced) TriggerRegisterEnterRegionSimple
(Advanced) TriggerRegisterLeaveRegionSimple
These are for RegionX enter and leave events

Functions:
(Advanced) New Dialog
Used to initialize a dialog array or clear a dialog variable.

(Advanced) Event Response - Triggering RegionX
RegionX event region

(Advanced) Is point in regionX
(Advanced) Is unit in regionX
RegionX functions like Region counterparts

(Advanced) CreateTimerBJ
Used in initializing timer arrays and before creating timer events.

(Advanced) CreateRegion
Create a regionX

(Advanced) RandomDistChoose
Use with RandomDist actions.

Many of these are not throughly tested. If you discover any problems, let
me know.

Likewise, if you know about functions usable in custom text I'll consider
adding them to the GUI.

Tips:

---

Triggering off an array of regions:

Event:
Map init
Actions:
For A = 1 to maxregions do
set regionarray[A] = CreateRegionX()
Add Rect To RegionX (regionarray[1], region 001 <gen>
Add Rect To RegionX (regionarray[2], region 002 <gen>
Add Rect To RegionX (regionarray[3], region 003 <gen>
Add Rect To RegionX (regionarray[4], region 004 <gen>

Trigger initally off
Event:
(none yet)
Actions:
set regionnumber = -1
For A = 1 to maxregions do
if( (TriggeringRegionX) equals regionarray[A] ) then
set regionnumber = A

(All normal trigger actions here, like)
Game Text - Unit entered region (regionnumber)

if (trigger is off) then
turn trigger on
else
skip remaining actions
for A = 1 to maxregions do
Add event Unit Enters RegionX ( (this trigger), regionarray[A] )

---
Release 1.1:
Updated files to be compatible with Blink 1.2.1

---

Release 1.0:
Added Installation instructions
Removed Not (didn't work as expected)
07-30-2004, 04:12 PM#2
Mythmon
i thought that goldenurg stopped working on his triggers quite a long time ago...

anyways, i suggest using either Umswe or Weu, theyll have almost all of those features and its based out of here so you can easily get support.

as for saveing/loading heroes, use this link. good luck! ^_^
07-30-2004, 09:07 PM#3
Coldstrike
Quote:
Originally Posted by Mythmon
i thought that goldenurg stopped working on his triggers quite a long time ago...

anyways, i suggest using either Umswe or Weu, theyll have almost all of those features and its based out of here so you can easily get support.

as for saveing/loading heroes, use this link. good luck! ^_^

it helps, but when i copy and paste triggers 2 my map (ill add credits to people who helped) none of the variables are there and its going 2 take forever 2 copy and paste everyone, thx alot tho
07-31-2004, 04:44 AM#4
Mythmon
in the WE prefrences theres a check box that say something to the effect of "add unknown variables when pasting", find that and check it, and it should work
07-31-2004, 05:17 AM#5
Coldstrike
Quote:
Originally Posted by Mythmon
in the WE prefrences theres a check box that say something to the effect of "add unknown variables when pasting", find that and check it, and it should work


Wow man thx alot but theres one more tinyyyyyyyy problem the triggers starting w/ GG dont work and when i try 2 make them it says "Variables Beginining with GG_ are used for internal use" how do i fix this, Once again thx alot im adding you to my map credits and the guy who made the turorial!