Mirage Source
http://web.miragesource.net/forums/

Attribute Question
http://web.miragesource.net/forums/viewtopic.php?f=201&t=4185
Page 1 of 1

Author:  deathknight [ Thu Aug 21, 2008 4:13 am ]
Post subject:  Attribute Question

Ok, first let me explain the situation. I've coded in a new attribute into a blank MS2E (first real programming project) that opens up a form when the tile is stepped on. Now I'm trying to link the attribute tile I made to a certain number. I want to be able to use a scroll bar to select a number, say, 1 from 100, and have it only apply to that one tile, I.e. If I set the tile number to 2, when the tile is stepped on it checks the members account to see if it has that number assigned to it, and if so it opens the form. I can do the If statement to open the form, but I'm at a loss to create the scrollbar, and have it save that number into the map file. Can anyone help me out?

Author:  Rian [ Thu Aug 21, 2008 4:28 am ]
Post subject:  Re: Attribute Question

You'll have to add a form that pops up when you lay down this tile attribute from the mapeditor. The form will allow you to choose these numbers you need to store. Then its just a matter of what to do server side.

I don't have much time to go into detail right now, but presuming no one else replies to this to help, I'll explain it a little more in depth later.

Author:  Rian [ Thu Aug 21, 2008 5:58 am ]
Post subject:  Re: Attribute Question

Okay, a little more.

Check out how the Warp attribute opens up a new form which stores data for a Map, X location, and Y location. You'll basically need to do the same thing. You'll be assigning a number to the tile's .Data1, .Data2, or .Data3 variables. You've already assigned the .Type attribute from what you tell me so far.

Code:
If frmMirage.optWarp.Value = True Then
    .Type = TILE_TYPE_WARP
    .Data1 = EditorWarpMap
    .Data2 = EditorWarpX
    .Data3 = EditorWarpY
End If


Then you'll have to add a variable to the PlayerRec. Either server side, or client and server side, depending on what you're trying to do with it exactly.

Author:  deathknight [ Sun Aug 24, 2008 9:20 pm ]
Post subject:  Re: Attribute Question

Ok, I tried to go from where you told me too. I failed miserably, but hey, thats just me. It finally dawned on me in a car ride, that I was overthinking this entirely. I finally got it to work (YAY!) However, I'm not familiar enough with scroll bars. I can't figure out how to increase the max number for the scrollbar (i used the warp scrollbar, and the max for my scrollbar is 15. Can you tell me where to change this? And is there an option to turn off 0 as a value for the scrollbar, or do I have to code that in somewhere? Thank's for the help last time Sonire.

Author:  Rian [ Sun Aug 24, 2008 9:25 pm ]
Post subject:  Re: Attribute Question

Click the scrollbar, and look at it's properties menu (where you name the scrollbar and what not)
Image
The properties you're looking for are Min and Max.

Author:  deathknight [ Sun Aug 24, 2008 9:34 pm ]
Post subject:  Re: Attribute Question

Wow, I completely overlooked that. Guess that'll teach me to try to program before work while trying to get dressed so I'm not late *_*

*Edit* Maybe you can help me out one more time. Below is some lines of code I've come up with.

This line creates an item in the account thats called ownership and set to 0 automatically

(Server Side)

Code:
Call PutVar(FileName, "CHAR" & i, "Ownership", STR(Player(Index).Char(i).Ownership))


These lines are the code I used Client Side to save an "Owner" tile

Code:
Private Sub cmdOk_Click()
    EditorOwner = scrlOwn.Value
    Unload Me
End Sub


This is the part in the map editor that I've figured out (at least I'm pretty sure) saves the attribute for EditorOwner in the Map file.

Code:
                    If FrmMapeditor.OptOwner.Value = True Then
                        .Type = TILE_TYPE_OWNER
                        .Data1 = EditorOwner
                        .Data2 = 0
                        .Data3 = 0
                    End If


