• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need a WORKING save/load system

Status
Not open for further replies.
Level 3
Joined
Dec 4, 2006
Messages
17
Hey.

Yes you got it, another request for a save/load system

does anyone have one that actually works??
Ive tried a few different ones now, and I cant get seem to get them to ever work for me =/

Thanks =)

Edit:

since im posting, i was also wondering if theres a way to make units respawn at a certain location after they die. Ive currently got one to respawn on their corpse location like 30s after death or whichever. I could make individual regions for each unit, but i was hoping for an easier method. any thoughts? =)
 
nah, i mean like creeps dying in a rpg.

so people cant round up all the creeps kill them. and since the creeps respawn at the location of their corpse; they can just (for example) aoe them all down at once.

i dont want this to be able to happen
 
you could try making ONE REGION in the area for the creeps.
you can then make the trigger for
Event- a unit dies
Condition - unit type or owner of creeps
Action-
wait 25sec
cr8 <unit> at random point in <region> or revive triggering unit in random point in <region>

soz i havent used world editor for a while so umm hope that is accurate to the normal actions
 
The easiest way to respawn all your neutral creeps:

Create 3 variables first,
1) Creep_Point , Point and tick array 1.
2) Respawn_Time , Real.
3) TempInteger , Integer.

  • Store Position
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Respawn_Time = 180.00
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)
        • Loop - Actions
          • Set TempInteger = (TempInteger + 1)
          • Unit - Set the custom value of (Picked unit) to TempInteger
          • Set Creep_Point[TempInteger] = (Position of (Picked unit))

  • Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Triggering unit)) Equal to Neutral Hostile
      • (Custom value of (Triggering unit)) Greater than 0
    • Actions
      • Custom script: local integer i = GetUnitTypeId(GetTriggerUnit())
      • Custom script: local integer ii = GetUnitUserData(GetTriggerUnit())
      • Wait Respawn_Time game-time seconds
      • Custom script: call SetUnitUserData(CreateUnit(Player(12),i,GetLocationX(udg_Creep_Point[ii]),GetLocationY(udg_Creep_Point[ii]),270),ii)


and about save/load systems...take a look at this:
https://www.hiveworkshop.com/forums...v0-2a-142548/?prev=search=codegen&d=list&r=20

https://www.hiveworkshop.com/forums/spells-569/codegen-140399/?prev=search=codegen&d=list&r=20
 
sweet, thanks for the save/load system and the creep trigger =)

only thing on my mind was it didnt have anywhere the limits of items/ heros / hero abilities anywhere, so im not sure what they are. do u have any idea?
if not, dont worry, ill find it out someday when it bugs up lol =P
 
Status
Not open for further replies.
Back
Top