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

How do i make a good save and load system?

Status
Not open for further replies.
Level 2
Joined
Dec 24, 2007
Messages
15
Hi i'm making an rpg and i need help. I cant figure out how to make a save and load system and how to make a trigger that spawns units that are able to drop items.

Q1: i need a save and load system.

Q2: whenever i make a trigger for spawns of enemy units i dont know how to spawn them with an item table.

Any help would be good.
 
Level 5
Joined
May 21, 2006
Messages
174
can u explain how i can make items drop from triggered unit spawn??i dont understand.

Sure thing:
  • Item Drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Gnoll
    • Actions
      • Set tempPoint = (Position of (Dying unit))
      • Set Random = (Random integer number between 1 and 100)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Greater than or equal to 51
        • Then - Actions
          • Item - Create Claws of Attack +3 at tempPoint
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Random Less than or equal to 20
            • Then - Actions
              • -------- Drop Nothing! --------
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Greater than or equal to 21
                  • Random Less than or equal to 50
                • Then - Actions
                  • Item - Create Rusty Mining Pick at tempPoint
                • Else - Actions
      • Custom script: call RemoveLocation( udg_tempPoint )
If the dying unit is a Gnoll, it has a 50% chance to drop Claw of Attack +3, 20% chance of dropping nothing and 30% chance of dropping a Rusty Mining Pick.
 
Level 2
Joined
Dec 24, 2007
Messages
15
ok thank you and one more question how do i make it a random chance that if i enter a region that there will be like a 20% chance for a unit to spawn.

EDIT:
is temp point a variable and if it is wat type i need more info on that

Do NOT double-post. Use the Edit Post button.
~Thread Moved
 
Last edited by a moderator:
Level 5
Joined
May 21, 2006
Messages
174
ok thank you and one more question how do i make it a random chance that if i enter a region that there will be like a 20% chance for a unit to spawn.

It's pretty much the same as the previous trigger.
  • Spawn
    • Events
      • Unit - A unit enters RegionX <gen>
    • Conditions
    • Actions
      • Set tempPoint = (Center of RegionX <gen>)
      • Set Random = (Random integer number between 1 and 5)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Random Equal to 1
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at tempPoint facing tempPoint
        • Else - Actions
      • Custom script: call RemoveLocation( udg_tempPoint )
 
Level 2
Joined
Dec 24, 2007
Messages
15
thanks for the help i just want to know how can i make it that like if i hit a unit or get a unit to 50% life that it secretly calls for help and there's a chance another unit will pop up.How do i make it so that a item can only be picked up by a specific unit/structure and that u may only hold 1 weapon 1 shield ect. like in ff orpg by undead budgie.
 
Last edited:
Status
Not open for further replies.
Top