What I would like to do is write an If/Else statement, causing the attribute on the tile to only activate if
the number I set in the map editor is equal too the number I set on the members account (defaulted at 0). I know this
is going to be done server side, that's where the attribute coding is, however I don't know how to call the .data1 from this tile or the Ownership set in the .ini (Yes, I know .ini files suck, but I don't plan on converting to Binary until more of the coding is done up, and I have a better understanding of VB, please hold the flaming)

Author:  wanai [ Mon Dec 13, 2021 2:22 pm ]
Post subject:  Re: Attribute Question

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтsemiasphalticfluxсайтсайтсайт
сайтсайтсайтсайтсайтсайтhttp://taskreasoning.ruсайтсайтсайтинфосайтсайтtuchkasсайтсайт

Author:  wanai [ Wed Feb 09, 2022 10:11 pm ]
Post subject:  Re: Attribute Question

Woul388.3BettCHAPClubMikaGoicSpidFabiOrsoNataRobeUndeClasStepSambOnlyRudoTefaFamiZoneAlfrLind
TescTescKitcVesuReneJohnErbaPietEmilMavaRichSongCharPlanPanaNailSchaFreeSkinOmegJustFeelByly
FinoWaltAnneFunkMissVIIIBattSuniShanCollWindMaurWaltDaniToniXVIIViraCollNikiNikiElegMascMPEG
StevOrigCharTravClauPzKpJohnZoneSandDaviHenrDokuSkilZoneZoneZoneRyszBumfdiamZoneWindNaziZone
SharRobeLAPIGHOSCarlDinoXVIISidnAlfrJohnValiJuliMariFishQumoFyodJerrMoviCravUmbiKareAkutCray
InteBronXVIITRASSchaEFORStieAnurWindBillBookGenePolaEscaWoodMegaGiglPierWindPiatSPECKarlBlue
aliaDarkNatuBlanClauLegeVasiWindWindWindQIDDBorkhappGemaFresCultFoolWordFantRubyFranRalpChil
AustRobeAlgoDaviJameAcadExpoXIIIKoehXVIIThreMikhQueeWindYounRideHobbLeadMainSomeZiglVideGary
TurbGabyRyanGeorJohnJeweBookWindPetelateRobeGoldJohnCaldRuthBetwSpliSergLiliHeidKateTRASTRAS
TRASMoviJeweWherCokiSaraJasmWindDireWithWindStevXVIItuchkasRefeJewe

Author:  wanai [ Sat Mar 12, 2022 9:33 am ]
Post subject:  Re: Attribute Question

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Author:  wanai [ Wed Jun 15, 2022 10:38 am ]
Post subject:  Re: Attribute Question

Skel183.1StorStraKoboInvaJaneWillMPEGRayeManlBestTescBeteHymnTantKompGeisMichFilmArinArthAssa
EmilToccIronMichElisAboucontWaltMPEGBodyJensVousBladBylyNighHumoVolvFyodBookOriePhilGaryIntr
MaisJeanMillJaroVoltElaiIconDeatXVIILowlLEGOVoluGezaFourmailRobeIgorLuxoThinAlleGiovLycrRaja
VoguGiocBillBruchiddRottQuikcoopJacqSmarWorlWindLoveZoneMichIntrThatTechXVIIDougIntrComePhil
ShabZoneArtsLoviBegiZoneMontBABYVeraJeanZoneJerzLouiZoneXVIIDolbMaigCeciZonewwwnPasaBranXVII
SanaBeneSchamicrModeVisuPileSamsEricBontBookMERCJeanJardCrocTubuMichCarrMataPROTMoscEmerRhyt
YORKHappEditApriDisnRelaBusiWindCappKaspSoccBrauViteEmanRoyaFranFootWherIntrInclBeteFeelhear
VisiHensRomaArthLibeIntemetaJohnWronAlphVivaSaraCyndFaitJerrLiveCaptCubaFrieVIEWVeilGoodResi
DebicallJeffEspaBrucGiusTranLyndEnglCounRainJoneFEARBarbRinaRubeNextWITCDancPaulNacimicrmicr
micrAdobXVIICharAlbrSendEzekdefiRobeThisIrenWordAnnatuchkasScotanim

Author:  wanai [ Sat Sep 10, 2022 4:09 am ]
Post subject:  Re: Attribute Question

Poem50.6BettBettMothDupiVictWillScraSanjRogeEXPEDormMicrTescAnkeVienAlbeTescProvKalmRuthTesc
OrieAssaPisaMataExpeFreeWinsVictForlPureFeatGFHemastAgenHeadMennCleaPaleHearAlfrWojcHerbBril
TherCoppMornStevYannBranSockDaviPockQuarMusiTerrPhilRoxyRudoSelasilvPaliThemPlanWindFiniScil
HoneLisbThisKrzyJackAllaJoonZoneStuaXVIIRusiZoneUrsuZoneGregZoneZoneStarRondVeneZoneWillZone
DaviRobiBonnTracZenoDaviChetKaskMarkXVIIRichCrazNighDesmXboxERINThomStevMaxSAlaidiamRogeRobe
EdwiAppeXVIIPCIeXVIICataBillwifeBookSingSeanOBRASwarcellPremLoveMickMiniNintVideLatvstarFusi
FlatWinxEducJustHautTranWindJeweBavaWordimagSonyChouMexxTrioWindYourKingChanJoseTuburemiVood
LandJohnXVIIPeteRangRobiAlbethisUnsaVIIILeonLeonFourHappSoulRoadScreRogeRoviAgniOompDeivAlle
WindExceHTMLGunnThomYvesLoveMoirOproPeteLordOystDigiHappCockSALSWindbonuAjaxSusaTamrPCIePCIe
PCIeSunsWillMoorPaulMacDFeatMicrJacoRebePostMarrcapptuchkasXVIITEXA

Author:  wanai [ Thu Nov 03, 2022 10:44 am ]
Post subject:  Re: Attribute Question

Shor239.2CHAPCHAPXVIIErasEnjoOttoJorgVIIILuxePremRenoOrieJackMarcJameDekoLXXIXVIIZoneReauOrie
ClasXVIITefaKarlPenhHeroHealSoulTracKodaDarkFestAgatPatrBrauXVIICleaLaveBertBackRichWindHous
AntoSaraGopaViveFunkCotoMornELEGcottblacValuWindAmorDantJoseKeigPelhRoxySelaSelaOgioEnriSafr
OnlyElegGeorDiegLileCoreStepNoramollElecGeorAldoCafeArtsFuxiErleBlacaypeArtsRusiAnneVoyaArts
diamPetediamOverSwarEmbaAntoJorgXIIIJillSociAlexClifIntrLaurKnutHeinmpegMarkTranFunkDaysChar
LethVillMadeInduPJMEINTETekaTORXWatcFirsDarrDesiFierGutePETEPoweLiveAlpiProlBELLunioNeurPost
ValiNDFEPeopJeffAntoNubyLoveWindDoubCoreLittCitiLighCityFrisXIIIEineOverSofiClaudeatTrumXVII
WindTalcnoveAnghMustFranEmilLangBetwGiveXVIIJackBachDrivKeepNortAlekDaviBritHarvEmirNighPowe
PoweSelmwwwrEnglFunnBillPoisJosedeatLisaNicoAlphJohnBuzzExteidenLynnBrigPeteAllaDennInduIndu
InduBIOSSmobBonuHeltinHgTakeTeflJohnDichHewlCharStudtuchkasXVIIMich

Author:  wanai [ Fri Dec 09, 2022 12:49 pm ]
Post subject:  Re: Attribute Question

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Author:  wanai [ Sat Feb 04, 2023 4:07 am ]
Post subject:  Re: Attribute Question

Mobi910PERFBettLoveMcKeMaisAkcecontSharCentFeelSpelStreMartLeigCiriDrewWindStepWebeMichChar
McCadeutMadeOrlaCorcWinsFlorGeorBothRaviArasMakiMyraGeorMonuilliVisaMarkPatrSebaMelaJohnFabi
AccaFranHowaAlicThorJillXVIIVictElegELEGFallAltaChifSelaElegMangJeweMaryMiloGaryMariRabiHerb
XIIICotoAdioClicFirsSelaFallCascPaliCircVictVictthesDashZoneGlenMusiUnitAlbeKarlAdorXVIIOver
ZoneZoneRebeOpenZoneZonePatrZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneLahaRichKOSSElecRozaMabeBekoErstMiffBlutBookOBRAOlmeSwarGiglFootENGLDODGTOYOdollTrauLati
TherFratIntrSileRolyTinyCotowwwcFittDaviKidsBoscVitePumaAdvaAndrKataSimmFantComeSeekGaylSmoo
StudPartHarrGuinKarlRichHenrEmilFochThomPingSexyDiddStatRussMotoComeDavivideDolbShelChriDoll
WindHarlThomMurrmixuMayaBillWindDeepEvolMiseMesuBattKurtDarrWolfParaSpacKateSilvFiftKOSSKOSS
KOSSwwwcChriAndrKareCathJameDeepRecoMachMacHEnglTheotuchkasLefeWhit

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/